/* Base Styles & Variables */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #1e40af;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --light-bg: #f9fafb;
    --white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius: 0.5rem;
    --transition: all 0.3s ease;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.25rem;
}

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

/* Hide elements when user is logged in */
.hide-when-logged-in {
    display: block !important;
}

body.user-logged-in .hide-when-logged-in {
    display: none !important;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-current-plan {
    background-color: #6b7280;
    color: var(--white) !important;
    cursor: default;
}

.btn-current-plan:hover {
    background-color: #6b7280;
    color: var(--white) !important;
    transform: none;
    box-shadow: none;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Header & Navigation */
header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-color);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo img {
    height: 50px;
    margin-right: 0.75rem;
}

.nav-links {
    display: none;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-cta .btn {
    margin-left: 1rem;
}

.mobile-menu-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    display: block;
    z-index: 1001;
    padding: 0.5rem;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    touch-action: manipulation;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero {
    padding: 7rem 0 5rem;
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f0ff 100%);
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.cta-buttons .btn {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
}

.hero-image {
    max-width: 600px;
    margin: 0 auto;
    animation: float 6s ease-in-out infinite;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

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

/* Feature Image Sections */
.feature-image-section {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.feature-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
    .feature-image-section {
        max-width: 100%;
        margin: 2rem auto;
    }
}

@media (max-width: 480px) {
    .feature-image-section {
        padding: 0 0.5rem;
        margin: 1.5rem auto;
    }
}

/* Features Section */
.features {
    padding: 5rem 0;
    background-color: var(--white);
}

.features h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
}


.feature-card-large {
    padding: 2.5rem;
}

.feature-card-large p {
    font-size: 1.05rem;
    line-height: 1.7;
}

.feature-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
    font-size: 1.75rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

/* How It Works Section */
.how-it-works {
    padding: 5rem 0;
    background-color: var(--light-bg);
}

.how-it-works h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.section-tagline {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 3rem;
    letter-spacing: 0.02em;
}

.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 1;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50px;
    height: 100%;
    width: 2px;
    background-color: var(--border-color);
    transform: translateX(-50%);
    z-index: 0;
}

.step h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

/* School Search Highlight */
.school-search-highlight {
    margin-top: 4rem;
    padding: 3rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    border-radius: var(--border-radius);
    color: var(--white);
    text-align: center;
}

.school-search-highlight h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.highlight-intro {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
}

.highlight-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: left;
}

.highlight-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

.highlight-item i {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    display: block;
    color: #93c5fd;
}

.highlight-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.highlight-item p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .highlight-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .highlight-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* AI Features Section */
.ai-features {
    padding: 5rem 0;
    background-color: var(--white);
}

.ai-features h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.ai-features .section-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 3rem;
}

.ai-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.ai-card {
    background: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.ai-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.ai-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 1.75rem;
}

.ai-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.ai-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Pricing Page */
.pricing-hero {
    padding: 7rem 0 4rem;
    background: linear-gradient(135deg, #f0f7ff 0%, #dbeafe 100%);
    text-align: center;
}

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

.pricing-hero p {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 2rem;
}

.pricing-toggle {
    display: inline-flex;
    padding: 0.25rem;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    gap: 0.25rem;
}

.billing-toggle {
    border: none;
    background: transparent;
    padding: 0.65rem 1.25rem;
    border-radius: calc(var(--border-radius) - 0.1rem);
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.billing-toggle.active {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.pricing-section {
    padding: 4rem 0;
}

.pricing-section.pricing-athletes {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(37, 99, 235, 0.13) 100%);
    border-bottom: 1px solid rgba(37, 99, 235, 0.15);
}

.pricing-section.pricing-coaches {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.05) 0%, rgba(30, 64, 175, 0.16) 100%);
    border-top: 1px solid rgba(30, 64, 175, 0.14);
    border-bottom: 1px solid rgba(30, 64, 175, 0.14);
}

.pricing-section.pricing-scouts {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.05) 0%, rgba(15, 23, 42, 0.12) 100%);
}

.pricing-section h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2rem;
}

.pricing-subtitle {
    text-align: center;
    max-width: 760px;
    margin: -1.25rem auto 3rem;
    color: var(--text-light);
    font-size: 1.05rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.pricing-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.pricing-card.highlight {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.pricing-label {
    display: inline-block;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.1);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    margin: 1.5rem 0 0.75rem;
}

.pricing-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
}

.pricing-period {
    font-size: 1rem;
    color: var(--text-light);
}

.pricing-note {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-card ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.pricing-card ul li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.pricing-card .btn {
    width: 100%;
    text-align: center;
}

.pricing-card.highlight .btn-primary {
    box-shadow: var(--shadow-md);
}

/* CTA Banner */
.cta-banner {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    text-align: center;
}

.cta-banner h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.cta-banner p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

/* Footer */
footer {
    background-color: #1a1a2e;
    color: #fff;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.footer-logo img {
    height: 50px;
    margin-right: 0.75rem;
}

.footer-logo span {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.footer-column h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: #cbd5e1;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--white);
    padding-left: 5px;
}

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

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.social-links a.x-icon {
    font-size: 1.2rem;
    font-weight: bold;
    font-family: Arial, sans-serif;
}

/* Responsive Styles */
@media (max-width: 767px) {
    /* Mobile header adjustments */
    nav {
        padding: 0 1rem;
    }
    
    .logo {
        font-size: 0.9rem;
        max-width: calc(100% - 60px);
    }
    
    .logo img {
        height: 40px;
        margin-right: 0.5rem;
    }
    
    .logo span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Mobile menu active state - only on mobile */
    .nav-links.active {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--white);
        box-shadow: var(--shadow-lg);
        padding: 1.5rem;
        animation: slideDown 0.3s ease-out;
        z-index: 1000;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-links.active li {
        margin: 0;
        margin-bottom: 1rem;
        width: 100%;
    }
    
    .nav-links.active li a {
        display: block;
        padding: 0.75rem;
        text-align: center;
    }
    
    .nav-links.active .btn {
        width: 100%;
        margin: 0;
    }
}

@media (min-width: 640px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ai-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    /* iPad-specific styles */
    .mobile-menu-toggle {
        display: none;
    }
    
    .nav-links {
        display: flex !important;
    }
    
    .hero {
        padding: 8rem 0 5rem;
    }
    
    .hero-content {
        margin-bottom: 3rem;
    }
    
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .step:not(:last-child)::after {
        display: none;
    }
    
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
    
    .footer-bottom {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
    
    .social-links {
        margin-top: 0;
    }
}

@media (min-width: 1024px) {
    .mobile-menu-toggle {
        display: none;
    }
    
    .nav-links {
        display: flex !important;
    }
    
    .hero {
        padding: 9rem 0 6rem;
    }
    
    .hero-content {
        margin-bottom: 4rem;
    }
    
    .steps {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .step:not(:last-child)::after {
        height: 2px;
        width: 100%;
        top: 50%;
        left: 100%;
        transform: translateY(-50%);
    }
    
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 4rem;
    }
    
    .footer-bottom {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
    
    .social-links {
        margin-top: 0;
    }
}

@media (min-width: 1280px) {
    .hero {
        min-height: 100vh;
        display: flex;
        align-items: center;
    }
    
    .hero .container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 4rem;
    }
    
    .hero-content {
        text-align: left;
        margin: 0;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .cta-buttons {
        justify-content: flex-start;
    }
    
    .cta-buttons .btn {
        margin: 0;
    }
    
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .features-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 1s ease-in-out;
}

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

/* 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; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
