/* ==========================================================================
   CSS Variables & Reset
   ========================================================================== */
   :root {
    /* Luxury Palette */
    --bg-main: #0a0a0a;
    --bg-secondary: #141414;
    --bg-card: #1f1f1f;
    --text-main: #f5f5f5;
    --text-muted: #a3a3a3;
    --primary-color: #d4af37; /* Gold */
    --primary-hover: #b89626;
    --accent: #b08d57; /* Darker Gold/Bronze */
    
    /* Typography */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    
    /* Dimensions & Spacing */
    --nav-height: 90px;
    --container-width: 1200px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-main);
    color: var(--text-main);
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    letter-spacing: 0.5px;
    color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Navbar (Luxury Minimalist)
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--font-serif);
}

.brand-main {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
    line-height: 1;
}

.brand-sub {
    font-size: 0.6rem;
    letter-spacing: 4px;
    color: var(--primary-color);
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.btn-primary {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 10px 24px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-color);
    color: var(--bg-main);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: var(--nav-height);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    opacity: 0.6;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10,10,10,0.3) 0%, rgba(10,10,10,1) 100%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
}

.hero-subtitle {
    font-family: var(--font-sans);
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: block;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 30px;
    font-style: italic;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Magazine Grid Section
   ========================================================================== */
.section-padding {
    padding: 100px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 20px;
}

.section-title {
    font-size: 2.5rem;
}

.view-all {
    color: var(--primary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

.card {
    background: var(--bg-card);
    transition: var(--transition);
    cursor: pointer;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
}

.card-img-wrapper {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.card-content {
    padding: 30px;
}

.card-meta {
    font-size: 0.8rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: block;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.card-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 60px;
}

.page-btn {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.2);
    background: transparent;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-sans);
}

.page-btn.active, .page-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--bg-main);
}

/* ==========================================================================
   Article Detail
   ========================================================================== */
.article-detail {
    padding-top: calc(var(--nav-height) + 50px);
    padding-bottom: 100px;
    max-width: 800px;
    margin: 0 auto;
}

.back-btn {
    display: inline-block;
    color: var(--text-muted);
    margin-bottom: 30px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.back-btn:hover {
    color: var(--primary-color);
}

.article-header {
    text-align: center;
    margin-bottom: 50px;
}

.article-header h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.article-meta-large {
    color: var(--primary-color);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.article-hero-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    margin-bottom: 50px;
}

.article-body h2 {
    font-size: 2rem;
    margin: 40px 0 20px;
    color: var(--primary-color);
}

.article-body p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: #ccc;
    line-height: 1.8;
}

.article-body ul {
    margin-left: 20px;
    margin-bottom: 25px;
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-body-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    margin: 30px 0;
}

.internal-links {
    background: var(--bg-card);
    padding: 30px;
    border-left: 3px solid var(--primary-color);
    margin-top: 50px;
}

.internal-links h3 {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.internal-links ul {
    list-style: none;
    margin-left: 0;
}

.internal-links li {
    margin-bottom: 10px;
}

.internal-links a {
    color: var(--text-main);
    font-style: italic;
    font-family: var(--font-serif);
    font-size: 1.2rem;
}

.internal-links a:hover {
    color: var(--primary-color);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: var(--bg-secondary);
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--text-muted);
    max-width: 300px;
}

.footer-widget h4 {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    color: var(--text-muted);
}

.footer-widget ul {
    list-style: none;
}

.footer-widget li {
    margin-bottom: 12px;
}

.footer-widget a {
    color: #ccc;
}

.footer-widget a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 30px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 3rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .article-header h1 { font-size: 2.5rem; }
}
