/* ============================================
   DESKTOP OVERRIDE - Ensure desktop styles work
   Load this BEFORE mobile-responsive.css
   ============================================ */

/* Force desktop carousel styles for large screens > 1024px */
@media (min-width: 1024px) {

    /* ===== DESKTOP HEADER - HIDE HAMBURGER ===== */
    .menu-toggle {
        display: none !important;
    }

    /* ===== DESKTOP HOMEPAGE LAYOUT ===== */

    /* Container - Full width for desktop */
    .container {
        padding: 60px 40px !important;
        max-width: 1400px !important;
        margin: 0 auto !important;
    }

    /* Hero Section */
    .hero {
        padding: 80px 40px !important;
    }

    .hero h1 {
        font-size: 3.5rem !important;
    }

    .hero p {
        font-size: 1.3rem !important;
    }

    /* Section Titles */
    .section-title {
        font-size: 2rem !important;
        margin-bottom: 30px !important;
    }

    .section-title::before {
        width: 6px !important;
        height: 50px !important;
    }

    /* ===== STORY GRID - DESKTOP 4-5 COLUMNS ===== */
    .story-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
        gap: 25px !important;
        margin-bottom: 60px !important;
    }

    /* For wider screens, force 5 columns */
    @media (min-width: 1200px) {
        .story-grid {
            grid-template-columns: repeat(5, 1fr) !important;
        }
    }

    /* For medium desktop, 4 columns */
    @media (min-width: 900px) and (max-width: 1199px) {
        .story-grid {
            grid-template-columns: repeat(4, 1fr) !important;
        }
    }

    .story-card {
        border-radius: 16px !important;
        transition: all 0.3s ease !important;
    }

    .story-card:hover {
        transform: translateY(-8px) !important;
        box-shadow: 0 15px 40px rgba(0, 212, 255, 0.25) !important;
    }

    .story-cover {
        height: 300px !important;
        border-radius: 16px 16px 0 0 !important;
    }

    .story-info {
        padding: 20px !important;
    }

    .story-title {
        font-size: 1.1rem !important;
        margin-bottom: 10px !important;
        line-height: 1.4 !important;
    }

    .story-meta {
        font-size: 0.9rem !important;
        gap: 12px !important;
    }

    .story-stats {
        gap: 15px !important;
        margin-top: 12px !important;
    }

    /* Featured Carousel Header */
    .featured-carousel {
        margin-bottom: 50px !important;
    }

    .featured-header {
        margin-bottom: 25px !important;
    }

    .featured-header h2 {
        font-size: 2rem !important;
        gap: 12px !important;
    }

    /* ===== DESKTOP CAROUSEL - FULL SIZE ===== */
    .carousel-container {
        height: 500px !important;
        min-height: 500px !important;
    }

    .slide-inner {
        flex-direction: row !important;
        padding: 40px !important;
        gap: 50px !important;
        align-items: center !important;
    }

    .slide-cover-col {
        flex: 0 0 280px !important;
        width: 280px !important;
        height: 100% !important;
    }

    .slide-cover {
        aspect-ratio: 9/16 !important;
        border-radius: 12px !important;
    }

    .slide-info-col {
        flex: 1 !important;
        align-items: flex-start !important;
        text-align: left !important;
        padding-right: 40px !important;
    }

    .slide-title {
        font-size: 3rem !important;
        margin-bottom: 20px !important;
        line-height: 1.2 !important;
        -webkit-line-clamp: unset !important;
        line-clamp: unset !important;
    }

    .slide-badges {
        justify-content: flex-start !important;
        gap: 15px !important;
        margin-bottom: 25px !important;
    }

    .badge {
        padding: 8px 16px !important;
        font-size: 0.9rem !important;
    }

    .slide-description {
        font-size: 1.1rem !important;
        margin-bottom: 30px !important;
        -webkit-line-clamp: 4 !important;
        line-clamp: 4 !important;
    }

    .slide-meta {
        flex-direction: row !important;
        gap: 20px !important;
        margin-bottom: 35px !important;
        font-size: 1rem !important;
    }

    .meta-item {
        font-size: 1rem !important;
    }

    .btn-read-now {
        padding: 15px 40px !important;
        font-size: 1.1rem !important;
        border-radius: 30px !important;
    }

    /* Desktop navigation buttons */
    .carousel-nav-btn,
    .carousel-arrow {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.2rem !important;
    }

    .carousel-prev,
    .carousel-arrow-left {
        left: 20px !important;
    }

    .carousel-next,
    .carousel-arrow-right {
        right: 20px !important;
    }

    /* Hide mobile menu on desktop */
    .mobile-menu-toggle {
        display: none !important;
    }

    .mobile-overlay {
        display: none !important;
    }

    /* Desktop navigation */
    .nav {
        position: static !important;
        transform: none !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        flex-direction: row !important;
        padding: 0 !important;
    }

    .nav.active {
        transform: none !important;
    }

    /* Desktop user dropdown */
    .user-menu {
        position: relative !important;
        z-index: 100 !important;
    }

    .user-dropdown {
        position: absolute !important;
        top: 100% !important;
        bottom: auto !important;
        left: auto !important;
        right: 0 !important;
        min-width: 250px !important;
        border-radius: 12px !important;
        transform: translateY(10px) !important;
        max-height: none !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
    }

    .user-menu.active .user-dropdown {
        transform: translateY(0) !important;
    }

    .user-menu::before {
        display: none !important;
    }

    /* ===== DESKTOP COMMENT SECTION - PROFESSIONAL LAYOUT ===== */

    /* Comment Section Container */
    .comments-section {
        padding: 40px !important;
        margin: 40px 0 !important;
        max-width: 1200px !important;
    }

    .comments-header {
        margin-bottom: 30px !important;
    }

    .comments-header h3 {
        font-size: 1.8rem !important;
    }

    .comments-count {
        font-size: 1rem !important;
        padding: 6px 16px !important;
    }

    /* Comment Form - Horizontal Layout */
    .comment-form {
        flex-direction: row !important;
        gap: 20px !important;
        margin-bottom: 40px !important;
        align-items: flex-start !important;
    }

    .comment-avatar {
        width: 52px !important;
        height: 52px !important;
        font-size: 1.3rem !important;
        flex-shrink: 0 !important;
    }

    .comment-input-wrapper {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .comment-textarea {
        min-height: 120px !important;
        padding: 18px !important;
        font-size: 1rem !important;
        border-radius: 16px !important;
    }

    .comment-submit-btn {
        width: auto !important;
        padding: 14px 32px !important;
        font-size: 1rem !important;
        margin-top: 12px !important;
        align-self: flex-end !important;
        border-radius: 12px !important;
    }

    /* Comments List */
    .comments-list {
        gap: 30px !important;
    }

    .comment-item {
        gap: 20px !important;
        align-items: flex-start !important;
    }

    .comment-content {
        padding: 20px !important;
        border-radius: 16px !important;
        background: linear-gradient(135deg, #16213e 0%, #1a2435 100%) !important;
        border-left: 4px solid #00d4ff !important;
    }

    .comment-author {
        font-size: 1.1rem !important;
        margin-bottom: 6px !important;
        display: inline-block !important;
    }

    .comment-time {
        display: inline !important;
        margin-left: 12px !important;
        margin-top: 0 !important;
        font-size: 0.9rem !important;
        opacity: 0.7 !important;
    }

    .comment-text {
        font-size: 1rem !important;
        line-height: 1.7 !important;
        margin-top: 12px !important;
        color: rgba(255, 255, 255, 0.9) !important;
    }

    /* Comment Actions */
    .comment-actions {
        gap: 20px !important;
        margin-top: 15px !important;
    }

    .btn-like,
    .btn-reply {
        font-size: 0.95rem !important;
        padding: 8px 16px !important;
        border-radius: 8px !important;
        transition: all 0.3s ease !important;
    }

    .btn-like:hover,
    .btn-reply:hover {
        background: rgba(0, 212, 255, 0.15) !important;
        color: #00d4ff !important;
        transform: translateY(-1px) !important;
    }

    /* Reply Form */
    .reply-form {
        margin-top: 20px !important;
        padding: 20px !important;
        border-radius: 12px !important;
    }

    .reply-form textarea {
        min-height: 100px !important;
        padding: 15px !important;
        font-size: 0.95rem !important;
        border-radius: 12px !important;
    }

    .reply-form button {
        width: auto !important;
        padding: 10px 24px !important;
        font-size: 0.95rem !important;
        margin-top: 12px !important;
        border-radius: 10px !important;
    }

    /* Replies (Nested Comments) - Better Visualization */
    .replies {
        margin-top: 25px !important;
        margin-left: 50px !important;
        padding-left: 30px !important;
        border-left: 3px solid rgba(102, 126, 234, 0.3) !important;
        position: relative !important;
    }

    .replies::before {
        content: '';
        position: absolute;
        left: -3px;
        top: 0;
        width: 3px;
        height: 40px;
        background: linear-gradient(180deg, #667eea 0%, transparent 100%);
    }

    .reply-item {
        gap: 18px !important;
        margin-bottom: 20px !important;
        align-items: flex-start !important;
    }

    .reply-item .comment-avatar {
        width: 44px !important;
        height: 44px !important;
        font-size: 1.1rem !important;
    }

    .reply-item .comment-content {
        padding: 18px !important;
        background: linear-gradient(135deg, #1a2435 0%, #16213e 100%) !important;
        border-left: 3px solid #667eea !important;
    }

    .reply-item .comment-author {
        font-size: 1rem !important;
    }

    .reply-item .comment-time {
        font-size: 0.85rem !important;
    }

    .reply-item .comment-text {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }

    .reply-item .comment-actions {
        margin-top: 12px !important;
    }

    /* No Comments State */
    .no-comments {
        padding: 60px 20px !important;
    }

    .no-comments-icon {
        font-size: 4rem !important;
        margin-bottom: 20px !important;
        opacity: 0.5 !important;
    }

    /* Login Prompt */
    .comment-login-prompt {
        padding: 50px 20px !important;
        font-size: 1.1rem !important;
    }

    .comment-login-prompt .login-link {
        font-size: 1.15rem !important;
        padding: 4px 8px !important;
        border-radius: 4px !important;
        transition: all 0.3s ease !important;
    }

    .comment-login-prompt .login-link:hover {
        background: rgba(0, 212, 255, 0.1) !important;
        text-decoration: none !important;
    }

    /* Comment Container Spacing */
    .comment-item+.comment-item {
        margin-top: 30px !important;
    }

    /* Hover Effects */
    .comment-content {
        transition: all 0.3s ease !important;
    }

    .comment-item:hover .comment-content {
        transform: translateX(5px) !important;
        box-shadow: 0 5px 20px rgba(0, 212, 255, 0.15) !important;
    }

    .reply-item:hover .comment-content {
        transform: translateX(3px) !important;
        box-shadow: 0 3px 15px rgba(102, 126, 234, 0.15) !important;
    }

    /* ===== DESKTOP RANKINGS SECTION ===== */

    .rankings-section {
        margin: 80px 0 !important;
    }

    .rankings-placeholder {
        padding: 100px 60px !important;
        border-radius: 24px !important;
        max-width: 900px !important;
        margin: 0 auto !important;
        border-width: 3px !important;
    }

    .placeholder-icon {
        font-size: 6rem !important;
        margin-bottom: 30px !important;
    }

    .placeholder-title {
        font-size: 2.2rem !important;
        margin-bottom: 20px !important;
        background: linear-gradient(135deg, #00d4ff 0%, #00ff88 100%) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        background-clip: text !important;
    }

    .placeholder-text {
        font-size: 1.2rem !important;
        max-width: 600px !important;
        line-height: 1.6 !important;
    }

    /* Rankings hover effect */
    .rankings-placeholder:hover {
        transform: translateY(-5px) !important;
        box-shadow: 0 20px 60px rgba(0, 212, 255, 0.2) !important;
        border-color: rgba(0, 212, 255, 0.5) !important;
        transition: all 0.4s ease !important;
    }

    .rankings-placeholder:hover .placeholder-icon {
        transform: scale(1.1) rotate(10deg) !important;
        transition: all 0.4s ease !important;
    }

    /* ===== FOOTER DESKTOP ===== */

    .footer {
        padding: 80px 0 40px 0 !important;
        margin-top: 100px !important;
    }

    .footer-content {
        display: grid !important;
        grid-template-columns: 2fr 1fr 1fr 1fr !important;
        gap: 40px !important;
        padding: 0 40px !important;
    }

    .footer-brand h3 {
        font-size: 1.8rem !important;
        margin-bottom: 15px !important;
    }

    .footer-description {
        font-size: 1rem !important;
        line-height: 1.7 !important;
    }

    .footer-column h4 {
        font-size: 1.2rem !important;
        margin-bottom: 20px !important;
    }

    .footer-links a {
        font-size: 0.95rem !important;
        padding: 8px 0 !important;
    }

    .footer-bottom {
        padding: 30px 40px !important;
        margin-top: 60px !important;
    }

    .footer-bottom-content {
        font-size: 0.95rem !important;
    }
}