/* Article Detail Modern Clean Design - No Effects */

/* Modern Clean Variables */
:root {
    --article-bg-main: #ffffff;
    --article-bg-subtle: #fafbfc;
    --article-border: #e2e8f0;
    --article-border-light: #f1f5f9;
    --text-primary: #1a202c;
    --text-secondary: #2d3748;
    --text-muted: #4a5568;
    --gold-primary: #8b7247;
    --gold-light: rgba(139, 114, 71, 0.1);
    --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.08);
    --radius-lg: 16px;
    --radius-md: 12px;
    --spacing-lg: 2rem;
    --spacing-md: 1.5rem;
    --spacing-sm: 1rem;
}

/* Font Configuration */
body {
    font-family: "Museo Moderno", "Inter", -apple-system, BlinkMacSystemFont,
        sans-serif;
}

.article-detail-main * {
    font-family: inherit;
}

.article-detail-page h1,
.article-detail-page h2,
.article-detail-page h3,
.article-detail-page h4,
.article-detail-page h5,
.article-detail-page h6,
.article-detail-page p,
.article-detail-page span,
.article-detail-page div,
.article-detail-page a,
.article-detail-page button,
.article-detail-page input,
.article-detail-page label {
    font-family: "Museo Moderno", "Inter", -apple-system, BlinkMacSystemFont,
        sans-serif !important;
}

/* Clean Main Content Section với Background Gradient Vòng Tròn Đồng Tâm */
.article-detail-main {
    background: radial-gradient(
            circle at 25% 15%,
            rgba(240, 246, 255, 0.95) 0%,
            rgba(245, 251, 255, 0.85) 20%,
            rgba(250, 254, 255, 0.7) 40%,
            rgba(255, 255, 255, 0.5) 65%,
            rgba(248, 250, 252, 0.8) 100%
        ),
        radial-gradient(
            circle at 75% 85%,
            rgba(191, 167, 106, 0.12) 0%,
            rgba(191, 167, 106, 0.08) 25%,
            rgba(191, 167, 106, 0.05) 45%,
            rgba(255, 255, 255, 0.4) 70%,
            rgba(248, 250, 252, 0.6) 100%
        ),
        radial-gradient(
            circle at 50% 50%,
            rgba(240, 246, 255, 0.3) 0%,
            rgba(255, 255, 255, 0.2) 30%,
            rgba(248, 250, 252, 0.1) 60%,
            transparent 100%
        ),
        linear-gradient(
            135deg,
            rgba(248, 250, 252, 0.9) 0%,
            rgba(255, 255, 255, 0.8) 50%,
            rgba(245, 248, 255, 0.9) 100%
        );
    min-height: 100vh;
    padding: 120px 0 2rem;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

/* Tạo các vòng tròn trang trí đồng tâm */
.article-detail-main::before {
    content: "";
    position: absolute;
    top: -15%;
    right: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(191, 167, 106, 0.15) 0%,
        rgba(191, 167, 106, 0.1) 25%,
        rgba(191, 167, 106, 0.06) 50%,
        rgba(191, 167, 106, 0.03) 75%,
        transparent 100%
    );
    z-index: 0;
}

.article-detail-main::after {
    content: "";
    position: absolute;
    bottom: -15%;
    left: -5%;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(240, 246, 255, 0.6) 0%,
        rgba(240, 246, 255, 0.4) 30%,
        rgba(240, 246, 255, 0.2) 60%,
        rgba(240, 246, 255, 0.1) 80%,
        transparent 100%
    );
    z-index: 0;
}

/* Content Container */
.article-content-wrapper {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    position: relative;
    min-height: 100vh;
    z-index: 1;
}

/* Thêm vòng tròn trang trí ở giữa */
.article-content-wrapper::before {
    content: "";
    position: absolute;
    top: 40%;
    left: 45%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.4) 0%,
        rgba(255, 255, 255, 0.25) 35%,
        rgba(240, 246, 255, 0.15) 65%,
        rgba(240, 246, 255, 0.05) 85%,
        transparent 100%
    );
    z-index: 0;
    pointer-events: none;
}

.article-main-content {
    flex: 1;
    background: var(--article-bg-main);
    border-radius: var(--radius-lg);
    border: 1px solid var(--article-border);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.article-sidebar {
    flex: 0 0 350px;
    position: relative;
    z-index: 2;
}

/* Enhanced Background Animations */
@keyframes patternFloat {
    0%,
    100% {
        transform: translateX(0) translateY(0);
        opacity: 1;
    }
    25% {
        transform: translateX(10px) translateY(-5px);
        opacity: 0.9;
    }
    50% {
        transform: translateX(-5px) translateY(10px);
        opacity: 0.8;
    }
    75% {
        transform: translateX(8px) translateY(5px);
        opacity: 0.9;
    }
}

@keyframes floatingCircles {
    0%,
    100% {
        transform: translateX(0) translateY(0) scale(1);
        opacity: 1;
    }
    20% {
        transform: translateX(15px) translateY(-10px) scale(1.02);
        opacity: 0.8;
    }
    40% {
        transform: translateX(-10px) translateY(15px) scale(0.98);
        opacity: 0.9;
    }
    60% {
        transform: translateX(12px) translateY(8px) scale(1.01);
        opacity: 0.85;
    }
    80% {
        transform: translateX(-8px) translateY(-12px) scale(0.99);
        opacity: 0.95;
    }
}

@keyframes backgroundShift {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

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

/* Modern Article Header */
.article-header {
    background: var(--article-bg-main);
    border: 1px solid var(--article-border-light);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: var(--spacing-lg);
    margin-bottom: 0;
    position: relative;
}

.article-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: var(--spacing-lg);
    right: var(--spacing-lg);
    height: 1px;
    background: var(--article-border);
}

/* Modern Article Title */
.article-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

/* Article Lead Text */
.article-header .lead {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 400;
    text-align: justify;
}

/* Clean Article Meta */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    padding: 1rem 0 0;
    border-top: 1px solid var(--article-border-light);
    margin-top: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.meta-item i {
    color: var(--gold-primary);
    font-size: 1rem;
    width: 18px;
    text-align: center;
}

/* Clean Featured Image */
.article-featured-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    margin-bottom: 0;
    display: block;
    border-bottom: 1px solid var(--article-border-light);
}

/* Header styles with/without image */
.article-main-content:has(.article-featured-image) .article-header {
    border-radius: 0;
    border-top: none;
}

.article-main-content:not(:has(.article-featured-image)) .article-header {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* Mobile styles for featured image at top */
@media (max-width: 768px) {
    .article-featured-image {
        max-height: 250px;
        border-radius: 15px 15px 0 0;
    }

    .article-header {
        padding: 1.5rem;
        border-radius: 15px 15px 0 0;
    }

    .article-main-content:has(.article-featured-image) .article-header {
        border-radius: 0;
    }

    .article-main-content:not(:has(.article-featured-image)) .article-header {
        border-radius: 15px 15px 0 0;
    }
}

.article-content {
    background: var(--background-white);
    border-radius: 0;
    padding: 2.5rem;
    margin-bottom: 0;
    border: 1px solid var(--border-light);
    border-top: none;
    line-height: 1.8;
    font-size: 1.1rem;
    font-family: "Museo Moderno", "Inter", -apple-system, BlinkMacSystemFont,
        sans-serif;
    letter-spacing: 0.01em;
    color: var(--text-primary);
}

.article-content {
    background: var(--background-white);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-light);
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 1.125rem;
    position: relative;
    overflow: hidden;
}

.article-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gold);
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    color: var(--text-primary);
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.3;
}

.article-content h2 {
    font-size: 2rem;
    background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.article-content h4 {
    font-size: 1.5rem;
}

.article-content p {
    margin-bottom: 1.75rem;
    text-align: justify;
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: 0.01em;
}

.article-content p:first-of-type {
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 500;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 15px 35px rgba(31, 38, 135, 0.12);
    transition: all 0.4s ease;
}

.article-content img:hover {
    box-shadow: 0 20px 45px rgba(31, 38, 135, 0.18);
}

.article-content ul,
.article-content ol {
    margin-bottom: 2rem;
    padding-left: 2.5rem;
}

.article-content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 2rem;
    margin: 2.5rem 0;
    font-style: italic;
    color: var(--text-secondary);
    background: rgba(191, 167, 106, 0.08);
    border-radius: 0 12px 12px 0;
    position: relative;
    font-size: 1.1rem;
    line-height: 1.6;
}

.article-content blockquote::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.3;
    font-family: "Museo Moderno", Georgia, serif;
}

/* Article Actions */
.article-actions {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0;
    border-top: none;
    padding: 2rem 2.5rem;
    margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 0.75rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.share-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    border-radius: inherit;
    opacity: 1;
    transition: all 0.3s ease;
    z-index: -1;
}

/* Đảm bảo icons hiển thị rõ nét */
.share-btn i {
    color: white !important;
    font-size: 1.2rem;
    position: relative;
    z-index: 2;
}

.share-btn:hover i {
    color: white !important;
}

.share-btn:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    color: white;
}

.share-btn:hover::before {
    opacity: 1;
    filter: brightness(1.2);
}

.share-facebook {
    background: linear-gradient(135deg, #1877f2 0%, #0d5bb8 100%);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.share-twitter {
    background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
    box-shadow: 0 4px 12px rgba(29, 161, 242, 0.3);
}

.share-linkedin {
    background: linear-gradient(135deg, #0077b5 0%, #005885 100%);
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
}

.share-email {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* Hover effects cho từng nền tảng */
.share-facebook:hover {
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.4);
}

.share-twitter:hover {
    box-shadow: 0 8px 20px rgba(29, 161, 242, 0.4);
}

.share-linkedin:hover {
    box-shadow: 0 8px 20px rgba(0, 119, 181, 0.4);
}

.share-email:hover {
    box-shadow: 0 8px 20px rgba(108, 117, 125, 0.4);
}

/* Back to List Button */
.back-to-list {
    background: linear-gradient(135deg, var(--primary-color) 0%, #c49f6a 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.025em;
    position: relative;
    overflow: hidden;
}

.back-to-list::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.back-to-list:hover {
    box-shadow: 0 15px 35px rgba(191, 167, 106, 0.4);
    color: white;
}

.back-to-list:hover::before {
    left: 100%;
}

/* Related Articles */
.related-articles {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0 0 20px 20px;
    border-top: none;
    padding: 2.5rem;
    margin-bottom: 0;
}

.related-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-color);
}

.related-article {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    text-decoration: none;
    color: inherit;
    transition: all 0.4s ease;
    border-radius: 12px;
}

.related-article:last-child {
    border-bottom: none;
}

.related-article:hover {
    background: rgba(191, 167, 106, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 0 -1.5rem;
    box-shadow: 0 8px 25px rgba(31, 38, 135, 0.08);
}

.related-article-image {
    width: 140px;
    height: 90px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.related-article:hover .related-article-image {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(31, 38, 135, 0.15);
}

.related-article-content h6 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    color: #1e293b;
    letter-spacing: -0.025em;
    transition: color 0.3s ease;
}

.related-article:hover .related-article-content h6 {
    color: var(--primary-color);
}

.related-article-excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: 0.01em;
}

/* Sidebar */
.sidebar-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.sidebar-section:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-title {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary-color);
    letter-spacing: -0.025em;
}

/* Latest Articles */
.latest-article {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.latest-article:last-child {
    border-bottom: none;
}

.latest-article:hover {
    background: rgba(191, 167, 106, 0.08);
    border-radius: 12px;
    padding: 1rem;
    margin: 0 -1rem;
}

.latest-article-image {
    width: 90px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.latest-article:hover .latest-article-image {
    transform: scale(1.05);
}

.latest-article-content h6 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    color: #1e293b;
    letter-spacing: -0.025em;
    transition: color 0.3s ease;
}

.latest-article:hover .latest-article-content h6 {
    color: var(--primary-color);
}

.latest-article-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Contact Info */
.contact-info {
    text-align: center;
}

.contact-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #c49f6a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    box-shadow: 0 15px 35px rgba(191, 167, 106, 0.3);
    transition: all 0.3s ease;
}

.contact-avatar:hover {
    box-shadow: 0 20px 45px rgba(191, 167, 106, 0.4);
}

.contact-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1e293b;
    letter-spacing: -0.025em;
}

.contact-title {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.contact-action {
    background: linear-gradient(135deg, var(--primary-color) 0%, #c49f6a 100%);
    color: white;
    border: none;
    padding: 1rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    letter-spacing: 0.025em;
    position: relative;
    overflow: hidden;
}

.contact-action::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.contact-action:hover {
    box-shadow: 0 15px 35px rgba(191, 167, 106, 0.4);
    color: white;
}

.contact-action:hover::before {
    left: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .article-detail-main {
        padding: 100px 0 1rem;
    }

    .article-detail-main::before {
        background-size: 100px 100px, 100px 100px, 50px 50px;
        background-position: 0 0, 0 0, 12px 12px;
        animation-duration: 20s;
    }

    .article-detail-main::after {
        background-size: 300px 300px, 250px 250px, 200px 200px, 150px 150px,
            120px 120px;
        background-position: 0 0, 75px 40px, 150px 75px, 40px 150px, 100px 180px;
        animation-duration: 25s;
    }

    .article-content-wrapper {
        flex-direction: column;
        gap: 1rem;
    }

    .article-sidebar {
        flex: none;
    }

    .article-main-content {
        border-radius: 15px;
    }

    .article-header {
        padding: 1.5rem;
        border-radius: 15px 15px 0 0;
    }

    /* Mobile styles for featured image at top */
    .article-featured-image {
        max-height: 250px;
        border-radius: 15px 15px 0 0;
    }

    .article-main-content:has(.article-featured-image) .article-header {
        border-radius: 0;
    }

    .article-main-content:not(:has(.article-featured-image)) .article-header {
        border-radius: 15px 15px 0 0;
    }
}

@media (max-width: 480px) {
    .article-detail-main {
        padding: 90px 0 1rem;
    }

    .article-detail-main::before {
        background-size: 80px 80px, 80px 80px, 40px 40px;
        background-position: 0 0, 0 0, 10px 10px;
    }

    .article-detail-main::after {
        background-size: 200px 200px, 180px 180px, 150px 150px, 120px 120px,
            100px 100px;
        background-position: 0 0, 50px 25px, 100px 50px, 25px 100px, 75px 125px;
    }

    .article-title {
        font-size: 1.5rem;
    }

    .article-header,
    .article-content,
    .article-actions {
        padding: 1rem;
    }

    .sidebar-section {
        padding: 1rem;
    }
}

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(241, 245, 249, 0.5);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color) 0%, #c49f6a 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #c49f6a 0%, var(--primary-color) 100%);
}

/* Print styles */
@media print {
    .article-actions,
    .sidebar-section,
    .breadcrumb-nav {
        display: none !important;
    }

    .article-detail-main {
        background: white;
        box-shadow: none;
    }

    .article-header,
    .article-content,
    .related-articles {
        background: white;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
