/* Coach Direct - Main Stylesheet */

/* CSS Variables - Brand Colors from Logo */
:root {
    --color-dark: #3A3F47;      /* Charcoal - headers, nav */
    --color-blue: #3366CC;      /* Blue - primary CTA, links (updated to match logo) */
    --color-blue-dark: #1E5BA8; /* Darker blue for hover states */
    --color-cyan: #87CEEB;      /* Light cyan - accents, highlights (updated to match logo) */
    --color-white: #FFFFFF;     /* White - backgrounds */
    --color-light: #F8F9FA;     /* Light gray - section backgrounds */
    --color-text: #2C3E50;      /* Dark text */
    --color-gray: #6C757D;      /* Gray text */
    --color-success: #28A745;
    --color-error: #DC3545;

    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-blue);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-cyan);
}

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

.section {
    padding: 4rem 0;
}

.section-light {
    background-color: var(--color-light);
}

/* Grid System */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Navigation */
.navbar {
    background-color: var(--color-white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--box-shadow);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-dark);
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--color-dark);
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-blue);
    border-bottom-color: var(--color-blue);
}

/* Mobile Navigation */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-dark);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .navbar-toggle {
        display: block;
    }

    .navbar-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-white);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: var(--box-shadow);
    }

    .navbar-nav.active {
        display: flex;
    }

    .nav-link {
        padding: 1rem 1.5rem;
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-cyan) 100%);
    color: var(--color-white);
    padding: 6rem 0;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hero .container {
    width: 100%;
}

.hero h1 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    font-weight: 700;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

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

.btn-primary:hover {
    background-color: var(--color-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(51, 102, 204, 0.4);
}

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

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

.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Cards */
.card {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--color-cyan);
}

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

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-cyan) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 2rem;
    box-shadow: 0 4px 12px rgba(51, 102, 204, 0.3);
}

/* Pain Points & Solutions Sections */
.pain-points-section,
.solutions-section {
    padding: 4rem 0;
}

.pain-points-section {
    background-color: var(--color-light);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    color: var(--color-blue);
    font-weight: 700;
}

/* USP Section */
.usp-section {
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-cyan) 100%);
    color: var(--color-white);
    padding: 4rem 0;
    text-align: center;
}

.usp-section p {
    font-size: 1.5rem;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Screenshots Section */
.screenshots-section {
    padding: 4rem 0;
    background-color: var(--color-light);
}

.screenshots {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.screenshot {
    max-width: 300px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-dark);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(30, 91, 168, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-select {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    background-color: var(--color-white);
    cursor: pointer;
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* FAQ */
.faq-item {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    box-shadow: var(--box-shadow);
}

.faq-question {
    padding: 1.5rem;
    font-weight: 600;
    color: var(--color-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    background-color: var(--color-light);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--color-text);
}

/* Footer */
.footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--color-cyan);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--color-white);
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--color-cyan);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    font-size: 1.25rem;
}

.social-link:hover {
    background-color: var(--color-cyan);
    color: var(--color-dark);
}

.app-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.app-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--color-blue);
    color: var(--color-white);
    border-radius: var(--border-radius);
    font-weight: 600;
}

.app-badge:hover {
    background-color: var(--color-cyan);
    color: var(--color-dark);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    opacity: 0.8;
}

/* Admin Styles */
.admin-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 2rem 1rem;
}

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

.admin-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--color-white);
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
}

.admin-nav-link:hover,
.admin-nav-link.active {
    background-color: var(--color-blue);
}

.admin-content {
    padding: 2rem;
    background-color: var(--color-light);
}

.admin-header {
    background-color: var(--color-white);
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

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

.stat-card {
    background-color: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

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

.stat-label {
    color: var(--color-gray);
    font-size: 0.875rem;
    text-transform: uppercase;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-cyan) 100%);
    position: relative;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
}

.login-box {
    background-color: var(--color-white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 1;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--color-blue);
}

/* Tables */
.table {
    width: 100%;
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

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

.table th {
    background-color: var(--color-dark);
    color: var(--color-white);
    font-weight: 600;
}

.table tr:hover {
    background-color: var(--color-light);
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 3rem 0;
    }

    .section {
        padding: 2rem 0;
    }

    .grid {
        gap: 1rem;
    }

    .admin-container {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        display: none;
    }

    .btn-group {
        flex-direction: column;
    }

    .screenshots {
        flex-direction: column;
        align-items: center;
    }
}
