/* ============================================
   GLAMZN POST DETAIL PAGE - MODERN DESIGN
   ============================================ */

/* Channel Header Modern */
.channel-header-modern {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.dark .channel-header-modern {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-color: rgba(99, 102, 241, 0.2);
}

.channel-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #1a202c;
    letter-spacing: -0.02em;
    margin: 0;
}

.dark .channel-title {
    color: #f7fafc;
}

.channel-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #4a5568;
    max-width: 700px;
}

.dark .channel-description {
    color: #cbd5e0;
}

.channel-actions .btn {
    min-width: 140px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.channel-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.channel-actions .btn i {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .channel-header-modern {
        padding: 1.5rem;
    }

    .channel-title {
        font-size: 1.5rem;
    }

    .channel-description {
        font-size: 0.9rem;
    }

    .channel-actions {
        width: 100%;
    }

    .channel-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Article Container */
.post-detail-modern {
    background: transparent;
    min-height: 100vh;
}

/* Article Header */
.article-header {
    position: relative;
}

.article-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #1a202c;
    margin-bottom: 1.5rem;
}

.dark .article-title {
    color: #f7fafc;
}

/* Meta Information */
.article-meta {
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.dark .article-meta {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.article-meta img {
    transition: transform 0.3s ease;
}

.article-meta img:hover {
    transform: scale(1.05);
}

/* Social Share Buttons */
.social-share .btn {
    transition: all 0.3s ease;
    border-width: 1.5px;
}

.social-share .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Featured Media */
.featured-media {
    position: relative;
    margin-bottom: 3rem;
}

.featured-media img {
    transition: transform 0.6s ease;
    display: block;
    width: 100%;
    height: auto;
}

.featured-media:hover img {
    transform: scale(1.02);
}

.featured-image,
.ratio {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.dark .featured-image,
.dark .ratio {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Article Content */
.article-content {
    position: relative;
}

.content-body {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #2d3748;
}

.dark .content-body {
    color: #e2e8f0;
}

.content-body p {
    margin-bottom: 1.5rem;
}

.content-body h2,
.content-body h3,
.content-body h4 {
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #1a202c;
}

.dark .content-body h2,
.dark .content-body h3,
.dark .content-body h4 {
    color: #f7fafc;
}

.content-body h2 {
    font-size: 1.875rem;
}

.content-body h3 {
    font-size: 1.5rem;
}

.content-body h4 {
    font-size: 1.25rem;
}

.content-body a {
    color: #3182ce;
    text-decoration: underline;
}

.content-body a:hover {
    color: #2c5282;
}

.dark .content-body a {
    color: #63b3ed;
}

.dark .content-body a:hover {
    color: #90cdf4;
}

.content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.content-body ul,
.content-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.content-body li {
    margin-bottom: 0.5rem;
}

.content-body blockquote {
    border-left: 4px solid #3182ce;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #4a5568;
}

.dark .content-body blockquote {
    border-left-color: #63b3ed;
    color: #cbd5e0;
}

/* Blur Content Effect */
.blur-content {
    filter: blur(8px);
    pointer-events: none;
    user-select: none;
    position: relative;
}

.blur-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.95) 50%);
    pointer-events: none;
}

.dark .blur-content::after {
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.95) 50%);
}

/* Engagement Bar */
.engagement-bar {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 0.75rem;
    padding: 1rem;
}

.dark .engagement-bar {
    background: rgba(255, 255, 255, 0.02);
}

.engagement-bar .btn {
    transition: all 0.3s ease;
}

.engagement-bar .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Emoji Picker */
.emoji-picker {
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 0.5rem;
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.1);
    min-width: 200px;
}

.dark .emoji-picker {
    border-color: rgba(255, 255, 255, 0.1);
}

.emoji-picker .btn {
    transition: transform 0.2s ease;
}

.emoji-picker .btn:hover {
    transform: scale(1.3);
}

/* Related Topics */
.related-topics .badge {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.related-topics .badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

/* Post Navigation */
.post-navigation .card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.post-navigation .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.post-navigation .nav-arrow {
    color: #3182ce;
    transition: transform 0.3s ease;
}

.post-navigation .prev-post:hover .nav-arrow {
    transform: translateX(-5px);
}

.post-navigation .next-post:hover .nav-arrow {
    transform: translateX(5px);
}

/* Comments Section */
.comments-section {
    margin-top: 3rem;
}

.comment-form textarea {
    resize: vertical;
    min-height: 120px;
}

.comment-form .btn {
    transition: all 0.3s ease;
}

.comment-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Comment Item Styling */
.comment-item {
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 0.75rem;
    border-left: 3px solid #3182ce;
}

.dark .comment-item {
    background: rgba(255, 255, 255, 0.02);
}

.comment-item .avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-item .comment-info {
    margin-bottom: 0.75rem;
}

.comment-item .c_name {
    font-weight: 600;
    color: #1a202c;
}

.dark .comment-item .c_name {
    color: #f7fafc;
}

.comment-item .c_date {
    font-size: 0.875rem;
    color: #718096;
}

.comment-item .comment {
    color: #2d3748;
    line-height: 1.6;
}

.dark .comment-item .comment {
    color: #e2e8f0;
}

/* Sidebar */
.sidebar {
    transition: all 0.3s ease;
}

.sidebar-content {
    position: relative;
    z-index: 10;
}

.sidebar-content.sticky-top {
    top: 20px !important;
    z-index: 10;
}

.related-posts .card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.related-posts .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
}

.dark .related-posts .card {
    border-color: rgba(255, 255, 255, 0.08);
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Newsletter Section */
.newsletter-section {
    margin: 2rem 0;
}

.newsletter-card {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 0.75rem;
    padding: 2rem 1.5rem;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.2);
    position: relative;
    overflow: hidden;
}

.newsletter-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.newsletter-card::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.newsletter-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.newsletter-icon {
    font-size: 2.25rem;
    color: #ffffff;
    margin-bottom: 1rem;
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.newsletter-title {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.newsletter-description {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.newsletter-form {
    max-width: 550px;
    margin: 0 auto 1.25rem;
}

.newsletter-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 50px;
    padding: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.newsletter-input-wrapper:focus-within {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

.newsletter-input-icon {
    position: absolute;
    left: 1.5rem;
    color: #6366f1;
    font-size: 1.1rem;
}

.newsletter-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.75rem 1rem 0.75rem 3rem;
    font-size: 1rem;
    color: #1a202c;
    outline: none;
}

.newsletter-input::placeholder {
    color: #a0aec0;
}

.newsletter-submit-btn {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.newsletter-submit-btn:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.newsletter-submit-btn .btn-icon {
    transition: transform 0.3s ease;
}

.newsletter-submit-btn:hover .btn-icon {
    transform: translateX(3px);
}

.newsletter-response-message {
    margin-top: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    animation: slideDown 0.3s ease;
}

.newsletter-response-message.success {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.newsletter-response-message.error {
    background: rgba(239, 68, 68, 0.2);
    color: #ffffff;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.newsletter-benefits {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.newsletter-benefits .benefit-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.85rem;
}

.newsletter-benefits .benefit-item i {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Dark mode adjustments */
.dark .newsletter-card {
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .newsletter-card {
        padding: 1.5rem 1rem;
    }

    .newsletter-title {
        font-size: 1.25rem;
    }

    .newsletter-description {
        font-size: 0.875rem;
    }

    .newsletter-icon {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .newsletter-benefits {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
        margin-top: 0.75rem;
    }

    .newsletter-submit-btn .btn-text {
        display: none;
    }

    .newsletter-submit-btn {
        padding: 0.75rem 1.25rem;
    }
}

/* Latest Articles Widget */
.latest-articles-widget {
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dark .latest-articles-widget {
    background: #1a202c;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.latest-articles-widget .widget-title {
    font-size: 1.125rem;
    color: #1a202c;
    margin-bottom: 1rem;
}

.dark .latest-articles-widget .widget-title {
    color: #f7fafc;
}

.latest-article-card {
    display: block !important;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.02);
    visibility: visible !important;
    opacity: 1 !important;
}

.dark .latest-article-card {
    background: rgba(255, 255, 255, 0.02);
}

.latest-article-card:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dark .latest-article-card:hover {
    background: rgba(255, 255, 255, 0.05);
}

.latest-article-card .article-title-small {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    color: #1a202c;
}

.dark .latest-article-card .article-title-small {
    color: #f7fafc;
}

.latest-article-card img {
    transition: transform 0.3s ease;
    background: #f3f4f6;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.dark .latest-article-card img {
    background: #374151;
    border-color: rgba(255, 255, 255, 0.1);
}

.latest-article-card:hover img {
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 991px) {
    .article-title {
        font-size: 1.75rem;
    }

    .content-body {
        font-size: 1rem;
    }

    .sidebar {
        margin-top: 3rem;
        position: static !important;
    }

    .post-navigation {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .article-meta {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .article-meta .ms-auto {
        margin-left: 0 !important;
        margin-top: 0.75rem;
    }

    .social-share {
        justify-content: center;
    }

    .engagement-bar {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem !important;
    }

    .engagement-bar .ms-auto {
        margin-left: 0 !important;
        width: 100%;
    }

    .related-posts .card-body .row {
        flex-direction: row !important;
    }

    /* Newsletter Mobile Optimization */
    .newsletter-input-wrapper {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
        border-radius: 1rem;
    }

    .newsletter-input-icon {
        position: relative;
        left: 0;
        margin-bottom: 0;
    }

    .newsletter-input {
        width: 100%;
        padding: 0.75rem 1rem;
        text-align: center;
        font-size: 0.95rem;
    }

    .newsletter-submit-btn {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    .newsletter-card {
        padding: 1.5rem;
    }

    .newsletter-title {
        font-size: 1.5rem;
    }

    .newsletter-description {
        font-size: 0.9rem;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-header,
.featured-media,
.article-content {
    animation: fadeInUp 0.6s ease forwards;
}

.featured-media {
    animation-delay: 0.1s;
}

.article-content {
    animation-delay: 0.2s;
}

/* Loading State */
.content-loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Accessibility */
.btn:focus,
.form-control:focus {
    outline: 2px solid #3182ce;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .social-share,
    .engagement-bar,
    .post-navigation,
    .comments-section,
    .sidebar,
    .breadcrumbs {
        display: none !important;
    }

    .article-title {
        color: #000;
    }

    .content-body {
        color: #000;
    }
}
