/* ===================================
   QUOTE DETAIL SCREEN STYLES
   Legendary interactive quote deep-dive
   =================================== */

.quote-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.quote-detail-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
    border: 3px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(255, 215, 0, 0.3);
    animation: slideUp 0.4s ease;
}

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

/* Close Button */
.btn-close-detail {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
    color: #ffd700;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    font-weight: 300;
    line-height: 1;
}

.btn-close-detail:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

/* Header with Quote Text */
.quote-detail-header {
    padding: 3rem 3rem 2rem 3rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
    border-bottom: 2px solid rgba(255, 215, 0, 0.2);
    position: relative;
}

.quote-marks-top,
.quote-marks-bottom {
    font-size: 4rem;
    color: rgba(255, 215, 0, 0.3);
    font-family: 'Georgia', serif;
    line-height: 1;
}

.quote-marks-top {
    position: absolute;
    top: 1rem;
    left: 1.5rem;
}

.quote-marks-bottom {
    position: absolute;
    bottom: 1rem;
    right: 1.5rem;
    transform: rotate(180deg);
}

.quote-detail-text {
    color: #ffffff;
    font-size: 1.8rem;
    font-style: italic;
    line-height: 1.8;
    margin: 2rem 0 1.5rem 0;
    text-align: center;
    font-family: 'Cinzel', serif;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.quote-detail-author {
    color: #ffd700;
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
    margin-top: 1.5rem;
    font-family: 'Cinzel', serif;
}

/* Body Content */
.quote-detail-body {
    padding: 2rem 3rem 3rem 3rem;
}

/* Badges Section */
.quote-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.badge-path,
.badge-specialization,
.badge-category {
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.badge-path {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
    border: 2px solid rgba(255, 215, 0, 0.4);
    color: #ffd700;
}

.badge-specialization {
    background: linear-gradient(135deg, rgba(100, 149, 237, 0.2), rgba(100, 149, 237, 0.1));
    border: 2px solid rgba(100, 149, 237, 0.4);
    color: #6495ed;
}

.badge-category {
    background: linear-gradient(135deg, rgba(147, 112, 219, 0.2), rgba(147, 112, 219, 0.1));
    border: 2px solid rgba(147, 112, 219, 0.4);
    color: #9370db;
}

.badge-path:hover,
.badge-specialization:hover,
.badge-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

/* Detail Sections */
.detail-section-title {
    color: #ffd700;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Cinzel', serif;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.quote-detail-source,
.quote-detail-curator,
.quote-detail-related {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.quote-detail-source div:last-child,
.quote-detail-curator div:last-child {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: center;
}

#quoteDetailCuratorText {
    font-style: italic;
    color: rgba(255, 215, 0, 0.8);
}

/* Stats Section */
.quote-detail-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 215, 0, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.15);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffd700;
    font-size: 1.1rem;
    font-weight: 500;
}

.stat-icon {
    font-size: 1.5rem;
}

/* Action Buttons */
.quote-detail-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.btn-action {
    padding: 1rem 2rem;
    border-radius: 30px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
    color: #ffd700;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: 'Cinzel', serif;
}

.btn-action:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
    border-color: rgba(255, 215, 0, 0.5);
}

.btn-action:active {
    transform: translateY(-1px);
}

.action-icon {
    font-size: 1.3rem;
}

.btn-favorite.active {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.3), rgba(220, 20, 60, 0.2));
    border-color: rgba(220, 20, 60, 0.5);
    color: #ff6b6b;
}

.btn-favorite.active .action-icon {
    animation: heartBeat 0.5s ease;
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.3);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Related Wisdom */
.quote-detail-related {
    margin-top: 2rem;
}

#quoteDetailRelatedContent {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.related-quote-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 10px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.related-quote-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateX(5px);
}

.related-quote-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.related-quote-author {
    color: rgba(255, 215, 0, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Path-Specific Gradients */
.quote-detail-header.ancient {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.3), rgba(210, 105, 30, 0.1));
}

.quote-detail-header.warrior {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.3), rgba(178, 34, 34, 0.1));
}

.quote-detail-header.jedi {
    background: linear-gradient(135deg, rgba(25, 25, 112, 0.3), rgba(65, 105, 225, 0.1));
}

.quote-detail-header.avatar {
    background: linear-gradient(135deg, rgba(46, 139, 87, 0.3), rgba(60, 179, 113, 0.1));
}

.quote-detail-header.potter {
    background: linear-gradient(135deg, rgba(75, 0, 130, 0.3), rgba(139, 0, 139, 0.1));
}

.quote-detail-header.thrones {
    background: linear-gradient(135deg, rgba(47, 79, 79, 0.3), rgba(112, 128, 144, 0.1));
}

.quote-detail-header.cosmic {
    background: linear-gradient(135deg, rgba(25, 25, 112, 0.3), rgba(72, 61, 139, 0.1));
}

.quote-detail-header.norse {
    background: linear-gradient(135deg, rgba(28, 28, 28, 0.3), rgba(47, 79, 79, 0.1));
}

.quote-detail-header.oogway {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.3), rgba(160, 82, 45, 0.1));
}

.quote-detail-header.universal {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.1));
}

/* Responsive Design */
@media (max-width: 768px) {
    .quote-detail-content {
        max-height: 95vh;
        border-radius: 15px;
    }
    
    .quote-detail-header {
        padding: 2rem 1.5rem 1.5rem 1.5rem;
    }
    
    .quote-detail-text {
        font-size: 1.4rem;
        line-height: 1.6;
    }
    
    .quote-detail-author {
        font-size: 1.1rem;
    }
    
    .quote-detail-body {
        padding: 1.5rem 1.5rem 2rem 1.5rem;
    }
    
    .quote-detail-badges {
        flex-direction: column;
        align-items: stretch;
    }
    
    .quote-detail-stats {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .quote-detail-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-action {
        justify-content: center;
    }
    
    .btn-close-detail {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        top: 1rem;
        right: 1rem;
    }
    
    .quote-marks-top,
    .quote-marks-bottom {
        font-size: 3rem;
    }
}

/* Scrollbar Styling */
.quote-detail-content::-webkit-scrollbar {
    width: 8px;
}

.quote-detail-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.quote-detail-content::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 10px;
}

.quote-detail-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.5);
}
