/* ===================================
   BLOG STYLES - GolfinThaï
   Design cohérent avec le site principal
   =================================== */

:root {
    --emerald-50: #f0fdfa;
    --emerald-100: #ccfbf1;
    --emerald-200: #99f6e4;
    --emerald-300: #5eead4;
    --emerald-400: #2dd4bf;
    --emerald-500: #14b8a6;
    --emerald-600: #0d9488;
    --emerald-700: #0f766e;
    --emerald-800: #115e59;
    --emerald-900: #134e4a;
    --color-emerald: #00574B;
    --color-emerald-light: #A3D1C8;
    --color-black: #0d1b1a;
    --color-white: #fcfcfc;
}

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(180deg, #0A0A0A 0%, #0f1716 50%, #0A0A0A 100%);
    color: var(--color-white);
    line-height: 1.7;
    min-height: 100vh;
}

/* ===================================
   NAVIGATION BAR
   =================================== */

.nav-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 87, 75, 0.2);
    padding: 1.25rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.nav-logo {
    text-decoration: none;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-emerald), var(--color-emerald-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: rgba(252, 252, 252, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
}

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

.nav-link.active {
    color: var(--emerald-400);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--emerald-400), var(--color-emerald-light));
}

.lang-switch {
    padding: 0.5rem 1rem;
    background: rgba(0, 87, 75, 0.2);
    border: 1px solid rgba(0, 87, 75, 0.4);
    border-radius: 8px;
    color: var(--emerald-300);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.lang-switch:hover {
    background: rgba(0, 87, 75, 0.3);
    border-color: var(--emerald-400);
}

/* ===================================
   BLOG HERO SECTION
   =================================== */

.blog-hero {
    position: relative;
    height: 60vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 4rem;
}

.blog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(10, 10, 10, 0.3) 0%,
        rgba(0, 87, 75, 0.6) 50%,
        rgba(10, 10, 10, 0.95) 100%
    );
    z-index: 1;
}

.blog-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.blog-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
}

.blog-breadcrumb {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.blog-breadcrumb a {
    color: var(--emerald-300);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-breadcrumb a:hover {
    color: var(--emerald-200);
}

.blog-breadcrumb span {
    color: rgba(252, 252, 252, 0.5);
}

.blog-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--color-white), var(--emerald-200));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-meta {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    font-size: 0.95rem;
    color: rgba(252, 252, 252, 0.8);
}

.blog-meta i {
    color: var(--emerald-400);
    margin-right: 0.5rem;
}

/* ===================================
   ARTICLE LAYOUT
   =================================== */

.blog-article {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.article-content {
    background: rgba(252, 252, 252, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 87, 75, 0.2);
    border-radius: 24px;
    padding: 3rem;
    margin-bottom: 3rem;
}

.article-content > p:first-of-type {
    font-size: 1.25rem;
    line-height: 1.8;
    color: rgba(252, 252, 252, 0.95);
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(0, 87, 75, 0.2);
}

.article-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--emerald-300);
    margin: 3rem 0 1.5rem 0;
    position: relative;
    padding-bottom: 0.75rem;
}

.article-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--emerald-400), var(--color-emerald-light));
}

.article-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--emerald-200);
    margin: 2rem 0 1rem 0;
}

.article-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(252, 252, 252, 0.85);
    margin-bottom: 1.5rem;
}

.article-content strong {
    color: var(--emerald-300);
    font-weight: 600;
}

.article-content ul {
    list-style: none;
    margin: 1.5rem 0;
    padding-left: 0;
}

.article-content ul li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(252, 252, 252, 0.85);
}

.article-content ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--emerald-400);
    font-weight: 600;
}

/* ===================================
   TABLES
   =================================== */

.article-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2.5rem 0;
    background: rgba(0, 87, 75, 0.1);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 87, 75, 0.3);
}

.article-content thead {
    background: linear-gradient(135deg, rgba(0, 87, 75, 0.4), rgba(20, 184, 166, 0.2));
}

.article-content thead th {
    padding: 1.25rem;
    text-align: left;
    font-weight: 600;
    color: var(--emerald-200);
    font-size: 1rem;
    border-bottom: 2px solid rgba(0, 87, 75, 0.4);
}

.article-content tbody tr {
    transition: background 0.3s ease;
}

.article-content tbody tr:hover {
    background: rgba(0, 87, 75, 0.15);
}

.article-content tbody td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(0, 87, 75, 0.2);
    color: rgba(252, 252, 252, 0.85);
    font-size: 0.95rem;
}

.article-content tbody tr:last-child td {
    border-bottom: none;
}

.article-content tbody td strong {
    color: var(--emerald-300);
}

/* ===================================
   CTA SECTION
   =================================== */

.article-cta {
    background: linear-gradient(135deg, rgba(0, 87, 75, 0.2), rgba(20, 184, 166, 0.1));
    border: 1px solid rgba(0, 87, 75, 0.3);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    margin: 4rem 0;
}

.article-cta h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--emerald-200);
}

.article-cta p {
    font-size: 1.1rem;
    color: rgba(252, 252, 252, 0.8);
    margin-bottom: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--emerald-600), var(--emerald-700));
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 1px solid var(--emerald-500);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(20, 184, 166, 0.3);
    background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600));
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    background: rgba(10, 10, 10, 0.8);
    border-top: 1px solid rgba(0, 87, 75, 0.2);
    padding: 3rem 0 2rem;
    margin-top: 6rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-brand {
    max-width: 350px;
}

.footer-brand .logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--emerald-400), var(--color-emerald-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 0.75rem;
}

.footer-description {
    font-size: 0.875rem;
    color: rgba(252, 252, 252, 0.6);
    line-height: 1.6;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(252, 252, 252, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--emerald-300);
}

.footer-social {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 87, 75, 0.2);
    border: 1px solid rgba(0, 87, 75, 0.3);
    color: var(--emerald-300);
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social a:hover {
    background: rgba(0, 87, 75, 0.3);
    border-color: var(--emerald-400);
    color: var(--emerald-200);
    transform: translateY(-2px);
}

.footer-social i {
    font-size: 1.25rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 87, 75, 0.2);
    color: rgba(252, 252, 252, 0.5);
    font-size: 0.875rem;
}

/* ===================================
   BLOG INDEX PAGE
   =================================== */

.blog-page-header {
    text-align: center;
    padding: 6rem 2rem 4rem;
    background: linear-gradient(180deg,
        rgba(0, 87, 75, 0.1) 0%,
        transparent 100%
    );
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--emerald-300), var(--color-emerald-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.25rem;
    color: rgba(252, 252, 252, 0.7);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-card {
    background: rgba(252, 252, 252, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 87, 75, 0.2);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    border-color: var(--emerald-400);
    box-shadow: 0 20px 60px rgba(20, 184, 166, 0.2);
}

.blog-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    display: block;
    cursor: pointer;
}

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

.blog-card:hover .blog-card-image img {
    transform: scale(1.1);
}

.blog-card-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 87, 75, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--emerald-200);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-card-excerpt {
    font-size: 0.95rem;
    color: rgba(252, 252, 252, 0.7);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--emerald-400);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: gap 0.3s ease;
    margin-top: auto;
}

.blog-card-link:hover {
    gap: 1rem;
}

.blog-card-link i {
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-link i {
    transform: translateX(4px);
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .blog-hero h1 {
        font-size: 2.5rem;
    }

    .blog-hero {
        height: 50vh;
        min-height: 400px;
    }

    .article-content {
        padding: 2rem 1.5rem;
    }

    .article-content h2 {
        font-size: 1.75rem;
    }

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

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

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .blog-hero h1 {
        font-size: 2rem;
    }

    .article-content {
        padding: 1.5rem 1rem;
    }

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

    .article-cta {
        padding: 2rem 1.5rem;
    }
}
