/* Adventure Page Styles */

/* Navigation */
.adventure-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-home {
    color: #4361ee;
    font-weight: bold;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.nav-home:hover {
    color: #7209b7;
}

.nav-progress {
    display: flex;
    gap: 10px;
}

.progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    transition: all 0.3s;
}

.progress-dot.active {
    background: #4361ee;
    transform: scale(1.3);
}

.progress-dot.completed {
    background: #06d6a0;
}

.nav-title {
    color: #666;
    font-weight: bold;
}

/* Hero */
.adventure-hero {
    padding: 60px 20px;
    text-align: center;
    color: white;
}

.adventure-hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.adventure-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.adventure-hero h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.4rem;
    opacity: 0.95;
    margin-bottom: 20px;
}

.time-estimate {
    background: rgba(255,255,255,0.2);
    display: inline-block;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 1rem;
}

/* Objectives Section */
.objectives-section {
    padding: 50px 20px;
    background: #f8f9fa;
}

.objectives-section h2 {
    text-align: center;
    font-size: 2rem;
    color: #3a0ca3;
    margin-bottom: 30px;
}

.objectives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.objective-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.objective-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.objective-card p {
    color: #333;
    font-size: 1.1rem;
    margin: 0;
}

/* Main Content */
.adventure-content {
    padding: 40px 20px;
}

.adventure-content .container {
    max-width: 900px;
    margin: 0 auto;
}

/* Lesson Steps */
.lesson-step {
    background: white;
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    overflow: hidden;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px 30px;
    background: linear-gradient(135deg, #4361ee, #7209b7);
    color: white;
}

.step-number {
    width: 50px;
    height: 50px;
    background: white;
    color: #4361ee;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-header h2 {
    color: white;
    margin: 0;
    font-size: 1.6rem;
}

.step-content {
    padding: 30px;
}

/* Text Styles */
.big-text {
    font-size: 1.3rem;
    color: #333;
    line-height: 1.7;
    margin-bottom: 25px;
}

/* Fun Fact Box */
.fun-fact {
    display: flex;
    gap: 20px;
    background: linear-gradient(135deg, #ffd166 0%, #ffeb99 100%);
    border-radius: 15px;
    padding: 20px 25px;
    margin-bottom: 25px;
}

.fun-fact-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.fun-fact-content strong {
    color: #7209b7;
    font-size: 1.1rem;
}

.fun-fact-content p {
    margin: 5px 0 0 0;
    color: #333;
}

/* Concept Cards */
.concept-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.concept-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.concept-card:hover {
    border-color: #4361ee;
    transform: translateY(-5px);
}

.concept-emoji {
    font-size: 3rem;
    margin-bottom: 15px;
}

.concept-card h3 {
    color: #3a0ca3;
    margin: 0 0 10px 0;
    font-size: 1.3rem;
}

.concept-card p {
    color: #666;
    margin: 0;
    font-size: 0.95rem;
}

/* Interactive Box */
.interactive-box {
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(114, 9, 183, 0.1));
    border: 2px dashed #4361ee;
    border-radius: 20px;
    padding: 30px;
    margin: 30px 0;
}

.interactive-box h3 {
    color: #3a0ca3;
    margin: 0 0 15px 0;
    font-size: 1.4rem;
}

.interactive-box p {
    color: #333;
    margin-bottom: 20px;
}

/* Matching Game */
.matching-game {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.game-item {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 3px solid transparent;
}

.game-item:hover:not(.answered) {
    border-color: #4361ee;
    transform: scale(1.05);
}

.game-item.correct {
    border-color: #06d6a0;
    background: rgba(6, 214, 160, 0.1);
}

.game-item.incorrect {
    border-color: #ef476f;
    background: rgba(239, 71, 111, 0.1);
}

.item-emoji {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 10px;
}

.item-label {
    display: block;
    font-weight: bold;
    color: #333;
}

.answer-badge {
    display: block;
    margin-top: 10px;
    font-size: 0.8rem;
    color: #666;
}

.game-result {
    margin-top: 20px;
}

.success-message {
    background: #06d6a0;
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.1rem;
    text-align: center;
}

/* Checkpoint */
.checkpoint {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px 25px;
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.checkpoint-check {
    width: 25px;
    height: 25px;
    cursor: pointer;
}

.checkpoint label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: #333;
    cursor: pointer;
}

.checkpoint label i {
    color: #06d6a0;
    font-size: 1.3rem;
}

/* Analogy Box */
.analogy-box {
    display: flex;
    gap: 25px;
    background: linear-gradient(135deg, #e8f4f8, #f8f9fa);
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
    align-items: center;
}

.analogy-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.analogy-content p {
    margin: 5px 0;
    color: #333;
}

/* Language Showcase */
.language-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.language-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.language-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    border-radius: 10px;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.language-card p {
    margin: 0;
    color: #333;
}

.language-card small {
    display: block;
    margin-top: 8px;
    color: #888;
    font-style: italic;
}

/* Code Demo */
.code-demo {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
}

.code-window {
    background: #2d2d2d;
    border-radius: 10px;
    overflow: hidden;
    text-align: left;
    margin-bottom: 20px;
}

.code-header {
    background: #3d3d3d;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27ca40; }

.code-header span:last-child {
    margin-left: 10px;
    color: #888;
    font-size: 0.9rem;
}

.code-content {
    padding: 20px;
    margin: 0;
    font-family: 'Fira Code', monospace;
    font-size: 1.1rem;
    color: #f8f8f2;
}

.keyword { color: #66d9ef; }
.string { color: #a6e22e; }

.run-btn {
    background: linear-gradient(135deg, #4361ee, #7209b7);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
}

.run-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(67, 97, 238, 0.4);
}

/* Browser Showcase */
.browser-showcase {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin: 25px 0;
}

.browser-card {
    background: white;
    border-radius: 15px;
    padding: 20px 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.browser-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.browser-card p {
    margin: 0;
    font-weight: bold;
    color: #333;
}

/* Scavenger Hunt */
.scavenger-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.scavenger-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
}

.scavenger-item input {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    cursor: pointer;
}

.scavenger-item label {
    cursor: pointer;
    color: #333;
}

.scavenger-item label strong {
    color: #4361ee;
}

/* Celebration Section */
.celebration-section {
    background: linear-gradient(135deg, #06d6a0, #4361ee);
    border-radius: 20px;
    padding: 50px 30px;
    text-align: center;
    color: white;
    margin-top: 40px;
}

.trophy {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: bounce 1s infinite;
}

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

.celebration-content h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.celebration-content p {
    font-size: 1.2rem;
    opacity: 0.95;
}

.earned-badge {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: rgba(255,255,255,0.2);
    padding: 15px 30px;
    border-radius: 15px;
    margin: 25px 0;
}

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

.badge-info {
    text-align: left;
}

.badge-info strong {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
}

.badge-info span {
    font-size: 1.3rem;
    font-weight: bold;
}

.next-steps {
    margin-top: 30px;
}

.next-steps h3 {
    color: white;
    margin-bottom: 15px;
}

.next-adventure-btn {
    display: inline-block;
    background: white;
    color: #4361ee;
    padding: 15px 35px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s;
}

.next-adventure-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Footer */
.adventure-footer {
    display: flex;
    justify-content: space-between;
    padding: 20px 30px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.footer-btn {
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-btn.secondary {
    background: white;
    color: #4361ee;
    border: 2px solid #4361ee;
}

.footer-btn.secondary:hover {
    background: #4361ee;
    color: white;
}

.footer-btn.primary {
    background: linear-gradient(135deg, #4361ee, #7209b7);
    color: white;
}

.footer-btn.primary:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(67, 97, 238, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .adventure-hero h1 {
        font-size: 2rem;
    }
    
    .step-header {
        flex-direction: column;
        text-align: center;
    }
    
    .adventure-footer {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-btn {
        text-align: center;
    }
}
