﻿/* ============================================================
       DETAILS PAGE STYLES
    ============================================================ */
    .details-hero {
        padding: 2rem 0 1.5rem;
        background: linear-gradient(135deg, #0a0e1a 0%, #1a0a2e 30%, #4a2a8a 60%, #0d9488 80%, #0a0e1a 100%);
        position: relative;
        overflow: hidden;
        margin-top: -60px;
        color: #fff;
    }

        .details-hero::before {
            content: '';
            position: absolute;
            top: -30%;
            right: -10%;
            width: 400px;
            height: 400px;
            background: radial-gradient(circle, rgba(13,148,136,0.06) 0%, transparent 70%);
            border-radius: 50%;
            pointer-events: none;
            animation: heroPulse 12s ease-in-out infinite;
        }

        .details-hero::after {
            content: '';
            position: absolute;
            bottom: -40%;
            left: -15%;
            width: 300px;
            height: 300px;
            background: radial-gradient(circle, rgba(108,58,158,0.04) 0%, transparent 70%);
            border-radius: 50%;
            pointer-events: none;
            animation: heroPulse 15s ease-in-out infinite reverse;
        }

    @@keyframes heroPulse {
        0%, 100% {
            transform: scale(1) rotate(0deg);
            opacity: 0.4;
        }

        50% {
            transform: scale(1.05) rotate(3deg);
            opacity: 0.8;
        }
    }

    .details-hero .breadcrumb-custom {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.75rem;
        color: rgba(255,255,255,0.5);
        margin-bottom: 0.5rem;
    }

        .details-hero .breadcrumb-custom a {
            color: rgba(255,255,255,0.7);
            text-decoration: none;
            transition: color 0.3s ease;
        }

            .details-hero .breadcrumb-custom a:hover {
                color: #fcd34d;
            }

        .details-hero .breadcrumb-custom .separator {
            color: rgba(255,255,255,0.2);
        }

    .details-hero .badge-type {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.3rem 1rem;
        border-radius: 50px;
        font-size: 0.7rem;
        font-weight: 600;
        color: #fff;
        backdrop-filter: blur(4px);
        margin-bottom: 0.5rem;
    }

        .details-hero .badge-type.video {
            background: rgba(220,38,38,0.9);
        }

        .details-hero .badge-type.youtube {
            background: rgba(220,38,38,0.9);
        }

        .details-hero .badge-type.lesson {
            background: rgba(13,148,136,0.9);
        }

        .details-hero .badge-type.news {
            background: rgba(245,158,11,0.9);
        }

        .details-hero .badge-type.ebook {
            background: rgba(108,58,158,0.9);
        }

        .details-hero .badge-type.tips {
            background: rgba(16,163,74,0.9);
        }

        .details-hero .badge-type.qa {
            background: rgba(139,92,246,0.9);
        }

    .details-hero h1 {
        font-size: 2.4rem;
        font-weight: 800;
        line-height: 1.2;
        margin-bottom: 0.5rem;
    }

    .details-hero .meta-info {
        display: flex;
        flex-wrap: wrap;
        gap: 1.5rem;
        color: rgba(255,255,255,0.6);
        font-size: 0.85rem;
    }

        .details-hero .meta-info i {
            color: #fcd34d;
            margin-right: 0.3rem;
        }

        .details-hero .meta-info a {
            color: rgba(255,255,255,0.8);
            text-decoration: none;
            transition: color 0.3s ease;
        }

            .details-hero .meta-info a:hover {
                color: #fcd34d;
            }

    .details-content {
        padding: 2rem 0 3rem;
        background: #f8fafc;
    }

        .details-content .main-content {
            background: #fff;
            border-radius: 16px;
            padding: 2rem;
            border: 1px solid #eef2f6;
        }

            .details-content .main-content .media-container {
                margin-bottom: 1.5rem;
                border-radius: 12px;
                overflow: hidden;
                background: #f1f5f9;
            }

                .details-content .main-content .media-container img {
                    width: 100%;
                    max-height: 500px;
                    object-fit: contain;
                }

                .details-content .main-content .media-container video {
                    width: 100%;
                    max-height: 500px;
                }

                .details-content .main-content .media-container .iframe-wrapper {
                    position: relative;
                    padding-bottom: 56.25%;
                    height: 0;
                    overflow: hidden;
                }

                    .details-content .main-content .media-container .iframe-wrapper iframe {
                        position: absolute;
                        top: 0;
                        left: 0;
                        width: 100%;
                        height: 100%;
                        border: none;
                    }

            .details-content .main-content .post-body {
                font-size: 1.05rem;
                line-height: 1.8;
                color: #1e293b;
            }

                .details-content .main-content .post-body p {
                    margin-bottom: 1rem;
                }

            .details-content .main-content .file-download {
                margin-top: 1.5rem;
                padding: 1rem;
                background: #f8fafc;
                border-radius: 10px;
                border: 1px solid #eef2f6;
            }

    .interaction-bar {
        padding: 1rem 2rem;
        background: #fff;
        border-radius: 16px;
        border: 1px solid #eef2f6;
        margin-top: 1.5rem;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 1rem;
    }

        .interaction-bar .btn-action {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 1.2rem;
            border-radius: 50px;
            font-weight: 600;
            font-size: 0.85rem;
            border: 1px solid #eef2f6;
            background: #fff;
            transition: all 0.3s ease;
            color: #64748b;
            text-decoration: none;
            cursor: pointer;
        }

            .interaction-bar .btn-action:hover {
                transform: translateY(-2px);
                box-shadow: 0 4px 12px rgba(108,58,158,0.08);
                border-color: #6c3a9e;
            }

            .interaction-bar .btn-action .count {
                background: #f1f5f9;
                padding: 0.1rem 0.5rem;
                border-radius: 20px;
                font-size: 0.7rem;
                font-weight: 700;
                color: #64748b;
            }

            .interaction-bar .btn-action.liked {
                color: #2563eb;
                border-color: #2563eb;
                background: #eff6ff;
            }

                .interaction-bar .btn-action.liked .count {
                    background: #dbeafe;
                    color: #2563eb;
                }

            .interaction-bar .btn-action.bookmarked {
                color: #dc2626;
                border-color: #dc2626;
                background: #fef2f2;
            }

                .interaction-bar .btn-action.bookmarked .count {
                    background: #fee2e2;
                    color: #dc2626;
                }

            .interaction-bar .btn-action.danger {
                color: #dc2626;
                border-color: #fee2e2;
            }

                .interaction-bar .btn-action.danger:hover {
                    background: #fef2f2;
                    border-color: #dc2626;
                }

    .sidebar-card {
        background: #fff;
        border-radius: 16px;
        border: 1px solid #eef2f6;
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }

        .sidebar-card .card-title {
            font-size: 0.85rem;
            font-weight: 700;
            color: #0a1628;
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 1px solid #eef2f6;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

            .sidebar-card .card-title i {
                color: #6c3a9e;
            }

    .author-card {
        text-align: center;
    }

        .author-card .avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            object-fit: cover;
            margin-bottom: 0.5rem;
            border: 3px solid #ede4f5;
        }

        .author-card .name {
            font-size: 1.1rem;
            font-weight: 700;
            color: #0a1628;
        }

        .author-card .role {
            font-size: 0.8rem;
            color: #6c3a9e;
            font-weight: 600;
        }

        .author-card .badge-mentor {
            display: inline-block;
            background: linear-gradient(135deg, #fcd34d, #f59e0b);
            color: #1a0a2e;
            padding: 0.15rem 0.8rem;
            border-radius: 20px;
            font-size: 0.6rem;
            font-weight: 700;
        }

        .author-card .stats-row {
            display: flex;
            justify-content: center;
            gap: 1.5rem;
            margin-top: 0.5rem;
        }

            .author-card .stats-row .stat {
                text-align: center;
            }

                .author-card .stats-row .stat .number {
                    display: block;
                    font-size: 1.2rem;
                    font-weight: 700;
                    color: #0a1628;
                }

                .author-card .stats-row .stat .label {
                    font-size: 0.6rem;
                    color: #94a3b8;
                }

    .related-card .related-item {
        display: flex;
        gap: 0.75rem;
        padding: 0.5rem 0;
        border-bottom: 1px solid #f1f5f9;
        text-decoration: none;
        transition: all 0.3s ease;
    }

        .related-card .related-item:last-child {
            border-bottom: none;
        }

        .related-card .related-item:hover {
            padding-left: 0.5rem;
        }

        .related-card .related-item .thumb {
            width: 60px;
            height: 60px;
            border-radius: 8px;
            object-fit: cover;
            background: #f1f5f9;
            flex-shrink: 0;
        }

        .related-card .related-item .info {
            flex: 1;
        }

            .related-card .related-item .info .title {
                font-size: 0.85rem;
                font-weight: 600;
                color: #0a1628;
                line-height: 1.2;
            }

            .related-card .related-item .info .date {
                font-size: 0.65rem;
                color: #94a3b8;
            }

    .stat-card .stat-item {
        display: flex;
        justify-content: space-between;
        padding: 0.4rem 0;
        border-bottom: 1px solid #f1f5f9;
        font-size: 0.85rem;
    }

        .stat-card .stat-item:last-child {
            border-bottom: none;
        }

        .stat-card .stat-item .label {
            color: #64748b;
        }

        .stat-card .stat-item .value {
            font-weight: 700;
            color: #0a1628;
        }

    .comments-section {
        background: #fff;
        border-radius: 16px;
        border: 1px solid #eef2f6;
        padding: 1.5rem 2rem;
        margin-top: 1.5rem;
    }

        .comments-section .comment-item {
            padding: 1rem 0;
            border-bottom: 1px solid #f1f5f9;
            display: flex;
            gap: 1rem;
        }

            .comments-section .comment-item:last-child {
                border-bottom: none;
            }

            .comments-section .comment-item .comment-avatar {
                width: 40px;
                height: 40px;
                border-radius: 50%;
                object-fit: cover;
                flex-shrink: 0;
                background: #f1f5f9;
            }

            .comments-section .comment-item .comment-body {
                flex: 1;
            }

                .comments-section .comment-item .comment-body .comment-author {
                    font-weight: 700;
                    font-size: 0.85rem;
                    color: #0a1628;
                }

                .comments-section .comment-item .comment-body .comment-date {
                    font-size: 0.65rem;
                    color: #94a3b8;
                    margin-left: 0.5rem;
                }

                .comments-section .comment-item .comment-body .comment-text {
                    font-size: 0.9rem;
                    color: #1e293b;
                    margin-top: 0.2rem;
                    line-height: 1.5;
                }

        .comments-section .comment-form {
            margin-top: 1rem;
            padding-top: 1rem;
            border-top: 1px solid #eef2f6;
        }

            .comments-section .comment-form textarea {
                width: 100%;
                border: 1px solid #eef2f6;
                border-radius: 10px;
                padding: 0.75rem;
                font-size: 0.9rem;
                resize: vertical;
                min-height: 80px;
            }

                .comments-section .comment-form textarea:focus {
                    border-color: #6c3a9e;
                    outline: none;
                    box-shadow: 0 0 0 3px rgba(108,58,158,0.08);
                }

            .comments-section .comment-form .btn-submit {
                padding: 0.5rem 1.5rem;
                border-radius: 50px;
                font-weight: 700;
                font-size: 0.85rem;
                background: linear-gradient(135deg, #6c3a9e, #4e2a75);
                border: none;
                color: #fff;
                transition: all 0.3s ease;
            }

                .comments-section .comment-form .btn-submit:hover {
                    transform: translateY(-2px);
                    box-shadow: 0 4px 20px rgba(108,58,158,0.2);
                }

    .toast-message {
        position: fixed;
        bottom: 2rem;
        right: 2rem;
        padding: 1rem 1.5rem;
        border-radius: 12px;
        color: #fff;
        font-weight: 600;
        z-index: 999;
        animation: slideIn 0.3s ease;
        display: none;
    }

        .toast-message.success {
            background: #16a34a;
        }

        .toast-message.error {
            background: #dc2626;
        }

        .toast-message.info {
            background: #2563eb;
        }

    @@keyframes slideIn {
        from {
            transform: translateX(100%);
            opacity: 0;
        }

        to {
            transform: translateX(0);
            opacity: 1;
        }
    }

    @@media (max-width: 768px) {
        .details-hero h1 {
            font-size: 1.6rem;
        }

        .details-content .main-content {
            padding: 1rem;
        }

        .interaction-bar {
            padding: 0.75rem 1rem;
            gap: 0.5rem;
        }

            .interaction-bar .btn-action {
                padding: 0.3rem 0.8rem;
                font-size: 0.75rem;
            }

        .comments-section {
            padding: 1rem;
        }

        .details-hero .meta-info {
            gap: 0.75rem;
            font-size: 0.75rem;
        }

        .sidebar-card {
            padding: 1rem;
        }
    }