/* ============================================================
   Beeny Travel Theme — Global Styles
   ============================================================ */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8f9fa;
    color: #2d3436;
    line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #00d2d3; }

/* ── Navigation ─────────────────────────────────────────── */
.site-header {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 100%);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.site-title-link {
    color: #f1f2f6;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.site-title-link:hover { color: #00d2d3; }

.site-nav { display: flex; align-items: center; }
.nav-list {
    display: flex;
    align-items: center;
}
.nav-list .nav,
.nav-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4px;
}
.nav-list .nav li a,
.nav-list ul li a {
    color: #c8d6e5;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    display: block;
}
.nav-list .nav li a:hover,
.nav-list ul li a:hover,
.nav-list .nav li.nav-current a,
.nav-list ul li.nav-current a {
    color: #00d2d3;
    background: rgba(0,210,211,0.12);
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(255,255,255,0.3);
    color: #f1f2f6;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-list {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #0f2027;
        padding: 10px 20px 20px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    }
    .nav-list.is-open { display: block; }
    .nav-list .nav,
    .nav-list ul {
        flex-direction: column;
        gap: 2px;
    }
    .header-inner { position: relative; }
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 100%);
    color: #c8d6e5;
    text-align: center;
    padding: 36px 20px;
    margin-top: 60px;
}
.site-footer p { margin: 0; }
.site-footer .footer-sub {
    font-size: 0.8rem;
    opacity: 0.6;
    margin-top: 6px;
}
.site-footer a { color: #00d2d3; text-decoration: none; }

/* ── Containers ─────────────────────────────────────────── */
.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}
.content-container-narrow {
    max-width: 820px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ── Page Hero (no image) ───────────────────────────────── */
.page-hero {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    color: #f1f2f6;
    text-align: center;
    padding: 60px 20px;
}
.page-hero h1 {
    font-size: 2.4rem;
    margin: 0 0 12px;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.page-hero .hero-desc {
    font-size: 1.05rem;
    color: #c8d6e5;
    margin: 0 auto;
    max-width: 600px;
}
.page-hero .hero-meta {
    font-size: 0.82rem;
    color: #7ec8e3;
    margin-top: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ── Feature Image Hero ─────────────────────────────────── */
.feature-hero {
    position: relative;
    height: 420px;
    overflow: hidden;
}
.feature-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.feature-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.65) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
}
.feature-hero-overlay h1 {
    color: white;
    font-size: 2.6rem;
    margin: 0 0 8px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
    line-height: 1.2;
}
.feature-hero-overlay .hero-meta {
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
}

/* ── Post Cards ─────────────────────────────────────────── */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}
.post-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}
.post-card-image {
    height: 210px;
    overflow: hidden;
    background: #f1f2f6;
}
.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.post-card:hover .post-card-image img { transform: scale(1.04); }
.post-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.post-card-tag {
    color: #ff4757;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-decoration: none;
}
.post-card-title {
    margin: 8px 0 10px;
    font-size: 1.2rem;
    line-height: 1.4;
    color: #2d3436;
    font-weight: 700;
}
.post-card-excerpt {
    color: #636e72;
    font-size: 0.88rem;
    line-height: 1.65;
    flex: 1;
    margin-bottom: 15px;
}
.post-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: #b2bec3;
    border-top: 1px solid #f1f2f6;
    padding-top: 12px;
    gap: 10px;
}
.post-card-author {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}
.post-card-author img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.post-card-author span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Single Post ────────────────────────────────────────── */
.post-header-meta {
    background: white;
    border-radius: 14px 14px 0 0;
    padding: 28px 50px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    margin-bottom: 0;
}
.post-header-meta .post-excerpt {
    font-size: 1.1rem;
    color: #636e72;
    line-height: 1.65;
    margin: 0 0 16px;
}
.post-header-meta .post-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: #b2bec3;
    border-top: 1px solid #f1f2f6;
    padding: 12px 0;
    gap: 10px;
    flex-wrap: wrap;
}
.post-content {
    background: white;
    border-radius: 14px;
    padding: 40px 50px 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}
.post-header-meta + .post-content {
    border-radius: 0 0 14px 14px;
}
.post-content h2 { font-size: 1.6rem; color: #2d3436; margin-top: 2em; }
.post-content h3 { font-size: 1.3rem; color: #2d3436; margin-top: 1.6em; }
.post-content p { line-height: 1.85; color: #3d3d3d; margin: 0 0 1.2em; }
.post-content img { border-radius: 10px; margin: 24px 0; width: 100%; }
.post-content a { color: #00b8b9; }
.post-content blockquote {
    border-left: 4px solid #00d2d3;
    margin: 28px 0;
    padding: 14px 24px;
    color: #636e72;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 0 10px 10px 0;
    font-size: 1.05rem;
}
.post-content ul, .post-content ol {
    padding-left: 1.5em;
    color: #3d3d3d;
    line-height: 1.85;
}
.post-content hr {
    border: none;
    border-top: 2px solid #f1f2f6;
    margin: 40px 0;
}
.post-content figure { margin: 24px 0; }
.post-content figcaption {
    text-align: center;
    font-size: 0.82rem;
    color: #b2bec3;
    margin-top: 8px;
}
@media (max-width: 768px) {
    .post-content { padding: 25px 20px 30px; }
    .post-header-meta { padding: 20px 20px 0; }
}

/* ── Post Tags ──────────────────────────────────────────── */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 2px solid #f1f2f6;
}
.post-tags a {
    background: #f1f2f6;
    color: #636e72;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.2s;
}
.post-tags a:hover { background: #00d2d3; color: white; }

/* ── Author Box ─────────────────────────────────────────── */
.author-box {
    background: white;
    border-radius: 14px;
    padding: 28px 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 28px;
}
.author-box-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid #f1f2f6;
}
.author-box-info h3 {
    margin: 0 0 5px;
    font-size: 1rem;
    color: #2d3436;
}
.author-box-info h3 a { color: inherit; text-decoration: none; }
.author-box-info h3 a:hover { color: #00d2d3; }
.author-box-info p { margin: 0; color: #636e72; font-size: 0.88rem; line-height: 1.5; }
@media (max-width: 600px) {
    .author-box { flex-direction: column; text-align: center; }
}

/* ── Author Hero ────────────────────────────────────────── */
.author-hero {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 100%);
    padding: 50px 20px;
    text-align: center;
    color: #f1f2f6;
}
.author-hero-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,0.25);
    margin: 0 auto 18px;
}
.author-hero h1 { margin: 0 0 10px; font-size: 2rem; }
.author-hero .author-bio { color: #c8d6e5; margin: 0 auto; max-width: 500px; font-size: 0.95rem; }
.author-hero .author-location { color: #7ec8e3; font-size: 0.85rem; margin-top: 8px; }

/* ── Tag/Destination Hero ───────────────────────────────── */
.tag-hero {
    position: relative;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0f2027 0%, #2c5364 100%);
}
.tag-hero-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}
.tag-hero-content {
    position: relative;
    text-align: center;
    color: #f1f2f6;
    padding: 50px 20px;
}
.tag-hero-content h1 { font-size: 2.6rem; margin: 0 0 12px; font-weight: 800; }
.tag-hero-content p { color: #c8d6e5; margin: 0 auto; max-width: 560px; font-size: 1rem; }

/* ── Section Heading ────────────────────────────────────── */
.section-heading {
    font-size: 1.7rem;
    color: #2d3436;
    margin: 0 0 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

/* ── Pagination ─────────────────────────────────────────── */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
    flex-wrap: wrap;
}
.pagination .older-posts,
.pagination .newer-posts {
    background: white;
    color: #2d3436;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.2s;
}
.pagination .older-posts:hover,
.pagination .newer-posts:hover {
    background: #00d2d3;
    color: white;
    transform: translateY(-2px);
}
.pagination .page-number { color: #b2bec3; font-size: 0.85rem; }

/* ── Static Page ────────────────────────────────────────── */
.page-content {
    background: white;
    border-radius: 14px;
    padding: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}
.page-content h1 { font-size: 2rem; color: #2d3436; margin-top: 0; }
.page-content h2 { font-size: 1.5rem; color: #2d3436; }
.page-content p { line-height: 1.85; color: #3d3d3d; }
.page-content img { border-radius: 10px; margin: 20px 0; width: 100%; }
.page-content a { color: #00b8b9; }
.page-content table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.page-content th {
    background: #0f2027;
    color: #f1f2f6;
    padding: 12px 16px;
    text-align: left;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}
.page-content td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f2f6;
    font-size: 0.95rem;
}
.page-content tr:hover td { background: #f8f9fa; }
@media (max-width: 768px) {
    .page-content { padding: 25px 20px; }
}

/* ── Button ─────────────────────────────────────────────── */
.btn {
    display: inline-block;
    background: #00d2d3;
    color: white;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
}
.btn:hover { background: #00b8b9; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,210,211,0.3); }

/* ── Error Page ─────────────────────────────────────────── */
.error-page {
    text-align: center;
    padding: 80px 20px;
}
.error-page .error-code {
    font-size: 7rem;
    font-weight: 900;
    color: #00d2d3;
    line-height: 1;
    margin: 0;
}
.error-page h2 { font-size: 1.6rem; color: #2d3436; margin: 16px 0 12px; }
.error-page p { color: #636e72; margin-bottom: 32px; font-size: 1rem; }

/* ── Ghost Koenig Editor Image Classes ──────────────────── */
.post-content .kg-width-wide {
    margin-left: -60px;
    margin-right: -60px;
    max-width: calc(100% + 120px);
    width: calc(100% + 120px);
}
.post-content .kg-width-full {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: 100vw;
    width: 100vw;
}
.post-content .kg-image { max-width: 100%; }
.post-content .kg-gallery-container { width: 100%; }
.post-content .kg-gallery-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 6px;
    margin-bottom: 6px;
}
.post-content .kg-gallery-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.post-content .kg-bookmark-card {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0;
}
.post-content .kg-bookmark-container { display: flex; text-decoration: none; color: inherit; }
.post-content .kg-bookmark-content { padding: 20px; flex: 1; }
.post-content .kg-bookmark-title { font-weight: 700; color: #2d3436; margin-bottom: 6px; }
.post-content .kg-bookmark-description { font-size: 0.85rem; color: #636e72; }
.post-content .kg-bookmark-thumbnail img { width: 160px; height: 100%; object-fit: cover; }
.post-content .kg-video-card video { width: 100%; border-radius: 10px; }
@media (max-width: 768px) {
    .post-content .kg-width-wide { margin-left: 0; margin-right: 0; max-width: 100%; width: 100%; }
    .post-content .kg-width-full { margin-left: -20px; margin-right: -20px; max-width: calc(100% + 40px); width: calc(100% + 40px); }
    .post-content .kg-bookmark-container { flex-direction: column; }
    .post-content .kg-bookmark-thumbnail img { width: 100%; height: 160px; }
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
    .posts-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
}
@media (max-width: 600px) {
    .page-hero h1 { font-size: 1.8rem; }
    .feature-hero { height: 280px; }
    .feature-hero-overlay h1 { font-size: 1.8rem; }
    .feature-hero-overlay { padding: 24px; }
    .posts-grid { grid-template-columns: 1fr; }
    .tag-hero-content h1 { font-size: 1.8rem; }
    .author-hero h1 { font-size: 1.6rem; }
    .section-heading { font-size: 1.4rem; }
}
