/* Blog Article Page Styles */

.article-page {
    margin-top: 80px;
    padding: 0 10px;
    min-height: calc(100vh - 80px);
}

.blog-article-content {
    max-width: 900px;
    margin: 60px auto;
    padding: 0;
}

/* Article Header */
.article-header {
    margin-bottom: 60px;
    padding: 0 20px;
    animation: fadeInDown 0.8s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.breadcrumb {
    font-size: 14px;
    color: #a0a0a0;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #ffd700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb a:hover {
    color: #ffed4e;
    text-decoration: underline;
}

.article-header h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 25px;
    line-height: 1.3;
    background: linear-gradient(45deg, #ffd700, #ffed4e, #ffd700);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 25px;
    font-size: 14px;
    color: #b0b0b0;
}

.article-date,
.article-category,
.read-time {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-date::before {
    content: '📅';
}

.article-category::before {
    content: '🏷️';
}

.read-time::before {
    content: '⏱️';
}

.article-excerpt {
    font-size: 1.1rem;
    color: #d0d0d0;
    line-height: 1.7;
    padding: 25px;
    background: rgba(255, 215, 0, 0.05);
    border-left: 4px solid #ffd700;
    border-radius: 8px;
    margin: 30px 0;
    font-style: italic;
}

/* Article Body */
.article-body {
    padding: 0 20px;
}

.content-section {
    margin-bottom: 50px;
    animation: fadeInUp 0.8s ease;
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-section h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: #ffd700;
    margin-bottom: 20px;
    margin-top: 40px;
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.2);
}

.content-section h2:first-child {
    margin-top: 0;
}

.content-section p {
    font-size: 1.05rem;
    color: #d0d0d0;
    line-height: 1.8;
    margin-bottom: 18px;
    text-align: justify;
}

/* Links in article content - UPDATED FOR BETTER VISIBILITY */
.content-section a,
.article-excerpt a,
.insight-box a {
    color: #ffed4e;
    text-decoration: underline;
    text-decoration-color: rgba(255, 215, 0, 0.5);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    background: linear-gradient(180deg, transparent 70%, rgba(255, 215, 0, 0.15) 70%);
    padding: 0 2px;
}

.content-section a:hover,
.article-excerpt a:hover,
.insight-box a:hover {
    color: #ffd700;
    text-decoration-color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    background: linear-gradient(180deg, transparent 60%, rgba(255, 215, 0, 0.25) 60%);
}

.content-section a:active {
    color: #ffed4e;
    transform: scale(0.98);
}

/* Insight Box */
.insight-box {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08) 0%, rgba(255, 215, 0, 0.03) 100%);
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-left: 4px solid #ffd700;
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
    position: relative;
    backdrop-filter: blur(10px);
}

.insight-box::before {
    content: '💡';
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    opacity: 0.3;
}

.insight-box p {
    margin: 0;
    color: #e0e0e0;
    font-size: 1.05rem;
    line-height: 1.7;
}

.insight-box strong {
    color: #ffed4e;
}

/* Comparison Table */
.comparison-table-wrapper {
    margin: 50px 0;
    animation: fadeInUp 0.8s ease;
    animation-delay: 0.3s;
    animation-fill-mode: both;
}

.comparison-table-wrapper h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: #ffd700;
    margin-bottom: 30px;
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.2);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.comparison-table thead {
    background: rgba(255, 215, 0, 0.1);
    border-bottom: 2px solid rgba(255, 215, 0, 0.2);
}

.comparison-table th {
    padding: 20px;
    text-align: left;
    color: #ffd700;
    font-weight: 600;
    font-size: 1.05rem;
    text-transform: capitalize;
}

.comparison-table td {
    padding: 18px 20px;
    color: #d0d0d0;
    border-bottom: 1px solid rgba(255, 215, 0, 0.05);
    line-height: 1.6;
    font-size: 0.95rem;
}

.comparison-table tbody tr:hover {
    background: rgba(255, 215, 0, 0.05);
    transition: background 0.3s ease;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table strong {
    color: #ffed4e;
}

/* Article Footer */
.article-footer {
    margin-top: 80px;
    padding: 40px 20px;
    border-top: 2px solid rgba(255, 215, 0, 0.1);
}

.article-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.back-to-blog {
    display: inline-block;
    padding: 12px 25px;
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.back-to-blog:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
    transform: translateX(-5px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .article-header {
        padding: 0 15px;
    }

    .article-body {
        padding: 0 15px;
    }

    .article-header h1 {
        font-size: 2.2rem;
    }

    .content-section h2 {
        font-size: 1.8rem;
    }

    .comparison-table {
        font-size: 0.9rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .article-page {
        margin-top: 70px;
        padding: 0 10px;
    }

    .blog-article-content {
        margin: 40px auto;
    }

    .article-header {
        margin-bottom: 40px;
        padding: 0 10px;
    }

    .article-header h1 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .article-excerpt {
        font-size: 1rem;
        padding: 20px;
        margin: 25px 0;
    }

    .article-body {
        padding: 0 10px;
    }

    .content-section {
        margin-bottom: 40px;
    }

    .content-section h2 {
        font-size: 1.5rem;
        margin: 35px 0 15px;
    }

    .content-section p {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 15px;
        text-align: left;
    }

    .insight-box {
        padding: 20px;
        margin: 25px 0;
    }

    .insight-box::before {
        font-size: 1.5rem;
        top: 10px;
        right: 15px;
    }

    .comparison-table {
        font-size: 0.85rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 12px;
    }

    .article-meta {
        gap: 15px;
        font-size: 13px;
    }

    .article-footer {
        margin-top: 60px;
        padding: 30px 10px;
    }
}

@media (max-width: 480px) {
    .article-header {
        padding: 0;
    }

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

    .article-meta {
        flex-direction: column;
        gap: 8px;
        font-size: 12px;
    }

    .article-excerpt {
        font-size: 0.95rem;
        padding: 15px;
        margin: 20px 0;
        line-height: 1.5;
    }

    .article-body {
        padding: 0;
    }

    .content-section {
        margin-bottom: 30px;
    }

    .content-section h2 {
        font-size: 1.3rem;
        margin: 30px 0 12px;
        padding-bottom: 10px;
    }

    .content-section p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 12px;
    }

    .insight-box {
        padding: 15px;
        margin: 20px 0;
        border-radius: 8px;
    }

    .insight-box p {
        font-size: 0.95rem;
    }

    .comparison-table {
        font-size: 0.8rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 10px;
    }

    .comparison-table th {
        font-size: 0.9rem;
    }

    .article-footer {
        padding: 20px 0;
        margin-top: 40px;
    }

    .back-to-blog {
        width: 100%;
        text-align: center;
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 320px) {
    .article-header h1 {
        font-size: 1.3rem;
    }

    .content-section h2 {
        font-size: 1.1rem;
    }

    .content-section p {
        font-size: 0.9rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 8px 5px;
        font-size: 0.75rem;
    }
}

/* Print Styles */
@media print {
    .main-navigation,
    .site-footer,
    .article-nav {
        display: none;
    }

    .article-page {
        margin-top: 0;
    }

    .blog-article-content {
        margin: 0;
    }

    .content-section p {
        color: #000;
    }

    .comparison-table {
        border: 1px solid #000;
    }
}
