/**
 * GemBot Academy 13-Tier System CSS
 * © 2024-2025 Ryan Barbrick / Barbrick Design
 */

/* ═══════════════════════════════════════════════════════════════════════════
   TIER PROGRESSION GRID
   ═══════════════════════════════════════════════════════════════════════════ */

.tier-progression {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
    max-height: 80vh;
    overflow-y: auto;
}

.tier-card {
    background: linear-gradient(135deg, #1a1f3a 0%, #2d3561 100%);
    border-radius: 16px;
    padding: 20px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tier-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    opacity: 0.5;
}

.tier-card.unlocked::before {
    opacity: 1;
}

.tier-card.current {
    border-color: #4affff;
    box-shadow: 0 0 30px rgba(74, 255, 255, 0.3);
}

.tier-card.current::before {
    background: linear-gradient(90deg, #4affff 0%, #00ff88 50%, #4affff 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.tier-card.locked {
    opacity: 0.6;
    filter: grayscale(30%);
}

.tier-card:hover:not(.locked) {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.tier-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.tier-icon {
    font-size: 32px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.tier-header h3 {
    flex: 1;
    margin: 0;
    font-size: 18px;
    color: #fff;
}

.tier-level {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
}

.tier-desc {
    color: #9ca3af;
    font-size: 14px;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.tier-details {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 15px;
}

.tier-costs {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid rgba(102, 126, 234, 0.2);
}

.course-cost, .cert-cost {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.course-cost {
    background: rgba(74, 255, 255, 0.15);
    color: #4affff;
}

.cert-cost {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #9ca3af;
    backdrop-filter: blur(2px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESOURCES LIBRARY
   ═══════════════════════════════════════════════════════════════════════════ */

.resources-library {
    padding: 20px;
}

.resource-section {
    margin-bottom: 40px;
}

.resource-section h2 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.3);
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.resource-card {
    background: linear-gradient(135deg, #0f1629 0%, #1a1f3a 100%);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
}

.resource-card:hover {
    border-color: #4affff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(74, 255, 255, 0.2);
}

.resource-card.book {
    border-left: 4px solid #f59e0b;
}

.resource-card.website {
    border-left: 4px solid #4affff;
}

.resource-card h3 {
    color: #fff;
    font-size: 16px;
    margin: 0 0 8px 0;
}

.resource-card .author {
    color: #9f7aea;
    font-size: 13px;
    margin: 0 0 10px 0;
}

.resource-card .description {
    color: #9ca3af;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 15px 0;
}

.resource-card .meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 15px;
}

.resource-card .features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.resource-card .feature {
    background: rgba(74, 255, 255, 0.1);
    color: #4affff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
}

.resource-link {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.resource-link:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

/* ═══════════════════════════════════════════════════════════════════════════
   CERTIFICATION DISPLAY
   ═══════════════════════════════════════════════════════════════════════════ */

.certification-card {
    background: linear-gradient(135deg, #1a1f3a 0%, #0f1629 100%);
    border: 2px solid #f59e0b;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.certification-card::before {
    content: '🎓';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 100px;
    opacity: 0.1;
}

.cert-badge {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
    box-shadow: 0 5px 20px rgba(245, 158, 11, 0.4);
}

.cert-title {
    color: #fff;
    font-size: 24px;
    margin: 0 0 10px 0;
}

.cert-level {
    color: #f59e0b;
    font-size: 14px;
    margin: 0 0 20px 0;
}

.cert-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.cert-detail {
    background: rgba(102, 126, 234, 0.1);
    padding: 12px;
    border-radius: 8px;
}

.cert-detail-label {
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 4px;
}

.cert-detail-value {
    font-size: 16px;
    color: #fff;
    font-weight: 600;
}

.cert-id {
    font-family: monospace;
    font-size: 12px;
    color: #6b7280;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px;
    border-radius: 6px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   QUIZ INTERFACE
   ═══════════════════════════════════════════════════════════════════════════ */

.quiz-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.3);
}

.quiz-timer {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    color: #fff;
}

.quiz-progress {
    background: rgba(102, 126, 234, 0.2);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 30px;
}

.quiz-progress-fill {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    height: 100%;
    transition: width 0.3s ease;
}

.quiz-question {
    background: linear-gradient(135deg, #1a1f3a 0%, #2d3561 100%);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 20px;
}

.question-number {
    color: #4affff;
    font-size: 14px;
    margin-bottom: 10px;
}

.question-text {
    color: #fff;
    font-size: 20px;
    margin: 0 0 25px 0;
    line-height: 1.5;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz-option {
    background: rgba(102, 126, 234, 0.1);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #fff;
    text-align: left;
    font-size: 16px;
}

.quiz-option:hover {
    border-color: #4affff;
    background: rgba(74, 255, 255, 0.1);
}

.quiz-option.selected {
    border-color: #4affff;
    background: rgba(74, 255, 255, 0.2);
}

.quiz-option.correct {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.2);
}

.quiz-option.incorrect {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.2);
}

.quiz-nav {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 20px;
}

.quiz-btn {
    flex: 1;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.quiz-btn.secondary {
    background: rgba(102, 126, 234, 0.2);
    color: #fff;
}

.quiz-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.quiz-btn:hover {
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SCORE DISCOUNT DISPLAY
   ═══════════════════════════════════════════════════════════════════════════ */

.score-discount-display {
    background: linear-gradient(135deg, #0f1629 0%, #1a1f3a 100%);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
}

.score-ring {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(#4affff 0%, #4affff var(--score-percent), #2d3561 var(--score-percent));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
}

.score-ring::before {
    content: '';
    width: 100px;
    height: 100px;
    background: #0f1629;
    border-radius: 50%;
    position: absolute;
}

.score-value {
    position: relative;
    z-index: 1;
    font-size: 32px;
    font-weight: bold;
    color: #fff;
}

.discount-badge {
    display: inline-block;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    padding: 10px 25px;
    border-radius: 25px;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.final-cost {
    font-size: 24px;
    color: #4affff;
    font-weight: bold;
}

.original-cost {
    text-decoration: line-through;
    color: #6b7280;
    font-size: 16px;
    margin-left: 10px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .tier-progression {
        grid-template-columns: 1fr;
    }
    
    .resource-grid {
        grid-template-columns: 1fr;
    }
    
    .tier-header {
        flex-wrap: wrap;
    }
    
    .tier-costs {
        flex-direction: column;
    }
    
    .quiz-question {
        padding: 20px;
    }
    
    .question-text {
        font-size: 18px;
    }
}
