/* Desktop specific button layout for Lorebook Modal */
.desktop-action-buttons {
    display: none;
}

@media (min-width: 769px) {
    #lorebookDetailModal .rating-report-container,
    #lorebookDetailModal .lorebook-usage {
        display: none !important;
    }
    
    /* Modal structure for desktop */
    #lorebookDetailModal .modal-content {
        max-height: 90vh;
        display: flex;
        flex-direction: column;
    }
    
    #lorebookDetailModal .modal-body {
        display: flex;
        flex-direction: column;
        overflow: hidden;
        flex: 1;
    }
    
    #lorebookDetailModal .modal-scrollable-content {
        overflow-y: auto;
        flex: 1;
        padding-bottom: 1rem;
    }
    
    .desktop-action-buttons {
        display: block !important;
        position: relative;
        background: rgba(26, 26, 46, 0.98);
        backdrop-filter: blur(10px);
        padding: 1rem;
        margin: 0;
        border-top: 1px solid rgba(139, 92, 246, 0.2);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    }
    
    .desktop-buttons-container {
        background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
        border: 1px solid rgba(139, 92, 246, 0.3);
        border-radius: 16px;
        padding: 1.5rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 2rem;
        max-width: 800px;
        margin: 0 auto;
        box-shadow: 0 8px 32px rgba(139, 92, 246, 0.15);
        backdrop-filter: blur(10px);
    }
    
    .desktop-rating-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        flex: 1;
    }
    
    .desktop-rating-label {
        font-size: 0.9rem;
        color: var(--text-secondary);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin: 0;
    }
    
    #desktopUserStarRatingLorebook {
        display: flex;
        justify-content: center;
        gap: 0.4rem;
        font-size: 1.8rem;
        margin: 0;
        padding: 0.5rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
    }
    
    #desktopUserStarRatingLorebook i {
        cursor: pointer;
        color: #FBBF24;
        transition: all 0.2s ease;
        text-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
    }
    
    #desktopUserStarRatingLorebook i:hover {
        transform: scale(1.2) translateY(-2px);
        filter: brightness(1.2);
    }
    
    #desktopUserStarRatingLorebook i.fas {
        animation: starPulse 1.5s ease-in-out;
    }
    
    @keyframes starPulse {
        0% { transform: scale(1); }
        50% { transform: scale(1.3); }
        100% { transform: scale(1); }
    }
    
    #desktopRatingMessageLorebook {
        font-size: 0.85rem;
        color: var(--primary);
        margin: 0;
        height: 1rem;
        opacity: 0.8;
    }
    
    .desktop-action-divider {
        width: 1px;
        height: 60px;
        background: linear-gradient(to bottom, transparent, rgba(139, 92, 246, 0.4), transparent);
    }
    
    .desktop-button-group {
        display: flex;
        gap: 1rem;
        flex: 1;
        justify-content: center;
    }
    
    .desktop-usage-buttons {
        display: flex;
        flex-direction: row;
        gap: 1rem;
    }
    
    .desktop-usage-buttons .btn {
        padding: 0.75rem 1.5rem;
        border-radius: 10px;
        font-weight: 500;
        transition: all 0.3s ease;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    .desktop-usage-buttons .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    }
    
    .desktop-usage-buttons .btn.primary {
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
        border: none;
    }
    
    .desktop-usage-buttons .btn.secondary {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    /* Desktop Report Button above Description */
    .desktop-report-above-description {
        display: block !important;
        text-align: center;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
    
    .desktop-report-above-description .btn {
        background: rgba(239, 68, 68, 0.1);
        border: 1px solid rgba(239, 68, 68, 0.3);
        color: #ef4444;
        padding: 0.5rem 1rem;
        border-radius: 8px;
        font-size: 0.85rem;
        transition: all 0.3s ease;
    }
    
    .desktop-report-above-description .btn:hover {
        background: rgba(239, 68, 68, 0.2);
        border-color: rgba(239, 68, 68, 0.5);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
    }
    
    .desktop-report-above-description .btn i {
        font-size: 0.8rem;
        margin-right: 0.4rem;
    }
}

/* Mobile: keep original buttons visible */
@media (max-width: 768px) {
    .desktop-action-buttons {
        display: none !important;
    }
    
    .desktop-report-above-description {
        display: none !important;
    }
}