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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    background-color: #f3f4f6;
    color: #1f2937;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Tab navigation */
.tabs {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-button {
    padding: 1rem 2rem;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1rem;
    color: #6b7280;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s ease;
}

.tab-button:hover {
    color: #4b5563;
}

.tab-button.active {
    color: #4f46e5;
    border-bottom-color: #4f46e5;
}

/* Content sections */
.tab-content {
    display: none;
}

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

.section {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.section-subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    margin: 1.5rem 0 1rem;
    color: #374151;
}

/* Metrics and stats */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.metric-card {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.375rem;
    border: 1px solid #e5e7eb;
}

.metric-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

/* Lists */
.list {
    list-style: none;
    margin-bottom: 1rem;
}

.list-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.list-item:last-child {
    border-bottom: none;
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.data-table th,
.data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.data-table th {
    background: #f9fafb;
    font-weight: 600;
}

/* Season section */
.season {
    margin-bottom: 2rem;
}

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

.month-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.month-title {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #374151;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .tab-button {
        padding: 0.75rem 1rem;
    }

    .section {
        padding: 1rem;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }
}

/* Story specific styles */
.story-content {
    padding: 1rem 0;
}

.story-text {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #374151;
    font-size: 1.1rem;
}

.trigger {
    font-style: italic;
    color: #6b7280;
    border-left: 3px solid #4f46e5;
    padding-left: 1rem;
    margin: 1.5rem 0;
    background: #f8fafc;
    padding: 1rem;
    border-radius: 0 0.5rem 0.5rem 0;
}

.milestone-card {
    background: #f3f4f6;
    border-left: 4px solid #4f46e5;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 0.5rem 0.5rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.milestone-title {
    font-weight: 600;
    color: #4f46e5;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.milestone-reaction {
    color: #6b7280;
    font-style: italic;
}

.lessons-learned {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin: 2rem 0;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

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

.subsection-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin: 1.5rem 0 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .story-text {
        font-size: 1rem;
    }
    
    .milestone-card {
        padding: 1rem;
    }
    
    .video-container {
        margin: 1rem 0;
    }
}