:root {
    --bg-color: #ffffff;
    --card-bg: #f9f9f9;
    --accent-color: #C9A84C;
    --text-primary: #111111;
    --text-secondary: #666666;
    --nav-height: 60px;
    --glass-border: rgba(0, 0, 0, 0.08);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .logo {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: #000;
}

/* Layout Full-Width */
.full-width {
    width: 100%;
}

/* Article Body - Readability exception */
.article-body {
    max-width: 1500px;
    margin: 4rem auto;
    padding: 0 1.5rem;
    font-size: 1.2rem;
}

.section__inner {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Specific for Home to be full width if needed */
.home-full-width .section__inner {
    max-width: 100%;
}

.header-top .section__inner {
    max-width: 1500px;
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.logo-container {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.header-main {
    background: #fff;
    border-bottom: 2px solid #000;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--nav-height);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-img {
    height: 80px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: #444;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
}

.nav-link:hover { color: var(--accent-color); }

/* Navigation Dropdowns */
.nav-dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid #000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1100;
    padding: 0.5rem 0;
}

.nav-dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: #444;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: background 0.2s, color 0.2s;
}

.dropdown-item:hover {
    background: #f8f8f8;
    color: var(--accent-color);
}

.nav-link .arrow {
    font-size: 0.6rem;
    margin-left: 0.2rem;
    transition: transform 0.3s;
}

.nav-dropdown:hover .nav-link .arrow {
    transform: rotate(180deg);
}

/* Article Cards - Premium Editorial Style */
.article-card {
    display: block;
    background: transparent;
    transition: all 0.4s ease;
}

.article-card a {
    text-decoration: none !important;
    color: inherit;
    display: block;
}

.card-image-wrapper {
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
}

/* Sharp, elegant images instead of rounded 'app' like borders */
.card-image-wrapper img {
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.article-card:hover .card-image-wrapper img {
    transform: scale(1.05);
}

.cat-label {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: #fff;
    padding: 6px 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #D81B60; /* Brand Pink */
    z-index: 2;
    transition: background 0.3s, color 0.3s;
}

.article-card:hover .cat-label {
    background: #D81B60;
    color: #fff;
}

.article-card__content h2, 
.article-card__content h3 {
    margin-top: 1.2rem;
    font-size: 1.2rem;
    line-height: 1.35;
    font-family: 'Inter', sans-serif; /* Sleek modern editorial typo */
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #111;
    transition: color 0.3s ease;
}

.article-card:hover .article-card__content h2,
.article-card:hover .article-card__content h3 {
    color: #D81B60;
}

/* --- CUSTOM MAGAZINE GRID SYSTEM --- */
.kw-grid-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .kw-grid-main {
        grid-template-columns: 7fr 3fr; /* 70/30 split */
        gap: 2.5rem;
    }
}

.kw-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 640px) {
    .kw-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.kw-grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .kw-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.kw-grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .kw-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .kw-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.kw-flex-row { display: flex; flex-direction: row; align-items: flex-start; gap: 1rem; }
.kw-flex-col { display: flex; flex-direction: column; gap: 2rem; }
.border-right-lg { border-right: none; }
@media (min-width: 1024px) {
    .border-right-lg {
        border-right: 1px solid #eaeaea;
        padding-right: 4rem;
    }
}

.card-date {
    font-size: 0.75rem;
    color: #888;
    margin-top: 0.5rem;
}

/* Social Buttons */
.share-buttons {
    display: flex;
    gap: 8px;
    margin: 1.5rem 0;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s;
}

.share-btn:hover { opacity: 0.8; }
.share-twitter { background: #000; }
.share-facebook { background: #1877F2; }
.share-whatsapp { background: #25D366; }
.share-pinterest { background: #BD081C; }
.share-bluesky { background: #0560ff; }
.share-telegram { background: #0088cc; }
.share-copy { background: #eee; color: #333; cursor: pointer; border: none; }

/* Locale Switcher Styling */
.locale-switcher {
    position: relative;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    margin-right: 2rem;
}

.current-locale {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.current-locale:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
}

.current-locale .arrow {
    font-size: 0.6rem;
    opacity: 0.5;
}

.locale-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    padding: 0.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 1100;
}

.locale-switcher:hover .locale-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.locale-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.locale-link:hover {
    background: rgba(201, 168, 76, 0.2);
}

.locale-link.active {
    color: var(--accent-color);
    background: rgba(201, 168, 76, 0.1);
}

.loc-code {
    font-weight: 700;
    min-width: 25px;
}

.loc-name {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Table of Contents & Smooth Scroll */
html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-height) + 20px);
}

.table-of-contents {
    max-width: 600px;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item a {
    text-decoration: none;
    font-size: 0.95rem;
}

.toc-level-3 {
    padding-left: 1.5rem;
}

.toc-level-4 {
    padding-left: 3rem;
}

.toc-item a:hover {
    padding-left: 5px;
}

/* Magazine Typography & Accents */
.magazine-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    color: #000;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 2rem;
}

.accent-line {
    display: inline-block;
    width: 4px;
    height: 24px;
    background: #D81B60; /* Brand pink */
}

.search-form input::placeholder {
    color: #999;
}

.current-locale img {
    border-radius: 2px;
}

/* Astrology Calculator & Animations */
.bg-dark {
    background-color: #0d0920;
}

.text-white {
    color: #fff !important;
}

#astro-calc-form input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-card.glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
}

.result-card.glass:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(201, 168, 76, 0.15);
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.75rem;
}
