/* ============================================
   FONT FACE DEFINITIONS
   ============================================ */

@font-face {
    font-family: 'Gilroy';
    src: url('../gilroy/Gilroy-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Gilroy';
    src: url('../gilroy/Gilroy-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Gilroy';
    src: url('../gilroy/Gilroy-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Gilroy';
    src: url('../gilroy/Gilroy-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Gilroy';
    src: url('../gilroy/Gilroy-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Gilroy';
    src: url('../gilroy/Gilroy-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}

/* ============================================
   ROOT VARIABLES
   ============================================ */

:root {
    /* Colors */
    --color-white: #fff;
    --color-off-white: #fafafa;
    --color-dark: #0D0D0D;
    --color-dark-grey: #1a1a1a;
    --color-light-grey: #f5f5f5;
    --color-medium-grey: #666;
    --color-border: #e0e0e0;
    --color-text: #2a2a2a;
    --color-text-light: #666;
    --color-accent: #0D0D0D;
    
    /* Typography */
    --font-primary: 'Gilroy', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Font Weights */
    --font-light: 300;
    --font-regular: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Border Radius */
    --border-radius-sm: 0.5rem;
    --border-radius-md: 1rem;
    --border-radius-lg: 1.5rem;
    
    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.4s ease;
    
    /* Font Sizes - Responsive */
    --text-xs: clamp(0.75rem, 1vw, 0.875rem);
    --text-sm: clamp(0.875rem, 1.2vw, 1rem);
    --text-base: clamp(1rem, 1.5vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1.8vw, 1.25rem);
    --text-xl: clamp(1.25rem, 2vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 3vw, 2rem);
    --text-3xl: clamp(2rem, 4vw, 3rem);
    --text-4xl: clamp(3rem, 6vw, 4.5rem);
    --text-5xl: clamp(4rem, 8vw, 6rem);
}

/* ============================================
   RESET & BASE
   ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-primary);
    font-weight: 300;
    background-color: var(--color-white);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: var(--color-light-grey);
}

body::-webkit-scrollbar-thumb {
    background: var(--color-medium-grey);
    border-radius: 4px;
}

body::-webkit-scrollbar-thumb:hover {
    background: var(--color-dark-grey);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-dark);
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

a:hover {
    opacity: 0.7;
}

img, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

button {
    font-family: var(--font-primary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

ul, ol {
    list-style: none;
}

input, textarea, select {
    font-family: var(--font-primary);
}

/* ============================================
   HEADER
   ============================================ */

#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 5%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    transition: all var(--transition-normal);
}

#header.scrolled {
    padding: 1rem 5%;
    box-shadow: var(--shadow-sm);
}

/* ============================================
   ARTICLE HERO
   ============================================ */

.article-hero {
    padding: 10rem 5% 4rem;
   
}

.article-hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--text-sm);
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

.breadcrumb a {
    color: var(--color-text-light);
    transition: color var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--color-dark);
    opacity: 1;
}

.breadcrumb span {
    color: var(--color-border);
}

.article-category {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: var(--color-dark);
    color: var(--color-white);
    border-radius: 2rem;
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.article-hero h1 {
    font-size: var(--text-5xl);
    font-weight: 800;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.author-info {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.author-avatar {
    width: 56px;
    height: 56px;
    
    border-radius: 50%;
    flex-shrink: 0;
}

.author-name {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 0.25rem;
}

.author-title {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    font-weight: 500;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--text-sm);
    color: var(--color-text-light);
}

.meta-item svg {
    color: var(--color-dark);
}

/* ============================================
   ARTICLE CONTENT WRAPPER
   ============================================ */

.article-content {
    padding: 4rem 5%;
    background: var(--color-white);
}

.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 60px 1fr 300px;
    gap: 4rem;
    align-items: start;
}

/* ============================================
   SOCIAL SHARE SIDEBAR
   ============================================ */

.social-share {
    position: sticky;
    top: 120px;
}

.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.share-label {
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.share-button {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-light-grey);
    border-radius: 50%;
    color: var(--color-dark);
    transition: all var(--transition-fast);
}

.share-button:hover {
    background: var(--color-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    opacity: 1;
}

/* ============================================
   ARTICLE BODY
   ============================================ */

.article-body {
    max-width: 700px;
}

.article-body p {
    font-size: var(--text-lg);
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.article-body h2 {
    font-size: var(--text-3xl);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.article-body h3 {
    font-size: var(--text-2xl);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.article-body blockquote {
    background: var(--color-off-white);
    padding: 2rem;
    border-left: 4px solid var(--color-dark);
    border-radius: var(--border-radius-sm);
    margin: 3rem 0;
    font-size: var(--text-xl);
    font-style: italic;
    line-height: 1.7;
    color: var(--color-dark);
}

.article-body ul {
    list-style: none;
    padding-left: 0;
    margin: 2rem 0;
}

.article-body ul li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    font-size: var(--text-lg);
    line-height: 1.7;
}

.article-body ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-dark);
    font-weight: 700;
}

.article-body strong {
    font-weight: 700;
    color: var(--color-dark);
}

.article-image {
    margin: 3rem 0;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    padding: 1rem;
    background: var(--color-light-grey);
    font-size: var(--text-sm);
    color: var(--color-text-light);
    text-align: center;
    font-style: italic;
}

/* ============================================
   ARTICLE TAGS
   ============================================ */

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 3rem 0;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.tag {
    padding: 0.5rem 1.25rem;
    background: var(--color-light-grey);
    border-radius: 2rem;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text);
    transition: all var(--transition-fast);
}

.tag:hover {
    background: var(--color-dark);
    color: var(--color-white);
    opacity: 1;
}

/* ============================================
   AUTHOR BIO
   ============================================ */

.author-bio {
    display: flex;
    gap: 2rem;
    padding: 2.5rem;
    background: var(--color-off-white);
    border-radius: var(--border-radius-lg);
    margin: 3rem 0;
}

.author-bio-avatar {
    width: 100px;
    height: 100px;
    background: var(--color-dark);
    border-radius: 50%;
    flex-shrink: 0;
}

.author-bio-content h3 {
    font-size: var(--text-xl);
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.author-bio-title {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.author-bio-text {
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.author-social {
    display: flex;
    gap: 0.75rem;
}

.author-social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    border-radius: 50%;
    color: var(--color-dark);
    transition: all var(--transition-fast);
}

.author-social-link:hover {
    background: var(--color-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    opacity: 1;
}

/* ============================================
   COMMENTS SECTION
   ============================================ */

.comments-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--color-border);
}

.comments-section h3 {
    font-size: var(--text-2xl);
    margin-bottom: 2rem;
}

.comment {
    padding: 2rem;
    background: var(--color-off-white);
    border-radius: var(--border-radius-lg);
    margin-bottom: 1.5rem;
}

.comment-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-avatar {
    width: 48px;
    height: 48px;
    background: var(--color-dark);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--text-sm);
    flex-shrink: 0;
}

.comment-info h4 {
    font-size: var(--text-base);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.comment-date {
    font-size: var(--text-sm);
    color: var(--color-text-light);
}

.comment-text {
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.comment-reply {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-dark);
    cursor: pointer;
    transition: opacity var(--transition-fast);
}

.comment-reply:hover {
    opacity: 0.7;
}

/* ============================================
   COMMENT FORM
   ============================================ */

.comment-form {
    margin-top: 3rem;
    padding: 2.5rem;
    background: var(--color-off-white);
    border-radius: var(--border-radius-lg);
}

.comment-form h4 {
    font-size: var(--text-xl);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: var(--text-sm);
    margin-bottom: 0.5rem;
    color: var(--color-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: var(--text-base);
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    background: var(--color-white);
    color: var(--color-text);
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-dark);
    box-shadow: 0 0 0 3px rgba(13, 13, 13, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-button {
    padding: 1rem 2.5rem;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: var(--text-base);
    background: var(--color-dark);
    color: var(--color-white);
    border: none;
    border-radius: 3rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.submit-button:hover {
    background: var(--color-dark-grey);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   TABLE OF CONTENTS SIDEBAR
   ============================================ */

.toc-sidebar {
    position: sticky;
    top: 120px;
}

.toc-card {
    background: var(--color-off-white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--color-border);
}

.toc-card h3 {
    font-size: var(--text-lg);
    margin-bottom: 1.5rem;
    margin-top: 0;
}

.toc-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toc-link {
    display: block;
    padding: 0.75rem 1rem;
    font-size: var(--text-sm);
    color: var(--color-text);
    border-left: 3px solid transparent;
    transition: all var(--transition-fast);
}

.toc-link:hover {
    background: var(--color-white);
    border-left-color: var(--color-dark);
    opacity: 1;
}

.toc-link.active {
    background: var(--color-white);
    border-left-color: var(--color-dark);
    font-weight: 600;
    color: var(--color-dark);
}

/* ============================================
   RELATED POSTS
   ============================================ */

.related-posts {
    padding: 5rem 5%;
    background: var(--color-off-white);
}

.related-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: var(--text-xs);
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: var(--text-4xl);
    color: var(--color-dark);
    letter-spacing: -0.02em;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.related-card {
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    cursor: pointer;
    border: 1px solid var(--color-border);
}

.related-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.related-image {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
}

.related-content {
    padding: 2rem;
}

.related-category {
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.related-content h3 {
    font-size: var(--text-xl);
    margin-bottom: 0.75rem;
}

.related-excerpt {
    font-size: var(--text-sm);
    line-height: 1.7;
    color: var(--color-text);
}

/* ============================================
   FOOTER
   ============================================ */





/* ============================================
   NEWSLETTER SECTION
   ============================================ */

.newsletter-section {
    background: var(--color-dark);
    color: var(--color-white);
    text-align: center;
}

.newsletter-content {
    max-width: 700px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-size: var(--text-3xl);
    color: var(--color-white);
    margin-bottom: 1rem;
}

.newsletter-content p {
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 1rem 1.5rem;
    font-family: var(--font-primary);
    font-size: var(--text-base);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 3rem;
    color: var(--color-white);
    transition: all var(--transition-fast);
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--color-white);
}

.newsletter-button {
    padding: 1rem 2rem;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: var(--text-base);
    background: var(--color-white);
    color: var(--color-dark);
    border: none;
    border-radius: 3rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.newsletter-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
}





/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
    .content-wrapper {
        grid-template-columns: 1fr 280px;
        gap: 3rem;
    }
    
    .social-share {
        display: none;
    }
}

@media (max-width: 968px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .toc-sidebar {
        position: static;
        margin-top: 3rem;
    }
    
    .article-hero {
        padding: 8rem 5% 3rem;
    }
    
    .article-hero h1 {
        font-size: var(--text-4xl);
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .article-body p,
    .article-body ul li {
        font-size: var(--text-base);
    }
    
    .article-body h2 {
        font-size: var(--text-2xl);
    }
    
    .article-body h3 {
        font-size: var(--text-xl);
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .author-bio-avatar {
        margin: 0 auto;
    }
    
    .author-social {
        justify-content: center;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .comment-form {
        padding: 1.5rem;
    }
}

/* ============================================
   UTILITIES
   ============================================ */

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }