/* Article Detail Page Styles */

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

:root {
    --primary-color: #e94560;
    --secondary-color: #1a1a2e;
    --dark-bg: #ffffff;
    --darker-bg: #f8f9fa;
    --card-bg: #ffffff;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-muted: #adb5bd;
    --border-color: rgba(0, 0, 0, 0.1);
    --gradient-1: linear-gradient(135deg, #1a1a2e, #e94560);
    --gradient-2: linear-gradient(135deg, #667eea, #764ba2);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--dark-bg);
    color: var(--text-secondary);
    line-height: 1.6;
    padding-top: 80px;
}

/* Article specific navbar overrides */
.navbar .logo-text {
    text-decoration: none;
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-1);
    width: 0%;
    z-index: 101;
    transition: width 0.2s;
}

/* Main Article Container */
.article-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
}

/* Article Content */
.article-content {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Article Hero Section */
.article-hero {
    position: relative;
}

.article-category {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 2;
}

.article-title {
    padding: 2rem 3rem 1rem;
    font-size: 2.5rem;
    line-height: 1.3;
    color: var(--text-primary);
    font-weight: 700;
}

.article-meta {
    padding: 0 3rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
}

.author-name {
    color: var(--text-primary);
    font-weight: 600;
}

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

.article-stats {
    display: flex;
    gap: 1.5rem;
}

.article-stats span {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.article-stats span:hover {
    color: var(--primary-color);
}

.hero-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

/* Article Body */
.article-body {
    padding: 3rem;
}

.article-intro {
    margin-bottom: 3rem;
}

.lead {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-primary);
    font-weight: 300;
}

.article-section {
    margin-bottom: 3rem;
}

.article-section h2 {
    color: var(--text-primary);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.article-section h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}

.article-section p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Content Grid Layout */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.fact-box {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    padding: 1.5rem;
}

.fact-box h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.fact-box ul {
    list-style: none;
}

.fact-box li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.fact-box li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Article Images */
.article-image {
    margin: 2rem 0;
}

.article-image img {
    width: 100%;
    border-radius: 10px;
}

.article-image figcaption {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Image Text Block */
.image-text-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    margin: 2rem 0;
}

.image-text-block img {
    width: 100%;
    border-radius: 10px;
}

/* Tips Grid */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.tip-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s;
}

.tip-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.tip-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tip-card h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* Stats Banner */
.stats-banner {
    display: flex;
    justify-content: space-around;
    background: var(--gradient-1);
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.stat {
    text-align: center;
    color: white;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
}

.stat-label {
    font-size: 0.9rem;
    color: white;
    opacity: 0.9;
}

/* Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.image-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s;
}

.image-gallery img:hover {
    transform: scale(1.05);
}

/* Checklist */
.checklist {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.checklist h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.checklist label {
    display: block;
    margin-bottom: 0.8rem;
    cursor: pointer;
}

.checklist input[type="checkbox"] {
    margin-right: 0.5rem;
}

/* Comparison Table */
.comparison-table {
    margin: 2rem 0;
}

.comparison-table h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th {
    background: rgba(0, 255, 255, 0.1);
    color: var(--primary-color);
    padding: 1rem;
    text-align: left;
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Transport Options */
.transport-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.option-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
}

.option-card:hover {
    transform: translateY(-5px);
}

.option-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.option-card h4 {
    color: var(--primary-color);
    padding: 1rem 1rem 0.5rem;
}

.option-card p {
    padding: 0 1rem 1rem;
    font-size: 0.9rem;
}

/* Article Conclusion */
.article-conclusion {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.05), rgba(255, 0, 255, 0.05));
    padding: 2rem;
    border-radius: 10px;
    margin-top: 3rem;
}

.featured-quote {
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin: 2rem 0;
    background: rgba(0, 255, 255, 0.05);
    border-radius: 5px;
}

.featured-quote p {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.featured-quote cite {
    color: var(--text-muted);
}

.action-steps {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.action-steps h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.action-steps ol {
    padding-left: 1.5rem;
}

.action-steps li {
    margin-bottom: 0.5rem;
}

/* Article Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
}

.tag {
    background: rgba(0, 255, 255, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 255, 255, 0.3);
    transition: all 0.3s;
    cursor: pointer;
}

.tag:hover {
    background: rgba(0, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Share Section */
.share-section {
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin: 2rem 0;
}

.share-section h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.share-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-btn.facebook { background: #1877f2; color: white; }
.share-btn.twitter { background: #1da1f2; color: white; }
.share-btn.linkedin { background: #0077b5; color: white; }
.share-btn.whatsapp { background: #25d366; color: white; }
.share-btn.email { background: #ea4335; color: white; }
.share-btn.link { background: rgba(255, 255, 255, 0.1); color: white; }

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Author Bio */
.author-bio {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    margin: 2rem 0;
}

.bio-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
}

.bio-content h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.bio-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.bio-social a {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.bio-social a:hover {
    color: var(--primary-color);
}

/* Comments Section */
.comments-section {
    padding: 3rem;
    border-top: 1px solid var(--border-color);
}

.comments-section h2 {
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.comment-form {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.comment-form h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-form input,
.comment-form textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 1rem;
    border-radius: 5px;
    width: 100%;
}

.submit-btn {
    background: var(--gradient-1);
    color: var(--dark-bg);
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s;
}

.submit-btn:hover {
    transform: translateY(-2px);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.comment-header strong {
    color: var(--text-primary);
}

.comment-header span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.comment-actions {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.comment-actions button {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s;
}

.comment-actions button:hover {
    color: var(--primary-color);
}

/* Sidebar */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Sidebar Widgets */
.toc-widget,
.related-widget,
.newsletter-widget {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
}

.toc-widget.sticky {
    position: sticky;
    top: 100px;
}

.toc-widget h3,
.related-widget h3,
.newsletter-widget h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* Table of Contents */
.toc {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toc-link {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.5rem;
    border-left: 2px solid transparent;
    transition: all 0.3s;
}

.toc-link:hover,
.toc-link.active {
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    padding-left: 1rem;
}

/* Related Articles Widget */
.related-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-item {
    display: flex;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-secondary);
    transition: transform 0.3s;
}

.related-item:hover {
    transform: translateX(5px);
}

.related-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

.related-item h4 {
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.related-item span {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Newsletter Widget */
.newsletter-widget input {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 5px;
    margin: 1rem 0;
}

.newsletter-widget button {
    width: 100%;
    padding: 0.75rem;
    background: var(--gradient-1);
    color: var(--dark-bg);
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s;
}

.newsletter-widget button:hover {
    transform: translateY(-2px);
}

.newsletter-widget small {
    color: var(--text-muted);
}

/* More Articles Section */
.more-articles {
    background: var(--darker-bg);
    padding: 4rem 0;
    margin-top: 3rem;
}

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

.more-articles h2 {
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.article-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-category {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.article-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.article-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Footer */
.article-footer {
    background: var(--darker-bg);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 3rem;
}

.footer-brand h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.footer-links h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

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

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

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
}

.footer-bottom {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    margin-top: 2rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    border: none;
    border-radius: 50%;
    color: var(--dark-bg);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .article-layout {
        grid-template-columns: 1fr;
    }
    
    .article-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .toc-widget {
        display: none;
    }
}

@media (max-width: 768px) {
    .article-title {
        font-size: 1.8rem;
        padding: 1.5rem;
    }
    
    .article-body {
        padding: 1.5rem;
    }
    
    .content-grid,
    .image-text-block,
    .tips-grid,
    .transport-options,
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .article-sidebar {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .stats-banner {
        flex-direction: column;
        gap: 1rem;
    }
    
    .image-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}