/* UPPCS CSE Premium CSS - State-of-the-Art Design System */

:root {
    --primary-color: #f97316;
    --secondary-color: #ea580c;
    --accent-color: #fbbf24;
    --success-color: #22c55e;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;
    --card-bg: rgba(30, 41, 59, 0.8);
    --border-color: rgba(148, 163, 184, 0.1);
}

[data-theme="light"] {
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-tertiary: #64748b;
    --card-bg: rgba(255, 255, 255, 0.9);
    --border-color: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background 0.3s ease;
}



#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Glass Navbar Breadcrumbs */
.glass-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
}

body[data-theme="light"] .glass-nav {
    background: rgba(255, 255, 255, 0.8);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-image {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb-divider {
    color: var(--text-tertiary);
}

.breadcrumb-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-link:hover {
    color: var(--primary-color);
}

.breadcrumb-current {
    color: var(--accent-color);
    font-weight: 500;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* XP Tracker */
.xp-display {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.3);
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-color);
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1.2rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Main Layout */
.uppcs-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

/* Hero Section */
.uppcs-hero {
    position: relative;
    border-radius: 24px;
    padding: 3.5rem 2.5rem;
    text-align: center;
    background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.12), transparent),
                radial-gradient(circle at bottom right, rgba(99, 102, 241, 0.1), transparent),
                var(--card-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    overflow: hidden;
    margin: 0 auto 2rem;
    max-width: 1100px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.hero-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(249, 115, 22, 0.12);
    border: 1px solid rgba(249, 115, 22, 0.3);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-color);
}

.uppcs-title .title-main {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #f8fafc 30%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.25rem;
}

body[data-theme="light"] .uppcs-title .title-main {
    background: linear-gradient(135deg, #0f172a 30%, #ea580c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.uppcs-title .title-sub {
    display: block;
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.uppcs-tagline {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero-stat {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.25rem;
    transition: transform 0.2s, border-color 0.2s;
}

.hero-stat:hover {
    transform: translateY(-4px);
    border-color: rgba(249, 115, 22, 0.3);
}

.stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
}

/* Tabs & Lang Navigation */
.uppcs-tabs-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    border-radius: 16px;
    margin: 0 auto 2rem;
    max-width: 1100px;
    backdrop-filter: blur(10px);
    width: 100%;
}

.uppcs-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.uppcs-tab {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.uppcs-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.uppcs-tab.active {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.update-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
    display: inline-block;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

/* Language Toggle */
.language-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.2s;
}

.lang-btn.active {
    background: var(--primary-color);
    color: #fff;
}

/* Tab Panels */
.tab-panel {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.tab-panel.active {
    display: block;
}

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

/* Updates Tab content */
.hero-update {
    position: relative;
    border-radius: 20px;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.08) 0%, rgba(99, 102, 241, 0.05) 100%), var(--card-bg);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    overflow: hidden;
}

.hero-update-pulse {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.4);
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0% { box-shadow: 0 0 0 0px rgba(239, 68, 68, 0.7); }
    100% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
}

.update-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.hero-update-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.hero-update-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.hero-update-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-bottom: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
}

.hero-update-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.hero-update-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
}

/* Status Cards Grid */
.status-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.status-card {
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

.status-icon {
    font-size: 1.8rem;
}

.status-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.status-label {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
}

.status-value {
    font-size: 1.25rem;
    font-weight: 700;
}

.status-badge {
    align-self: flex-start;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
}

/* Overview Tab Grid */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .detail-card:nth-child(3) {
        grid-column: span 2;
    }
}

.detail-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
}

.detail-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--accent-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.5rem;
}

.detail-desc {
    color: var(--text-secondary);
    line-height: 1.6;
}

.detail-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.detail-list li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.detail-list li::before {
    content: "🔸";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.95rem;
}

.post-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.post-badge {
    background: rgba(249, 115, 22, 0.08);
    border: 1px solid rgba(249, 115, 22, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Accordion for Syllabus */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
}

.accordion-header {
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.02);
}

.accordion-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.accordion-arrow {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    transition: transform 0.3s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-item.active .accordion-content {
    max-height: 1500px;
}

.accordion-item.active .accordion-arrow {
    transform: rotate(180deg);
}

.syllabus-block {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.syllabus-block h4 {
    margin-bottom: 0.75rem;
    color: var(--accent-color);
}

.syllabus-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.syllabus-list li {
    position: relative;
    padding-left: 1.2rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.syllabus-list li::before {
    content: "•";
    position: absolute;
    left: 5px;
    font-weight: bold;
    color: var(--primary-color);
}

/* Exam Pattern Tab Styles */
.pattern-stages {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.pattern-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
}

.stage-badge {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: var(--accent-color);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pattern-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.pattern-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* Tables */
.pattern-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    text-align: left;
}

.pattern-table th, .pattern-table td {
    padding: 0.9rem 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pattern-table th {
    font-weight: 600;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
}

.pattern-table td {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.highlight-row td {
    border-top: 1px solid var(--primary-color);
    color: var(--primary-color) !important;
    font-size: 1.05rem;
}

.negative-marking {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.danger-dot {
    width: 8px;
    height: 8px;
    background: var(--danger-color);
    border-radius: 50%;
    flex-shrink: 0;
}

.interview-stat {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
}

.int-marks {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.grand-total {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent-color);
}

/* 🏆 INTERACTIVE QUIZ DESIGN 🏆 */
.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1.5rem;
}

.quiz-progress-wrapper {
    flex-grow: 1;
}

.progress-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.quiz-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.05);
    border-radius: 50px;
    overflow: hidden;
}

.quiz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 50px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.score-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
}

.quiz-question h3 {
    font-size: 1.4rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.option-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.option-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(249, 115, 22, 0.3);
    transform: translateX(4px);
}

.option-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.option-text {
    font-size: 1rem;
    color: var(--text-primary);
}

/* Option states */
.option-card.selected {
    background: rgba(249, 115, 22, 0.1);
    border-color: var(--primary-color);
}

.option-card.selected .option-letter {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.option-card.correct {
    background: rgba(16, 185, 129, 0.12) !important;
    border-color: var(--success-color) !important;
}

.option-card.correct .option-letter {
    background: var(--success-color) !important;
    color: #fff !important;
    border-color: var(--success-color) !important;
}

.option-card.incorrect {
    background: rgba(239, 68, 68, 0.12) !important;
    border-color: var(--danger-color) !important;
}

.option-card.incorrect .option-letter {
    background: var(--danger-color) !important;
    color: #fff !important;
    border-color: var(--danger-color) !important;
}

/* Controls */
.quiz-controls {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.btn {
    border: none;
    padding: 0.85rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.btn-primary:hover:not(:disabled) {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-accent {
    background: var(--accent-color);
    color: #111827;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
}

.btn-accent:hover {
    transform: translateY(-2px);
}

/* Explanation */
.quiz-explanation {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

.explanation-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.explanation-details h4 {
    margin-bottom: 0.5rem;
}

.explanation-details p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Completion overlay */
.quiz-completion {
    text-align: center;
    padding: 2rem 1rem;
    animation: scaleUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes scaleUp {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.completion-crown {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.quiz-completion h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.quiz-completion p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.final-score-badge {
    display: inline-block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-color);
    background: rgba(251, 191, 36, 0.1);
    border: 2px dashed rgba(251, 191, 36, 0.3);
    padding: 1.5rem 3rem;
    border-radius: 24px;
    margin-bottom: 2.5rem;
}

/* Footer Section */
.uppcs-footer {
    max-width: 1200px;
    margin: 4rem auto 0;
    padding: 2rem 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

.footer-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.disclaimer {
    font-size: 0.75rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Content Container */
.content-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 0 3rem 0;
}

/* Tab Content Wrapper */
.tab-content {
    min-height: 400px;
}

/* Live Dot in Update Badge */
.update-badge .live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #f59e0b;
    border-radius: 50%;
    animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

/* Button Arrow Animation */
.hero-update-btn .btn-arrow {
    transition: transform 0.3s;
}

.hero-update-btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* Hero Update Content Layout */
.hero-update-content {
    position: relative;
    z-index: 1;
}

/* Resources Tab - Info Cards */
.info-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    background: rgba(249, 115, 22, 0.05);
    border-bottom: 1px solid var(--border-color);
}

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

.card-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.card-body {
    padding: 1.5rem;
}

.card-body p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Resources Section */
.resources-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.resources-intro h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.resources-intro p {
    color: var(--text-secondary);
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.book-category h4 {
    color: var(--accent-color);
    margin-bottom: 0.75rem;
}

.book-category ul {
    list-style: none;
    padding: 0;
}

.book-category li {
    padding: 0.4rem 0;
    padding-left: 1.2rem;
    position: relative;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.book-category li::before {
    content: '📖';
    position: absolute;
    left: 0;
    font-size: 0.8rem;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.resource-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s;
}

.resource-link:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.resource-link.official {
    border-color: rgba(249, 115, 22, 0.3);
    background: rgba(249, 115, 22, 0.05);
}

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

.link-name {
    font-size: 0.9rem;
    font-weight: 600;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.tip-card {
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s;
}

.tip-card:hover {
    border-color: var(--primary-color);
}

.tip-card .tip-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.tip-card h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.tip-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0 !important;
}

/* Quiz Explanation Icon States */
.explanation-icon.correct-icon {
    animation: scaleUp 0.3s ease forwards;
}

.explanation-icon.incorrect-icon {
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Responsive Table Adjustments */
@media (max-width: 600px) {
    .uppcs-hero {
        padding: 2rem 1rem;
    }
    .uppcs-title .title-main {
        font-size: 2.2rem;
    }
    .hero-stats {
        grid-template-columns: 1fr;
    }
    .pattern-table th, .pattern-table td {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
    .quiz-container {
        padding: 1.5rem;
    }
    .quiz-question h3 {
        font-size: 1.15rem;
    }
    .status-cards {
        grid-template-columns: 1fr;
    }
    .uppcs-tabs-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .nav-breadcrumb {
        display: none;
    }
    .uppcs-tabs {
        width: 100%;
    }
    .uppcs-tab {
        flex: 1;
        justify-content: center;
        padding: 0.6rem 0.5rem;
    }
    .tab-text {
        display: none;
    }
    .tab-icon {
        font-size: 1.3rem;
    }
    .hero-update {
        padding: 1.5rem;
    }
    .status-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-update-title {
        font-size: 1.3rem;
    }
}
