/* guide.css - Styles specific to the getting started guide */

.page-header h1 {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--primary-teal);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.2;
}

.section-title {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    display: flex;
    align-items: center;
    margin: 2rem 0 1rem;
    color: var(--primary-teal);
    font-size: 1.5rem;
    font-weight: 600;
}

.feature-card h3,
.skill-card h3 {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--primary-teal);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Progress Navigation */
.progress-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-step {
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-step.active {
    background: var(--primary-green);
    color: var(--white);
}

.nav-step:hover:not(.active) {
    background: rgba(255,255,255,0.2);
}

/* Main Content Layout */
.main-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    padding: 2rem 0;
    min-height: calc(100vh - 80px);
}

/* Sidebar */
.sidebar {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar h3 {
    color: var(--primary-teal);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.sidebar-nav {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 0.5rem;
}

.sidebar-nav a {
    display: block;
    padding: 0.75rem;
    color: var(--text-medium);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.sidebar-nav a:hover {
    background: rgba(165, 199, 51, 0.1);
    color: var(--primary-green);
}

.sidebar-nav a.active {
    background: var(--primary-green);
    color: var(--white);
}

/* Page Sections */
.page-section {
    display: none;
}

.page-section.active {
    display: block;
}

.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bg-light);
}

.page-header p {
    color: var(--text-medium);
    font-size: 1.1rem;
}

/* Step Numbers */
.step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-green), var(--green-light));
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-weight: bold;
    margin-right: 1rem;
    margin-bottom: 1rem;
}

/* Feature Cards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-card {
    background: linear-gradient(135deg, var(--bg-light) 0%, #f0f4f8 100%);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-green);
}

/* Collapsible Section Styles */
.collapsible-section {
    margin-top: 1rem;
}

.collapsible-toggle {
    background: none;
    border: none;
    color: var(--primary-teal);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 1rem;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: color 0.3s ease;
}

.collapsible-toggle:hover {
    color: var(--teal-light);
}

.collapsible-toggle:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
    border-radius: 4px;
}

.collapsible-content {
    margin-top: 1rem;
    animation: fadeIn 0.3s ease-out;
}

.collapsible-content.collapsed {
    display: none;
}

/* Icon rotation for collapsible toggle */
.collapsible-toggle i {
    transition: transform 0.3s ease;
}

.collapsible-toggle.expanded i {
    transform: rotate(90deg);
}

/* Adding spacing under the h3 heading for a note on setting player starting levels */
.section-note-heading {
    margin-bottom: .4rem;
}

/* Screenshot Styles */
.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
    max-width: 400px;
}

.screenshot-container {
    max-width: 180px;
    margin: 1rem 0;
}

.screenshot-thumbnail {
    width: 100%;
    height: 0;
    padding-bottom: 60%;
    background: #f0f4f8;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.screenshot-thumbnail:hover {
    border-color: var(--primary-green);
    box-shadow: 0 4px 15px rgba(165, 199, 51, 0.3);
    transform: translateY(-2px);
}

.screenshot-thumbnail::after {
    content: '🔍 Click to enlarge';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 124, 128, 0.9);
    color: white;
    padding: 0.5rem;
    font-size: 0.8rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.screenshot-thumbnail:hover::after {
    opacity: 1;
}

/* Modal Styles */
.screenshot-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.screenshot-modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.screenshot-modal.active .modal-content {
    transform: scale(1);
}

.modal-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 80vh;
    object-fit: contain;
}

.modal-caption {
    padding: 1rem 1.5rem;
    background: white;
    border-top: 1px solid #e1e8ed;
}

.modal-caption h4 {
    color: var(--primary-teal);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.modal-caption p {
    color: var(--text-medium);
    font-size: 0.9rem;
    line-height: 1.4;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    z-index: 10001;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* Special Layouts */
.welcome-features,
.principles-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.skill-card {
    background: linear-gradient(135deg, var(--bg-light) 0%, #f0f4f8 100%);
    border: 2px solid var(--bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: none;
    cursor: default;
}

/* Video Section Styles */
.video-section {
    margin: 3rem 0;
    text-align: center;
}

.video-intro-text {
    color: var(--text-medium);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 56.25%; /* 16:9 aspect ratio (9/16 * 100%) */
    height: 0;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .video-section {
        margin: 2rem 0;
    }
    
    .video-intro-text {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .video-container {
        max-width: 100%;
        border-radius: var(--border-radius-lg);
    }
}

@media (max-width: 480px) {
    .video-section {
        margin: 1.5rem 0;
    }
    
    .video-intro-text {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }
}

/* Skill Ladder */
.skill-ladder {
    background: linear-gradient(to bottom, var(--primary-teal), #378184);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1rem 0;
}

.skill-level {
    background: rgba(255,255,255,0.1);
    padding: 0.75rem;
    margin: 0.5rem 0;
    border-radius: 8px;
    border-left: 4px solid var(--primary-green);
}

.skill-level.current {
    background: var(--primary-green);
    border-left-color: var(--white);
}

/* Colored Sections */
.teal-section {
    background: linear-gradient(135deg, #007C80, #54C4C8);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.green-section {
    background: linear-gradient(135deg, #A5C733, #ADC854);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.teal-step {
    background: #E6F7F8;
    border-left: 4px solid #007C80;
    color: #2c3e50;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 8px;
}

.green-step {
    background: #F0F7E1;
    border-left: 4px solid #A5C733;
    color: #2c3e50;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 8px;
}

.conversation-example {
    background: linear-gradient(135deg, var(--accent-navy), var(--navy-medium));
    color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.conversation-step {
    background: rgba(255,255,255,0.1);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 8px;
    border-left: 4px solid var(--primary-green);
}

.conversation-step strong {
    color: var(--primary-green);
}

.tip-box {
    background: linear-gradient(135deg, var(--accent-navy), var(--navy-medium));
    color: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.tip-box h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Navigation Buttons */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--bg-light);
}

/* Progress Bar */
.progress-bar {
    background: var(--bg-light);
    height: 6px;
    border-radius: 3px;
    margin: 1rem 0;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, var(--primary-green), var(--green-light));
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Theme Classes */
.page-title-icon {
    margin-left: 0.75rem;
    width: 2rem;
    height: 2rem;
}

.observations-theme {
    color: var(--primary-teal);
}

.observations-section {
    border-left-color: var(--primary-teal);
}

.conversations-theme {
    color: var(--primary-green);
}

.conversations-section {
    border-left-color: var(--primary-green);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .progress-nav {
        display: none;
    }
    
    .main-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .sidebar {
        display: none;
    }
    
    .page-header h1 {
        font-size: 2rem;
        line-height: 1.15;
    }
    
    .page-title-icon {
        width: 1.5rem;
        height: 1.5rem;
        margin-left: 0.5rem;
    }
    
    .feature-grid,
    .skill-grid {
        grid-template-columns: 1fr;
    }
    
    /* Skill ladder mobile layout */
    .skill-ladder-horizontal {
        display: none !important;
    }
    
    .skill-ladder-vertical {
        display: flex !important;
    }
    
    /* Stack navigation buttons vertically on mobile */
    .navigation-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        padding: 1.25rem 1.5rem;
        font-size: 1.1rem;
    }

    .screenshot-thumbnail {
        padding-bottom: 60%;
    }

    .screenshot-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
        margin: 1rem;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.75rem;
        line-height: 1.1;
    }
    
    .section-title {
        font-size: 1.3rem;
        margin: 1.5rem 0 0.75rem;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        line-height: 32px;
        font-size: 0.9rem;
        margin-right: 0.75rem;
    }
    
    .teal-section,
    .green-section,
    .conversation-example {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .tip-box {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .btn {
        padding: 1rem 1.25rem;
        font-size: 1rem;
        max-width: 280px;
    }
    
    .skill-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .skill-card {
        padding: 1.25rem;
    }
    
    .page-title-icon {
        width: 1.25rem;
        height: 1.25rem;
        margin-left: 0.5rem;
    }

    .screenshot-thumbnail {
        padding-bottom: 60%;
    }

    .screenshot-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-section.active {
    animation: fadeIn 0.5s ease-out;
}