/* ── Traveltion.com — Travel Magazine Design ── */

:root {
    --teal:       #0891b2;
    --teal-dark:  #0e7490;
    --teal-light: #e0f2fe;
    --gold:       #f59e0b;
    --gold-dark:  #d97706;
    --bg:         #f8fafc;
    --bg-surface: #ffffff;
    --bg-card:    #ffffff;
    --border:     #e2e8f0;
    --text:       #0f172a;
    --text-muted: #475569;
    --text-light: #94a3b8;
    --radius:     10px;
    --shadow:     0 1px 3px rgba(0,0,0,.07), 0 4px 16px rgba(0,0,0,.05);
    --shadow-md:  0 4px 12px rgba(0,0,0,.1), 0 8px 30px rgba(0,0,0,.07);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ── Nav ── */
.main-nav {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 4px;
    height: 60px;
}

.nav-logo {
    font-size: 22px;
    font-weight: 900;
    color: var(--teal);
    text-decoration: none;
    letter-spacing: -0.5px;
    flex-shrink: 0;
    margin-right: 8px;
}
.nav-logo span { color: var(--gold); }

.nav-cats {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
    flex: 1;
}
.nav-cats::-webkit-scrollbar { display: none; }

.nav-cat {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    padding: 5px 11px;
    border-radius: 20px;
    white-space: nowrap;
    transition: background .15s, color .15s;
}
.nav-cat:hover { background: var(--teal-light); color: var(--teal); }
.nav-cat.active { background: var(--teal); color: #fff; }

.nav-search {
    flex-shrink: 0;
    display: flex;
    margin-left: 8px;
}
.nav-search input {
    padding: 7px 14px;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    width: 180px;
    background: var(--bg);
    color: var(--text);
    transition: border-color .2s, width .3s;
}
.nav-search input:focus { border-color: var(--teal); width: 220px; }

/* ── Container ── */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Hero ── */
.hero-article {
    display: block;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 21/9;
    max-height: 520px;
    text-decoration: none;
    box-shadow: var(--shadow-md);
}
.hero-article img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.hero-article:hover img { transform: scale(1.03); }
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.3) 55%, transparent 100%);
}
.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px;
    color: #fff;
}
.hero-cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 3px 10px;
    border-radius: 20px;
    background: var(--teal);
    color: #fff;
    margin-bottom: 12px;
}
.hero-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.hero-meta {
    font-size: 13px;
    opacity: .8;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* ── Layout ── */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    margin-top: 36px;
    align-items: start;
}

.main-content { min-width: 0; }

/* ── Section title ── */
.section-title {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--teal);
    border-bottom: 2px solid var(--teal);
    padding-bottom: 8px;
    margin-bottom: 20px;
}
.section-title a { color: var(--text-muted); text-decoration: none; }

/* ── Article grid ── */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.article-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
}
.article-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.card-img {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--teal-light);
}
.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.article-card:hover .card-img img { transform: scale(1.06); }

.card-body {
    padding: 14px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.card-cat {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--teal);
    margin-bottom: 6px;
}
.card-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text);
    margin-bottom: 6px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-excerpt {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-meta {
    font-size: 11px;
    color: var(--text-light);
    margin-top: auto;
}

/* ── Sidebar ── */
.sidebar { display: flex; flex-direction: column; gap: 24px; }

.sidebar-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.article-list { display: flex; flex-direction: column; gap: 14px; }

.list-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
}
.list-item:last-child { border-bottom: none; padding-bottom: 0; }

.list-img {
    width: 72px;
    height: 54px;
    flex-shrink: 0;
    border-radius: 7px;
    overflow: hidden;
    background: var(--teal-light);
}
.list-img img { width: 100%; height: 100%; object-fit: cover; }

.list-body { flex: 1; min-width: 0; }
.list-cat {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--teal);
    margin-bottom: 3px;
}
.list-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.list-meta { font-size: 11px; color: var(--text-light); margin-top: 4px; }

/* ── Sponsored product card ── */
.sponsored-product { padding: 0; overflow: hidden; }
.sp-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-light);
    padding: 10px 16px 0;
}
.sp-link { display: block; text-decoration: none; color: inherit; }
.sp-img-wrap {
    position: relative;
    background: #f8fafc;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.sp-img-wrap img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
}
.sp-body { padding: 14px 16px 16px; }
.sp-brand {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--teal);
    margin-bottom: 4px;
}
.sp-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}
.sp-pricing { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.sp-price { font-size: 18px; font-weight: 700; color: var(--text); }
.sp-orig { font-size: 13px; color: var(--text-light); text-decoration: line-through; }
.sp-save { font-size: 11px; font-weight: 700; color: #dc2626; background: #fef2f2; padding: 2px 7px; border-radius: 4px; }
.sp-ship { font-size: 11px; color: #16a34a; font-weight: 600; margin-bottom: 10px; }
.sp-cta {
    display: block;
    text-align: center;
    background: var(--teal);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 0;
    border-radius: 6px;
    margin-top: 10px;
    transition: background .15s;
}
.sp-link:hover .sp-cta { background: var(--teal-dark, #0e7490); }

/* Deal banner — shown when product has a discount */
.sp-deal-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #fff;
    padding: 8px 16px;
}
.sp-deal-pct {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.02em;
}
.sp-deal-text {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    opacity: .85;
}
.has-deal .sp-img-wrap { border-top: 2px solid #fecaca; }
.has-deal .sp-price { color: #dc2626; }
.has-deal .sp-cta { background: #dc2626; }
.has-deal .sp-link:hover .sp-cta { background: #b91c1c; }

/* ── Article page ── */
.article-header {
    padding-top: 28px;
    padding-bottom: 20px;
    max-width: 820px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 16px;
}
.breadcrumb a { color: var(--teal); text-decoration: none; }
.breadcrumb-sep { color: var(--border); }

.article-page-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.article-page-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--text-muted);
}

.cat-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 3px 10px;
    border-radius: 20px;
    text-decoration: none;
}

.badge-featured {
    background: var(--gold);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 12px;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
    padding-bottom: 60px;
}

.article-main { min-width: 0; }

/* ── Reading progress bar ── */
#read-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: var(--teal);
    z-index: 9998;
    transition: width .1s linear;
}

/* ── Share buttons ── */
.article-share {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: opacity .15s;
}
.share-btn:hover { opacity: .85; }
.share-x    { background: #000; color: #fff; }
.share-fb   { background: #1877f2; color: #fff; }
.share-wa   { background: #25d366; color: #fff; }
.share-copy { background: #f1f5f9; color: var(--text); }

.article-hero-figure { margin-bottom: 24px; }
.article-hero-img {
    width: 100%;
    border-radius: 12px;
    max-height: 500px;
    object-fit: cover;
    display: block;
}
.hero-caption {
    font-size: 12px;
    color: var(--text-muted);
    padding: 7px 4px 0;
    font-style: italic;
    display: block;
    text-align: center;
}

.article-excerpt {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.6;
    border-left: 4px solid var(--teal);
    padding-left: 16px;
    margin-bottom: 24px;
    font-style: italic;
}

.article-body {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text);
}
.article-body p { margin-bottom: 18px; }
.article-body h2 { font-size: 1.35rem; font-weight: 800; margin: 32px 0 14px; color: var(--text); }
.article-body h3 { font-size: 1.15rem; font-weight: 700; margin: 24px 0 10px; color: var(--text); }
.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 18px; }
.article-body li { margin-bottom: 6px; }
.article-body strong { font-weight: 700; }
.article-body em { font-style: italic; color: var(--text-muted); }
.social-embed-wrap {
    display: flex;
    justify-content: center;
    margin: 24px 0;
}

.article-body blockquote {
    border-left: 4px solid var(--gold);
    padding: 12px 20px;
    margin: 24px 0;
    background: #fffbeb;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-muted);
}

/* ── Inline article images ── */
.article-inline-img {
    margin: 28px 0;
    border-radius: 10px;
    overflow: hidden;
}
.article-inline-img img {
    width: 100%;
    display: block;
    border-radius: 10px;
}
.article-inline-img figcaption {
    font-size: 12px;
    color: var(--text-muted);
    padding: 8px 4px 0;
    font-style: italic;
    text-align: center;
}
.article-body a { color: var(--teal); text-decoration: underline; text-decoration-color: transparent; transition: text-decoration-color .15s; }
.article-body a:hover { text-decoration-color: var(--teal); }

/* ── Category page ── */
.cat-header {
    padding: 28px 0 24px;
    border-bottom: 3px solid;
    margin-bottom: 28px;
}
.cat-header h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 6px; }
.cat-header p { color: var(--text-muted); font-size: 14px; }

/* ── Pagination ── */
.pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin: 36px 0;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    background: var(--bg-card);
    color: var(--text-muted);
    border: 1px solid var(--border);
    transition: all .15s;
}
.pagination a:hover { background: var(--teal-light); color: var(--teal); border-color: var(--teal); }
.pagination .active { background: var(--teal); color: #fff; border-color: var(--teal); }

/* ── Search ── */
.search-form {
    display: flex;
    gap: 10px;
    margin: 28px 0;
}
.search-form input {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color .2s;
}
.search-form input:focus { border-color: var(--teal); }
.search-form button {
    padding: 12px 24px;
    background: var(--teal);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s;
}
.search-form button:hover { background: var(--teal-dark); }

/* ── Empty state ── */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.empty-state h2 { font-size: 1.3rem; margin-bottom: 8px; color: var(--text); }

/* ── Footer ── */
.site-footer {
    background: #0c1524;
    color: rgba(255,255,255,.6);
    margin-top: 72px;
    font-size: 14px;
    border-top: 3px solid var(--teal);
}
.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Newsletter strip */
.footer-newsletter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    flex-wrap: wrap;
}
.fn-text { display: flex; flex-direction: column; gap: 2px; }
.fn-text strong { color: #fff; font-size: 16px; font-weight: 700; }
.fn-text span { font-size: 13px; color: rgba(255,255,255,.5); }
.fn-form { display: flex; gap: 8px; flex-shrink: 0; }
.fn-form input {
    padding: 10px 16px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,.15);
    background: rgba(255,255,255,.07);
    color: #fff;
    font-size: 14px;
    width: 240px;
    outline: none;
}
.fn-form input::placeholder { color: rgba(255,255,255,.35); }
.fn-form input:focus { border-color: var(--teal); }
.fn-form button {
    padding: 10px 20px;
    background: var(--teal);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.fn-form button:hover { background: #0779a0; }

/* Footer grid */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding: 48px 0 40px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-logo {
    display: inline-block;
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}
.footer-logo span { color: var(--gold); }
.footer-brand p { line-height: 1.7; font-size: 13px; max-width: 260px; color: rgba(255,255,255,.5); margin-bottom: 20px; }

.footer-social { display: flex; gap: 10px; }
.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,.07);
    color: rgba(255,255,255,.55);
    text-decoration: none;
    transition: background .15s, color .15s;
}
.footer-social a:hover { background: var(--teal); color: #fff; }

.footer-col h4 {
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-col a {
    display: block;
    color: rgba(255,255,255,.55);
    text-decoration: none;
    font-size: 13px;
    margin-bottom: 10px;
    transition: color .15s;
}
.footer-col a:hover { color: var(--teal); }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    font-size: 12px;
    color: rgba(255,255,255,.3);
    flex-wrap: wrap;
    gap: 12px;
}
.footer-tagline {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(255,255,255,.2);
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(255,255,255,.3); text-decoration: none; transition: color .15s; }
.footer-bottom-links a:hover { color: rgba(255,255,255,.6); }

/* ── Static pages ── */
.static-page { max-width: 800px; margin: 40px auto; padding: 0 20px 60px; }
.static-page h1 { font-size: 2rem; font-weight: 800; margin-bottom: 24px; color: var(--text); }
.static-page h2 { font-size: 1.3rem; font-weight: 700; margin: 28px 0 12px; color: var(--text); }
.static-page p { margin-bottom: 16px; color: var(--text-muted); line-height: 1.7; }
.static-page ul { padding-left: 20px; color: var(--text-muted); margin-bottom: 16px; }
.static-page li { margin-bottom: 6px; }

/* ── 404 ── */
.not-found {
    text-align: center;
    padding: 100px 20px;
}
.not-found .code {
    font-size: 96px;
    font-weight: 900;
    color: var(--teal);
    line-height: 1;
    margin-bottom: 16px;
}
.not-found h2 { font-size: 1.5rem; margin-bottom: 12px; }
.not-found p { color: var(--text-muted); margin-bottom: 28px; }
.btn-primary {
    display: inline-block;
    padding: 12px 28px;
    background: var(--teal);
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 14px;
    transition: background .15s;
}
.btn-primary:hover { background: var(--teal-dark); }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .main-layout { grid-template-columns: 1fr 280px; }
    .article-layout { grid-template-columns: 1fr 260px; }
    .article-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .main-layout { grid-template-columns: 1fr; }
    .article-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-newsletter { flex-direction: column; align-items: flex-start; }
    .fn-form { width: 100%; }
    .fn-form input { flex: 1; min-width: 0; }
    .footer-tagline { display: none; }
    .article-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-article { aspect-ratio: 4/3; }
    .hero-title { font-size: 1.3rem; }
    .hero-content { padding: 20px; }
    .nav-search input { width: 130px; }
}

@media (max-width: 540px) {
    .article-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .nav-search { display: none; }
}

@media (max-width: 400px) {
    .footer-grid { grid-template-columns: 1fr; }
}
