/* Equity Partner Playbook - Main Styles */
:root {
    --primary-color: #1a5490;
    --secondary-color: #2c7ac7;
    --accent-color: #f39c12;
    --success-color: #27ae60;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
}

/* Header & Navigation */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.logo p {
    font-size: 0.9rem;
    opacity: 0.9;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 0.8;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

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

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

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

.btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background: #e67e22;
    transform: translateY(-2px);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
}

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

/* Progress Dashboard */
.progress-dashboard {
    background: var(--bg-white);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

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

.stat-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    color: var(--text-light);
    margin-top: 0.5rem;
}

.progress-bar-container {
    background: var(--bg-light);
    border-radius: 10px;
    height: 20px;
    margin-top: 1rem;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--success-color), var(--accent-color));
    height: 100%;
    transition: width 0.5s ease;
    border-radius: 10px;
}

/* Plays Grid */
.plays-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.play-card {
    background: var(--bg-white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.play-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.play-card.completed::before {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--success-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.play-number {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 700;
    margin-bottom: 1rem;
}

.play-card h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.play-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Play Detail Page */
.play-detail {
    background: var(--bg-white);
    border-radius: 10px;
    padding: 3rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.play-header {
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.play-header h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.breadcrumb {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.section {
    margin-bottom: 3rem;
}

.section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--bg-light);
}

.section h3 {
    color: var(--text-dark);
    margin: 1.5rem 0 1rem;
}

/* Interactive Elements */
.interactive-box {
    background: var(--bg-light);
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 5px;
}

.case-study {
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.case-study h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.exercise {
    background: var(--bg-white);
    border: 2px solid var(--accent-color);
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.exercise-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.exercise-icon {
    font-size: 2rem;
}

.checklist {
    list-style: none;
    padding-left: 0;
}

.checklist li {
    padding: 0.8rem;
    margin: 0.5rem 0;
    background: var(--bg-white);
    border-radius: 5px;
    border-left: 3px solid var(--primary-color);
    cursor: pointer;
    transition: all 0.3s;
}

.checklist li:hover {
    background: var(--bg-light);
    transform: translateX(5px);
}

.checklist li::before {
    content: '☐';
    margin-right: 1rem;
    font-size: 1.2rem;
    color: var(--text-light);
}

.checklist li.checked::before {
    content: '✓';
    color: var(--success-color);
}

/* Note Taking */
.notes-section {
    background: #fff9e6;
    border: 2px solid var(--accent-color);
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem 0;
}

.notes-section h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.note-input {
    width: 100%;
    min-height: 150px;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
}

.note-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.saved-notes {
    margin-top: 2rem;
}

.note-item {
    background: white;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
    border-left: 3px solid var(--accent-color);
}

.note-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Downloads Section */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.download-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
}

.download-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.download-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Search */
.search-container {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.search-box {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    transition: border-color 0.3s;
}

.search-box:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-results {
    margin-top: 2rem;
}

.search-result-item {
    background: var(--bg-light);
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 5px;
    border-left: 3px solid var(--primary-color);
}

.search-result-item h3 {
    margin-bottom: 0.5rem;
}

.search-result-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

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

.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.nav-btn.disabled {
    background: var(--text-light);
    cursor: not-allowed;
    opacity: 0.5;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
        display: none;
    }

    nav ul.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

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

    .play-detail {
        padding: 1.5rem;
    }

    .play-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
    }
}

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

.fade-in {
    animation: fadeIn 0.5s ease;
}

/* Print Styles */
@media print {
    header, footer, .notes-section, .play-navigation {
        display: none;
    }

    .play-detail {
        box-shadow: none;
    }
}
