/* ============================================
   THEORY PAGE STYLES
   Educational Theme - Psychology Knowledge
   ============================================ */

.theory-page {
    background: #0a0a0a;
    color: #fff;
}

/* Intro Overlay */
.theory-intro {
    background: #050505;
}

.theory-network {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(68, 136, 255, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(255, 68, 255, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 50% 50%, rgba(68, 255, 136, 0.1) 0%, transparent 40%);
}

.theory-text {
    font-size: clamp(3rem, 12vw, 10rem);
    font-weight: 900;
    background: linear-gradient(135deg, #4488ff, #ff44ff, #44ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
}

.theory-subtext {
    font-size: 1.2rem;
    opacity: 0.7;
    margin-top: 1rem;
    letter-spacing: 0.3rem;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}

/* Progress Bar */
.theory-progress {
    background: linear-gradient(90deg, #4488ff, #ff44ff, #44ff88);
    background-size: 200% 100%;
    animation: theoryProgress 3s linear infinite;
}

@keyframes theoryProgress {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* Navigation */
.theory-nav .nav-links a.active {
    background: linear-gradient(135deg, #4488ff, #ff44ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Background */
.theory-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

#theoryCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Hero Section */
.theory-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 2rem;
    background: radial-gradient(ellipse at center, rgba(68, 136, 255, 0.1) 0%, transparent 70%);
}

.theory-icon {
    font-size: 5rem;
    background: linear-gradient(135deg, #4488ff, #ff44ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
}

.theory-hero .hero-title {
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 900;
    letter-spacing: 0.5rem;
    background: linear-gradient(135deg, #4488ff, #ff44ff, #44ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    text-align: center;
}

.theory-hero .hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.8;
    max-width: 600px;
    text-align: center;
    margin-bottom: 2rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0.6;
    animation: fadeInUp 1s ease 1s both;
}

.scroll-indicator i {
    animation: bounce 1.5s ease infinite;
}

/* Timeline Section */
.timeline-section {
    padding: 8rem 2rem;
}

.timeline {
    max-width: 800px;
    margin: 4rem auto 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, #4488ff, #ff44ff, #44ff88);
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-year {
    width: 100px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #4488ff;
    text-align: center;
    flex-shrink: 0;
}

.timeline-content {
    flex: 1;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0 2rem;
}

.timeline-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #fff;
}

.timeline-content p {
    font-size: 0.95rem;
    opacity: 0.8;
    line-height: 1.6;
}

/* Schools Section */
.schools-section {
    padding: 8rem 2rem;
}

.schools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.school-card {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.school-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.school-icon {
    width: 60px;
    height: 60px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
}

.school-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.school-founder {
    font-size: 0.9rem;
    opacity: 0.6;
    margin-bottom: 1rem;
    font-style: italic;
}

.school-card > p {
    font-size: 0.95rem;
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.school-concepts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.school-concepts span {
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Concepts Section */
.concepts-section {
    padding: 8rem 2rem;
}

.concepts-accordion {
    max-width: 800px;
    margin: 4rem auto 0;
}

.concept-item {
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    overflow: hidden;
}

.concept-header {
    width: 100%;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: none;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.concept-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.concept-header i:first-child {
    margin-right: 1rem;
    color: #4488ff;
}

.concept-header .fa-chevron-down {
    transition: transform 0.3s ease;
}

.concept-item.active .concept-header .fa-chevron-down {
    transform: rotate(180deg);
}

.concept-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.concept-item.active .concept-content {
    max-height: 300px;
}

.concept-content p {
    padding: 0 1.5rem 1.5rem;
    font-size: 0.95rem;
    opacity: 0.8;
    line-height: 1.6;
}

/* Experiments Section */
.experiments-section {
    padding: 8rem 2rem;
}

.experiments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.experiment-card {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.experiment-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.experiment-image {
    width: 60px;
    height: 60px;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.2), rgba(68, 136, 255, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.experiment-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.experiment-year {
    font-size: 0.85rem;
    color: #4488ff;
    margin-bottom: 1rem;
}

.experiment-card > p {
    font-size: 0.95rem;
    opacity: 0.8;
    line-height: 1.6;
}

/* Resources Section */
.resources-section {
    padding: 8rem 2rem;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 4rem;
}

.resource-card {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    text-align: center;
    text-decoration: none;
    color: #fff;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.resource-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.resource-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #4488ff;
}

.resource-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.resource-card p {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* CTA Section */
.theory-cta-section {
    background: linear-gradient(180deg, #0a0a0a 0%, #000000 100%);
}

.theory-cta-section .cta-title {
    background: linear-gradient(135deg, #4488ff, #ff44ff, #44ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-secondary::before {
    background: rgba(255, 255, 255, 0.1);
}

.cta-secondary:hover {
    color: #fff;
}

/* Footer */
.theory-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item,
    .timeline-item:nth-child(odd) {
        flex-direction: column;
        padding-left: 50px;
    }
    
    .timeline-year {
        text-align: left;
        margin-bottom: 0.5rem;
    }
    
    .timeline-content {
        margin: 0;
    }
    
    .schools-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}
