/* Article Page Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Main Content */
main {
    padding-top: 100px;
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

/* Article Container */
.article-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Article */
.article {
    background: white;
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.1);
    position: relative;
    overflow: hidden;
}

.article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6 0%, #6366f1 100%, #3b82f6);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Article Title */
.article h1 {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1e3a8a 0%, #312e81 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    margin-bottom: 25px;
    letter-spacing: -0.02em;
}

/* Meta Information */
.meta {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 2px solid #f1f5f9;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.author {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-weight: 500;
}

.author::before {
    content: '✍️';
    font-size: 1.2rem;
}

.date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 0.95rem;
}

.date::before {
    content: '📅';
    font-size: 1.1rem;
}

.date-article-font-size {
    font-size: 0.95rem;
}

/* Featured Image */
.featured-image {
    margin: 40px -20px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.featured-image figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 20px;
    font-size: 0.9rem;
    font-style: italic;
}

/* Article Intro */
.article-intro {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #475569;
    margin: 35px 0;
    padding: 25px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-left: 4px solid;
    border-image: linear-gradient(180deg, #3b82f6, #6366f1) 1;
    border-radius: 0 12px 12px 0;
    font-weight: 500;
}

/* Article Content */
.article-content {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #334155;
    margin: 40px 0;
}

.article-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 40px 0 20px;
    color: #1e293b;
    position: relative;
    padding-left: 20px;
}

.article-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #3b82f6, #6366f1);
    border-radius: 2px;
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 30px 0 15px;
    color: #334155;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 12px;
    line-height: 1.8;
}

.article-content ul li::marker {
    color: #3b82f6;
}

.article-content ol li::marker {
    color: #3b82f6;
    font-weight: 600;
}

.article-content blockquote {
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left: 4px solid #3b82f6;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #1e3a8a;
    position: relative;
}

.article-content blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: #3b82f6;
    opacity: 0.3;
    font-family: Georgia, serif;
}

.article-content strong {
    font-weight: 700;
    color: #1e293b;
    background: linear-gradient(to bottom, transparent 60%, #fbbf24 60%, #fbbf24 90%, transparent 90%);
}

.article-content em {
    font-style: italic;
    color: #475569;
}

.article-content a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.article-content a:hover {
    border-bottom-color: #3b82f6;
    color: #2563eb;
}

.article-content code {
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
    color: #e11d48;
}

.article-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 30px 0;
}

.article-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

.article-content th {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.article-content td {
    padding: 15px;
    border-bottom: 1px solid #e2e8f0;
}

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

.article-content tr:nth-child(even) {
    background: #f8fafc;
}

/* Article Conclusion */
.article-conclusion {
    margin-top: 50px;
    padding: 35px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 20px;
    border: 2px solid #3b82f6;
    position: relative;
}

.article-conclusion::before {
    content: '💡';
    position: absolute;
    top: -20px;
    left: 30px;
    background: white;
    padding: 5px 15px;
    font-size: 2rem;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.article-conclusion h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 15px;
}

.article-conclusion p {
    color: #334155;
    line-height: 1.8;
    font-size: 1.05rem;
}

.article-conclusion a {
    color: #3b82f6;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid #3b82f6;
    transition: all 0.3s ease;
}

.article-conclusion a:hover {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

/* Related Posts Section */
.related-posts {
    margin-top: 80px;
    padding: 60px 40px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

.related-posts::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -25%;
    width: 150%;
    height: 200%;
    background: radial-gradient(circle, rgba(30, 58, 138, 0.05) 0%, transparent 70%);
    transform: rotate(-15deg);
}

.related-posts h2 {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1e3a8a 0%, #312e81 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    position: relative;
    z-index: 1;
}

.related-post {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.related-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6 0%, #6366f1 100%);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.related-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(30, 58, 138, 0.12);
    border-color: #3b82f6;
}

.related-post:hover::before {
    transform: translateY(0);
}

.related-post-link {
    text-decoration: none;
    color: inherit;
}

.related-post h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.related-post:hover h3 {
    background: linear-gradient(135deg, #1e3a8a 0%, #312e81 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Nav Home Link Styles */
.nav-home-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
    position: relative;
    overflow: hidden;
}

.nav-home-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-home-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.35);
}

.nav-home-link:hover::before {
    opacity: 1;
}

.nav-home-link svg {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.nav-home-link span {
    position: relative;
    z-index: 1;
    letter-spacing: 0.025em;
}

.nav-home-link:hover svg {
    transform: scale(1.1);
}

.nav-home-link:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(59, 130, 246, 0.2);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .article {
        padding: 35px 25px;
        border-radius: 20px;
    }
    
    .nav-home-link span {
        display: none;
    }
    
    .nav-home-link {
        padding: 8px 14px;
    }
    
    .nav-home-link svg {
        width: 20px;
        height: 20px;
    }
    
    .article h1 {
        font-size: 2rem;
    }
    
    .meta {
        gap: 15px;
        padding: 15px 0;
    }
    
    .featured-image {
        margin: 30px -15px;
    }
    
    .article-intro {
        font-size: 1.1rem;
        padding: 20px;
        margin: 30px 0;
    }
    
    .article-content {
        font-size: 1.05rem;
        line-height: 1.8;
    }
    
    .article-content h2 {
        font-size: 1.6rem;
        margin: 35px 0 18px;
    }
    
    .article-content h3 {
        font-size: 1.3rem;
        margin: 25px 0 12px;
    }
    
    .article-conclusion {
        padding: 25px;
        margin-top: 40px;
    }
    
    .article-conclusion h2 {
        font-size: 1.5rem;
    }
    
    .related-posts {
        padding: 40px 20px;
        margin-top: 60px;
    }
    
    .related-posts h2 {
        font-size: 1.8rem;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    main {
        padding-top: 80px;
    }
    
    .article-container {
        padding: 20px 10px;
    }
    
    .article {
        padding: 25px 15px;
        border-radius: 16px;
    }
    
    .article h1 {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }
    
    .meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .featured-image {
        margin: 25px -10px;
        border-radius: 12px;
    }
    
    .featured-image figcaption {
        padding: 15px;
        font-size: 0.85rem;
    }
    
    .article-intro {
        font-size: 1rem;
        padding: 15px;
        margin: 25px 0;
    }
    
    .article-content {
        font-size: 1rem;
        margin: 30px 0;
    }
    
    .article-content h2 {
        font-size: 1.4rem;
        margin: 30px 0 15px;
        padding-left: 15px;
    }
    
    .article-content h3 {
        font-size: 1.2rem;
    }
    
    .article-content blockquote {
        padding: 20px;
        margin: 25px 0;
    }
    
    .article-conclusion {
        padding: 20px;
        margin-top: 35px;
        border-radius: 16px;
    }
    
    .article-conclusion::before {
        font-size: 1.5rem;
        top: -15px;
        left: 20px;
    }
    
    .article-conclusion h2 {
        font-size: 1.3rem;
    }
    
    .related-posts {
        padding: 30px 15px;
        margin-top: 50px;
        border-radius: 20px;
    }
    
    .related-posts h2 {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
    
    .related-post {
        padding: 20px;
    }
    
    .related-post h3 {
        font-size: 1.1rem;
    }
}