/* ==========================================================================
   LINGUA SOUL - Technology Classes Styles
   Tech/Modern theme - SQUARE borders, #00d4ff accent
   ========================================================================== */

/* Theme Variables - Technology Classes (Sharp, Square, Tech-focused) */
:root {
    --tech-primary: #00d4ff;
    --tech-secondary: #0099cc;
    --tech-accent: #33ddff;
    --tech-gradient: linear-gradient(135deg, #00d4ff, #0099cc);
    --tech-glow: 0 0 30px rgba(0, 212, 255, 0.3);

    /* Info Boxes - Dark mode friendly with good contrast */
    --tech-info-bg: rgba(52, 73, 94, 0.6);
    --tech-info-border: rgba(0, 212, 255, 0.4);
    --tech-info-text: #ffffff;

    /* Code/Technical Boxes */
    --tech-code-bg: rgba(15, 23, 42, 0.8);
    --tech-code-border: rgba(0, 212, 255, 0.5);
    --tech-syntax-bg: rgba(0, 212, 255, 0.1);
    --tech-syntax-border: rgba(0, 212, 255, 0.4);

    /* Border radius for tech classes - SQUARE identity */
    --tech-radius-sm: 4px;
    --tech-radius-md: 6px;
    --tech-radius-lg: 8px;
}

/* ==========================================================================
   Header Styles - Sharp & Modern
   ========================================================================== */

.header {
    text-align: center;
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.95), rgba(15, 23, 42, 0.95));
    backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 212, 255, 0.4);
    border-radius: var(--tech-radius-md);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--tech-gradient);
    box-shadow: var(--tech-glow);
}

.header h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--tech-primary);
    text-shadow: 2px 2px 12px rgba(0, 212, 255, 0.4);
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.header p {
    font-size: 1.25rem;
    color: #e8eaed;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.section-header {
    color: #fb923c;
    border-bottom-color: #fb923c;
}

.quote {
    background: linear-gradient(135deg, #fb923c, #f97316);
    box-shadow: 0 10px 25px rgba(251, 146, 60, 0.2);
}

.exercise {
    border: 2px solid rgba(251, 146, 60, 0.3);
}

.exercise:hover {
    border-color: rgba(251, 146, 60, 0.6);
    box-shadow: 0 8px 20px rgba(251, 146, 60, 0.15);
}

.exercise-title {
    color: #fb923c;
}

.question {
    border-left: 4px solid #fb923c;
}

.gap-selector {
    background: #fb923c;
    border: 2px solid #fb923c;
}

.gap-selector:hover {
    background: #f97316;
    border-color: #f97316;
}

.options-reference {
    border: 2px solid rgba(251, 146, 60, 0.3);
}

.options-reference h4 {
    color: #fb923c;
}

.option-item {
    border-left: 4px solid #fb923c;
}

.verify-btn {
    background: linear-gradient(135deg, #fb923c, #f97316);
    box-shadow: 0 5px 15px rgba(251, 146, 60, 0.3);
}

.verify-btn:hover {
    box-shadow: 0 8px 20px rgba(251, 146, 60, 0.4);
}

.input-group label {
    color: #fb923c;
}

.input-group input {
    border: 2px solid rgba(251, 146, 60, 0.3);
}

.input-group input:focus {
    border-color: #fb923c;
    box-shadow: 0 0 15px rgba(251, 146, 60, 0.2);
}

.vocabulary-table th {
    background: #fb923c;
}

.vocabulary-table td {
    border-bottom: 1px solid rgba(251, 146, 60, 0.2);
}

.reflection-questions {
    border: 2px solid rgba(251, 146, 60, 0.4);
}

.reflection-questions h4 {
    color: #fb923c;
}

.speaking-card {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.8), rgba(249, 115, 22, 0.8));
    box-shadow: 0 8px 20px rgba(251, 146, 60, 0.2);
}

.speaking-card:hover {
    box-shadow: 0 15px 30px rgba(251, 146, 60, 0.4);
}

.speaking-card.active {
    border-color: #fb923c;
}

.card-tips h4 {
    color: #fb923c;
}

.card-tips li::before {
    color: #fb923c;
}

.final-results {
    border: 2px solid rgba(251, 146, 60, 0.4);
}

.final-results h2 {
    color: #fb923c;
}

.result-item {
    background: rgba(251, 146, 60, 0.1);
    border: 1px solid rgba(251, 146, 60, 0.3);
}

.result-item h4 {
    color: #fb923c;
}

.overall-score {
    color: #fb923c;
}

.progress-bar {
    background: linear-gradient(90deg, #fb923c, #f97316);
}

/* Code blocks for tech content */
code {
    font-family: 'Fira Code', monospace;
    background: #f1f5f9;
    color: #1e293b;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

pre {
    background: #f1f5f9;
    border-left: 4px solid #fb923c;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 15px 0;
}

pre code {
    background: transparent;
    padding: 0;
}

/* ==========================================================================
   Sidebar Navigation - Tech Classes Override
   ========================================================================== */

/* Sidebar Nav Links */
.sidebar-nav .nav-link,
.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: #e8eaed;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.sidebar-nav .nav-link::before,
.sidebar-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--tech-primary, #00d4ff);
    transform: scaleY(0);
    transition: transform 0.25s ease;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav-link:hover {
    background: rgba(0, 212, 255, 0.15);
    color: var(--tech-primary, #00d4ff);
    transform: translateX(6px);
}

.sidebar-nav .nav-link.active,
.sidebar-nav-link.active {
    background: rgba(0, 212, 255, 0.25);
    color: var(--tech-primary, #00d4ff);
    font-weight: 600;
}

.sidebar-nav .nav-link.active::before,
.sidebar-nav-link.active::before {
    transform: scaleY(1);
}

.sidebar-nav .nav-icon,
.sidebar-nav-icon {
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
    width: 1.5rem;
    text-align: center;
}

.sidebar-nav .nav-text,
.sidebar-nav-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Sidebar responsive improvements */
@media (max-width: 768px) {
    .sidebar-nav .nav-link,
    .sidebar-nav-link {
        font-size: 0.85rem;
        padding: 0.875rem;
        gap: 0.75rem;
    }

    .sidebar-nav .nav-icon,
    .sidebar-nav-icon {
        font-size: 1.1rem;
        width: 1.25rem;
    }

    .sidebar-nav .nav-text,
    .sidebar-nav-text {
        font-size: 0.85rem;
    }
}

/* Badge improvements */
.lesson-badge,
.badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 212, 255, 0.15);
    border-radius: 12px;
    border: 2px solid rgba(0, 212, 255, 0.4);
}

.badge-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}

.badge-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    overflow: hidden;
}

.badge-type {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--tech-primary, #00d4ff);
    opacity: 0.9;
}

.badge-title {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .lesson-badge,
    .badge {
        padding: 0.875rem;
        gap: 0.75rem;
    }

    .badge-icon {
        font-size: 1.75rem;
    }

    .badge-type {
        font-size: 0.65rem;
    }

    .badge-title {
        font-size: 0.9rem;
    }
}
