/* ============================================
   LOGIC PAGE STYLES
   Blue/Clean Theme - Rational Psychology
   ============================================ */

.logic-page {
    background: #000d1a;
    color: #fff;
}

/* Intro Overlay */
.logic-intro {
    background: #000510;
}

.logic-circuit {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(68, 136, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(68, 136, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: circuitMove 20s linear infinite;
}

@keyframes circuitMove {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

.logic-text {
    font-size: clamp(4rem, 15vw, 12rem);
    font-weight: 900;
    color: #4488ff;
    text-shadow: 
        0 0 20px rgba(68, 136, 255, 0.5),
        0 0 40px rgba(68, 136, 255, 0.3);
    position: relative;
    z-index: 2;
}

.logic-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 */
.logic-progress {
    background: linear-gradient(90deg, #004488, #4488ff, #004488);
}

/* Navigation */
.logic-nav .nav-links a.active {
    color: #4488ff;
}

.logic-nav .nav-links a.active::after {
    background: #4488ff;
}

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

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(68, 136, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(68, 136, 255, 0.05) 1px, transparent 1px);
    background-size: 100px 100px;
}

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

/* Hero Section */
.logic-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(0, 50, 100, 0.3) 0%, transparent 70%);
}

.logic-icon {
    font-size: 5rem;
    color: #4488ff;
    margin-bottom: 2rem;
    animation: brainPulse 3s ease infinite;
    text-shadow: 0 0 30px rgba(68, 136, 255, 0.5);
}

@keyframes brainPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

.logic-hero .hero-title {
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 900;
    letter-spacing: 1rem;
    color: #4488ff;
    text-shadow: 
        0 0 20px rgba(68, 136, 255, 0.5),
        0 0 40px rgba(68, 136, 255, 0.3);
    margin-bottom: 1.5rem;
}

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

.logic-quote {
    text-align: center;
    padding: 2rem;
    border-left: 3px solid #4488ff;
    background: rgba(68, 136, 255, 0.05);
}

.logic-quote span {
    font-size: 1.5rem;
    font-style: italic;
    display: block;
    margin-bottom: 0.5rem;
}

.logic-quote cite {
    font-size: 0.9rem;
    opacity: 0.6;
}

.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;
}

/* Explanation Section */
.explanation-section {
    padding: 8rem 2rem;
}

.explanation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.explanation-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.logic-types {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.type-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(68, 136, 255, 0.1);
    border-left: 3px solid #4488ff;
    border-radius: 0 0.5rem 0.5rem 0;
}

.type-item i {
    color: #4488ff;
    font-size: 1.25rem;
}

.type-item strong {
    display: block;
    color: #4488ff;
}

.type-item span {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Cognitive Flow */
.cognitive-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3rem;
    background: rgba(68, 136, 255, 0.05);
    border-radius: 1rem;
    border: 1px solid rgba(68, 136, 255, 0.2);
}

.flow-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: rgba(68, 136, 255, 0.1);
    border-radius: 1rem;
    border: 2px solid rgba(68, 136, 255, 0.3);
    min-width: 80px;
}

.flow-node i {
    font-size: 2rem;
    color: #4488ff;
}

.flow-node span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.flow-arrow {
    font-size: 1.5rem;
    color: #4488ff;
    opacity: 0.5;
}

/* Experiment Section */
.experiment-section {
    padding: 8rem 2rem;
}

.experiment-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 4rem auto 0;
}

.puzzle-area {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(68, 136, 255, 0.3);
    border-radius: 1rem;
    padding: 2rem;
}

.puzzle-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(68, 136, 255, 0.2);
}

.puzzle-number {
    font-size: 0.9rem;
    color: #4488ff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.puzzle-score {
    font-size: 0.9rem;
    opacity: 0.8;
}

.puzzle-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #4488ff;
}

.premises {
    background: rgba(68, 136, 255, 0.05);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.premises p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.premises p:last-child {
    margin-bottom: 0;
}

.question {
    margin-bottom: 1.5rem;
}

.question p {
    font-size: 1.2rem;
    font-weight: 600;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.option-btn {
    padding: 1rem 1.5rem;
    background: rgba(68, 136, 255, 0.1);
    border: 2px solid rgba(68, 136, 255, 0.3);
    border-radius: 0.5rem;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.option-btn:hover {
    background: rgba(68, 136, 255, 0.2);
    border-color: rgba(68, 136, 255, 0.5);
}

.option-btn.correct {
    background: rgba(68, 255, 136, 0.2);
    border-color: #44ff88;
}

.option-btn.incorrect {
    background: rgba(255, 68, 68, 0.2);
    border-color: #ff4444;
}

.puzzle-feedback {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.puzzle-feedback.show {
    opacity: 1;
}

.puzzle-feedback.correct {
    background: rgba(68, 255, 136, 0.1);
    color: #44ff88;
}

.puzzle-feedback.incorrect {
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
}

/* Logic Info */
.logic-info h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #4488ff;
}

.fallacy-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fallacy-item {
    padding: 1rem;
    background: rgba(68, 136, 255, 0.05);
    border-radius: 0.5rem;
    border-left: 3px solid rgba(68, 136, 255, 0.3);
}

.fallacy-name {
    display: block;
    font-weight: 600;
    color: #4488ff;
    margin-bottom: 0.25rem;
}

.fallacy-desc {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Stats Section */
.stats-section {
    padding: 6rem 2rem;
}

.logic-page .stat-item {
    background: rgba(68, 136, 255, 0.05);
    border: 1px solid rgba(68, 136, 255, 0.2);
}

.logic-page .stat-number {
    color: #4488ff;
}

/* Case Study */
.case-study-section {
    padding: 8rem 2rem;
}

.logic-case {
    background: rgba(68, 136, 255, 0.03);
    border: 1px solid rgba(68, 136, 255, 0.15);
}

.logic-case .case-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(68, 136, 255, 0.2);
    color: #4488ff;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
}

.logic-case .case-lessons h4 {
    color: #4488ff;
    margin-bottom: 1rem;
}

/* Card Task */
.card-task {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card {
    width: 70px;
    height: 100px;
    background: linear-gradient(135deg, #fff 0%, #ddd 100%);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.card.flipped {
    background: linear-gradient(135deg, #4488ff 0%, #004488 100%);
    color: #fff;
}

.card-instruction {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Challenge Section */
.challenge-section {
    padding: 8rem 2rem;
}

.challenge-simulator {
    max-width: 700px;
    margin: 4rem auto 0;
}

.pattern-display {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(68, 136, 255, 0.3);
    border-radius: 1rem;
    padding: 3rem;
    text-align: center;
    margin-bottom: 2rem;
}

.sequence {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.seq-item {
    width: 60px;
    height: 60px;
    background: rgba(68, 136, 255, 0.2);
    border: 2px solid rgba(68, 136, 255, 0.5);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.seq-item:last-child {
    background: rgba(68, 136, 255, 0.4);
    animation: pulseQuestion 1.5s ease infinite;
}

@keyframes pulseQuestion {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.pattern-hint {
    font-size: 1rem;
    opacity: 0.7;
}

.pattern-options {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.pattern-btn {
    padding: 1rem 2rem;
    background: rgba(68, 136, 255, 0.1);
    border: 2px solid rgba(68, 136, 255, 0.3);
    border-radius: 0.5rem;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.pattern-btn:hover {
    background: rgba(68, 136, 255, 0.2);
    border-color: rgba(68, 136, 255, 0.5);
}

.pattern-btn.correct {
    background: rgba(68, 255, 136, 0.2);
    border-color: #44ff88;
}

.pattern-btn.incorrect {
    background: rgba(255, 68, 68, 0.2);
    border-color: #ff4444;
}

.pattern-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.pattern-stats .stat {
    text-align: center;
}

.pattern-stats .stat-label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
    margin-bottom: 0.5rem;
}

.pattern-stats .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #4488ff;
}

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

.logic-page .concept-card {
    background: rgba(68, 136, 255, 0.03);
    border: 1px solid rgba(68, 136, 255, 0.15);
}

.logic-page .concept-card:hover {
    border-color: rgba(68, 136, 255, 0.4);
    box-shadow: 0 20px 40px rgba(68, 136, 255, 0.15);
}

.logic-page .concept-card h3 {
    color: #4488ff;
}

/* CTA Section */
.logic-cta-section {
    position: relative;
    background: linear-gradient(180deg, #000a14 0%, #000000 100%);
}

.cta-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(68, 136, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(68, 136, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.logic-cta-section .cta-title {
    color: #4488ff;
    text-shadow: 0 0 20px rgba(68, 136, 255, 0.3);
}

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

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

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

.cta-secondary:hover {
    color: #4488ff;
}

/* Footer */
.logic-footer {
    border-top: 1px solid rgba(68, 136, 255, 0.2);
}

/* Responsive */
@media (max-width: 1024px) {
    .explanation-grid,
    .experiment-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .cognitive-flow {
        flex-wrap: wrap;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 768px) {
    .card-task {
        flex-wrap: wrap;
    }
    
    .card {
        width: 60px;
        height: 85px;
        font-size: 1.5rem;
    }
    
    .pattern-options {
        gap: 0.5rem;
    }
    
    .pattern-btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .pattern-stats {
        gap: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}
