/* ==========================================================================
   Premium Dark Mode & Glassmorphism Stylesheet
   ========================================================================== */

:root {
    --bg-dark: #0f172a; /* Deep slate blue/black */
    --bg-darker: #020617;
    --bg-sec: rgba(15, 23, 42, 0.85);
    --text-primary: #f8fafc;
    --text-main: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #cbd5e1;
    --accent-emerald: #10b981;
    --accent-gold: #fbbf24;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --border: rgba(148, 163, 184, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    background: -webkit-linear-gradient(45deg, var(--accent-emerald), var(--accent-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.08;
    letter-spacing: -1px;
}

a {
    color: var(--accent-emerald);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-gold);
}

/* ==========================================================================
   Glassmorphism Utilities
   ========================================================================== */
.glass-header, .glass-footer, .glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.glass-card {
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.glass-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
    border-top: none;
    border-left: none;
    border-right: none;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.nav-menu ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    color: var(--text-primary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-emerald);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(45deg, var(--accent-emerald), #059669);
    color: white !important;
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

.btn-block {
    width: 100%;
    text-align: center;
    padding: 1rem;
    font-size: 1.1rem;
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */
.wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    flex-grow: 1;
}

.article-container, .article-content {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 1.5rem;
    flex-grow: 1;
}

/* Static pages (about, faq, contact) */
.page-content {
    max-width: 860px;
    margin: 4rem auto;
    padding: 0 1.5rem;
    flex-grow: 1;
}
.page-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    background: -webkit-linear-gradient(45deg, var(--accent-emerald), var(--accent-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.section-intro {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    border-left: 3px solid var(--accent-emerald);
    padding-left: 1.2rem;
}

/* Hero Section */
.hero-min {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 1.5rem 3rem;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.hero-min h1 {
    margin: 0 auto 1.2rem;
    max-width: 900px;
    text-align: center;
}
.hero-min p {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 2rem;
    line-height: 1.7;
    text-align: center;
}
.hero-min img {
    width: 100%;
    max-width: 1000px;
    max-height: 520px;
    object-fit: cover;
    border-radius: 20px;
    margin: 2rem auto 0;
    display: block;
}

/* Article Card Grid */
.grid-min {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    padding: 2rem 1.5rem 4rem;
    align-items: stretch;
    width: 100%;
}
.min-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
    height: 100%;
}
.min-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
    border-color: var(--accent-emerald);
}
.min-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 0;
    margin: 0;
    box-shadow: none;
    transition: transform 0.4s ease;
}
.min-card:hover img { transform: scale(1.04); }
.min-card h3 {
    padding: 1rem 1.4rem 0.5rem;
    font-size: 1.15rem;
    color: var(--text-primary);
    font-family: var(--font-heading);
    line-height: 1.4;
    margin-bottom: 0.5rem;
}
.min-card p {
    padding: 0 1.4rem 1rem;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 0;
}
.min-card a {
    padding: 0.8rem 1.4rem 1.4rem;
    color: var(--accent-emerald);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: auto;
    display: inline-block;
}

/* Article Layout */
.article-layout {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 4vw 5rem;
}

.article-header {
    max-width: 860px;
    margin: 0 auto 2rem;
    text-align: center;
}

.article-category {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--accent-emerald);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.74rem;
    font-weight: 700;
}

.article-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    line-height: 1.12;
    margin-bottom: 1.5rem;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.article-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.7rem;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.35);
}

.article-hero-img-container {
    max-width: 960px;
    margin: 0 auto 2.5rem;
}

.article-hero-img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 20px;
    margin: 0;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.article-content {
    max-width: 860px;
    margin: 0 auto;
}

.article-content p {
    margin-bottom: 1.5rem;
    font-size: 1.08rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.article-content h2 {
    margin-top: 3rem;
    font-size: clamp(1.7rem, 2vw, 2.3rem);
    color: var(--accent-gold);
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

.article-share-wrap {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.7rem 1.2rem;
    background: var(--bg-sec);
    color: var(--text-main);
    border: 1px solid var(--border);
    font-weight: 600;
    transition: all 0.25s ease;
}

.nav-btn:hover {
    transform: translateY(-2px);
    border-color: var(--accent-emerald);
    color: var(--accent-emerald);
}

.article-share-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.article-share-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.share-twitter {
    background: #1da1f2;
    color: #fff;
    border-color: transparent;
}

.share-facebook {
    background: #1877f2;
    color: #fff;
    border-color: transparent;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   Web Forms
   ========================================================================== */
.contact-form-container {
    max-width: 600px;
    margin: 4rem auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-emerald);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* ==========================================================================
   Accordion / FAQ
   ========================================================================== */
.faq-accordion {
    max-width: 800px;
    margin: 4rem auto;
}

details {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

details[open] {
    background: rgba(15, 23, 42, 0.8);
    border-color: var(--accent-emerald);
}

summary {
    padding: 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    position: relative;
    outline: none;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--accent-emerald);
    transition: transform 0.3s ease;
}

details[open] summary::after {
    content: '-';
    transform: translateY(-50%) rotate(180deg);
}

details p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.glass-footer {
    margin-top: auto;
    border-top: 1px solid var(--glass-border);
    border-bottom: none;
    border-left: none;
    border-right: none;
}

.footer-grid {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem 3rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 0;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 1rem;
    max-width: 300px;
}

.footer-logo {
    max-width: 150px;
    margin: 0;
    border-radius: 8px;
}

.footer-links h4, .footer-legal h4 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.footer-links ul, .footer-legal ul {
    list-style: none;
}

.footer-links li, .footer-legal li {
    margin-bottom: 0.8rem;
}

.footer-links a, .footer-legal a {
    color: var(--text-secondary);
}

.footer-links a:hover, .footer-legal a:hover {
    color: var(--accent-emerald);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .nav-menu ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand p {
        margin: 1rem auto;
    }
}
