/* Feedback Modal */
.feedback-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100dvw;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.feedback-modal-overlay.hidden {
    display: none;
    opacity: 0;
}

.feedback-modal {
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 700px;
    max-height: 90dvh;
    overflow-y: auto;
    text-align: center;
    box-sizing: border-box;
}

/* Feedback Result Section */
.feedback-result {
    margin-bottom: 30px;
}

.feedback-icon {
    font-size: clamp(48px, 10dvw, 80px);
    font-weight: bold;
    margin-bottom: 15px;
}

.feedback-modal-overlay.correct .feedback-icon {
    color: #4ade80;
}

.feedback-modal-overlay.incorrect .feedback-icon {
    color: #ef4444;
}

.feedback-text {
    font-size: clamp(20px, 5dvw, 32px);
    font-weight: bold;
    text-transform: uppercase;
}

.feedback-modal-overlay.correct .feedback-icon {
    color: #4ade80;
}

.feedback-modal-overlay.partially_correct .feedback-icon {
    color: #fbbf24;
}

.feedback-modal-overlay.incorrect .feedback-icon {
    color: #fb923c;
}

.feedback-modal-overlay.blooper .feedback-icon {
    color: #ef4444;
}

.feedback-modal-overlay.correct .feedback-text {
    color: #4ade80;
}

.feedback-modal-overlay.partially_correct .feedback-text {
    color: #fbbf24;
}

.feedback-modal-overlay.incorrect .feedback-text {
    color: #fb923c;
}

.feedback-modal-overlay.blooper .feedback-text {
    color: #ef4444;
}

/* Tabs */
.feedback-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 25px;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    flex-wrap: wrap;
}

.feedback-tab {
    background: transparent;
    border: none;
    color: #888;
    padding: 10px 20px;
    font-size: clamp(10px, 2.5dvw, 15px);
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px 6px 0 0;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feedback-tab:hover:not(.disabled) {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.feedback-tab.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 3px solid #4a90e2;
}

.feedback-tab.disabled {
    color: #444;
    cursor: not-allowed;
    opacity: 0.4;
}

/* Tab Content */
.feedback-details {
    min-height: 200px;
    padding: 20px;
    background: #0a0a0a;
    border-radius: 8px;
    text-align: left;
}

/* Summary Tab */
.summary-tab-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.summary-stat-item {
    background: #1a1a1a;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #333;
    text-align: center;
}

.summary-stat-label {
    font-size: clamp(12px, 2.5dvw, 14px);
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.summary-stat-value {
    font-size: clamp(24px, 6dvw, 36px);
    font-weight: bold;
    color: #fff;
}

/* Preflop Tab */
.preflop-tab-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.preflop-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.preflop-info-item {
    background: #1a1a1a;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-label {
    font-size: clamp(11px, 2dvw, 12px);
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: clamp(15px, 3dvw, 18px);
    font-weight: bold;
    color: #fff;
}

/* Range Breakdown */
.range-breakdown {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #333;
}

.range-breakdown-title {
    font-size: clamp(12px, 2.5dvw, 14px);
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    text-align: center;
}

.range-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.range-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 15px;
    padding: 12px 15px;
    background: #0a0a0a;
    border-radius: 6px;
    border-left: 3px solid #4a90e2;
}

.range-action {
    font-size: clamp(13px, 2.5dvw, 15px);
    font-weight: 600;
    color: #fff;
}

.range-frequency {
    font-size: clamp(12px, 2.5dvw, 14px);
    color: #888;
    font-weight: 500;
}

.range-rng {
    font-size: clamp(12px, 2.5dvw, 14px);
    color: #4a90e2;
    font-weight: 500;
    font-family: 'Courier New', monospace;
}

/* Stats Tab */
.stats-tab-content {
    padding: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
}

.stat-item {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #333;
    text-align: center;
}

.stat-label {
    font-size: clamp(11px, 2dvw, 12px);
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.stat-value {
    font-size: clamp(20px, 5dvw, 32px);
    font-weight: bold;
    color: #fff;
}

.stat-value.correct-stat {
    color: #4ade80;
}

.stat-value.incorrect-stat {
    color: #ef4444;
}

.stat-value.partially-correct-stat {
    color: #fbbf24;
}

.stat-value.blooper-stat {
    color: #ef4444;
}

/* Actions */
.feedback-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.feedback-actions .action-button {
    padding: 12px 40px;
    font-size: clamp(14px, 3dvw, 18px);
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s ease;
    width: 100%;
    max-width: 300px;
}

.feedback-actions .action-button:hover {
    background: #357abd;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .feedback-modal {
        padding: 25px 15px;
    }

    .feedback-result {
        margin-bottom: 20px;
    }

    .feedback-tabs {
        gap: 5px;
    }

    .feedback-tab {
        padding: 8px 12px;
    }

    .feedback-details {
        padding: 15px;
        min-height: 150px;
    }

    .range-item {
        grid-template-columns: 1fr;
        gap: 8px;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 12px;
    }

    .stat-item {
        padding: 15px 10px;
    }
}

@media (max-width: 480px) {
    .feedback-modal {
        padding: 20px 12px;
    }

    .feedback-tabs {
        gap: 4px;
    }

    .feedback-tab {
        padding: 6px 8px;
        letter-spacing: 0;
    }

    .summary-stats,
    .preflop-info-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}