/* ============================================
   Clubs Easy - Modern SaaS Stylesheet
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    --primary: #0a6cb9;
    --primary-dark: #085a9a;
    --primary-light: #e8f4fd;
    --accent: #25dbc5;
    --accent-dark: #1cb8a5;
    --accent-light: #e6faf7;
    --navy: #0B3558;
    --text: #476788;
    --text-light: #7a94ad;
    --bg: #F8F9FB;
    --bg-alt: #f0f4f8;
    --white: #FFFFFF;
    --border: #E5E7EB;
    --border-light: #F3F4F6;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Base ---------- */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Inter', sans-serif;
    color: var(--navy);
    font-weight: 600;
}

h1 { font-weight: 700; }
h2 { font-weight: 700; }

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

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

/* ---------- Navbar ---------- */
.navbar-modern {
    background: var(--white) !important;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    padding: 0.75rem 0;
    transition: var(--transition);
}

.navbar-modern .navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary) !important;
    letter-spacing: -0.5px;
}

.navbar-modern .navbar-brand span {
    color: var(--accent);
}

.navbar-modern .nav-link {
    color: var(--text) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-size: 0.95rem;
}

.navbar-modern .nav-link:hover,
.navbar-modern .nav-link.active {
    color: var(--primary) !important;
    background: var(--primary-light);
}

.navbar-modern .navbar-toggler {
    border: 1px solid var(--border);
    padding: 0.4rem 0.6rem;
}

.navbar-modern .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230B3558' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-user-name {
    color: var(--navy) !important;
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-nav-login {
    background: var(--primary);
    color: var(--white) !important;
    border-radius: var(--radius-sm);
    padding: 0.5rem 1.25rem !important;
    font-weight: 600;
    border: none;
}

.btn-nav-login:hover {
    background: var(--primary-dark);
    color: var(--white) !important;
    transform: translateY(-1px);
}

/* ---------- Buttons ---------- */
.btn {
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 0.5rem 1.25rem;
    transition: var(--transition);
    font-size: 0.95rem;
    border: none;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #0d7fd4 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(10, 108, 185, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    box-shadow: 0 6px 16px rgba(10, 108, 185, 0.35);
}

.btn-secondary {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-alt);
    color: var(--navy);
    border-color: var(--border);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #0da874 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.btn-success:hover {
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #dc3545 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.btn-danger:hover {
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.35);
}

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

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

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    border-radius: var(--radius-md);
}

.btn-sm {
    padding: 0.35rem 0.85rem;
    font-size: 0.85rem;
}

/* ---------- Cards ---------- */
.card {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    background: var(--white);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md) var(--radius-md) 0 0 !important;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    border-radius: 0 0 var(--radius-md) var(--radius-md) !important;
}

/* ---------- Forms ---------- */
.form-control,
.form-select {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.85rem;
    font-size: 0.95rem;
    transition: var(--transition);
    color: var(--navy);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10, 108, 185, 0.15);
}

.form-label {
    font-weight: 500;
    color: var(--navy);
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* ---------- Alerts ---------- */
.alert {
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 500;
    padding: 0.85rem 1.25rem;
}

.alert-success {
    background: var(--accent-light);
    color: #0d7a65;
}

.alert-danger {
    background: #fef2f2;
    color: #b91c1c;
}

.alert-warning {
    background: #fffbeb;
    color: #92400e;
}

.alert-info {
    background: var(--primary-light);
    color: var(--primary-dark);
}

/* ---------- Tables ---------- */
.table {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.table thead th {
    background: var(--bg);
    color: var(--navy);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border);
    padding: 0.85rem 1rem;
}

.table tbody td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
    border-color: var(--border-light);
}

.table tbody tr:hover {
    background: var(--bg);
}

/* ---------- Badges ---------- */
.badge {
    font-weight: 600;
    padding: 0.35em 0.7em;
    border-radius: 6px;
    font-size: 0.8rem;
}

.badge.bg-primary {
    background: var(--primary) !important;
}

.badge.bg-success {
    background: var(--success) !important;
}

.badge.bg-danger {
    background: var(--danger) !important;
}

.badge.bg-warning {
    background: var(--warning) !important;
    color: #fff;
}

/* ---------- Hero Section ---------- */
.hero-section {
    background: linear-gradient(135deg, #0B3558 0%, var(--primary) 50%, var(--accent) 100%);
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: var(--white);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(37, 219, 197, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 50%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    line-height: 1.7;
    max-width: 560px;
    font-weight: 400;
}

.hero-btn-primary {
    background: var(--white);
    color: var(--primary);
    border: none;
    padding: 0.85rem 2.25rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    color: var(--primary-dark);
    background: var(--white);
}

.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 0.78rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

.hero-stat-number {
    font-size: 2rem;
    font-weight: 800;
    display: block;
    color: var(--accent);
}

.hero-stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ---------- Feature Section ---------- */
.section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--white);
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--navy);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
    height: 100%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-light) 0%, #dbeffe 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
}

.feature-card h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text);
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.6;
}

/* ---------- How It Works ---------- */
.step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    margin: 0 auto 1.25rem;
    box-shadow: 0 4px 15px rgba(10, 108, 185, 0.3);
}

.step-connector {
    position: relative;
}

.step-connector::after {
    content: '';
    position: absolute;
    top: 24px;
    left: calc(50% + 30px);
    width: calc(100% - 60px);
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0.3;
}

/* ---------- Testimonial ---------- */
.testimonial-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
    height: 100%;
    transition: var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.testimonial-stars {
    color: var(--warning);
    margin-bottom: 1rem;
}

.testimonial-text {
    color: var(--text);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--navy);
}

.testimonial-role {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ---------- CTA Section ---------- */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    padding: 5rem 0;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 50%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 0 1.5rem;
}

.footer h5 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer a:hover {
    color: var(--accent);
}

.footer-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--white) !important;
}

.footer-brand span {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
    font-size: 0.85rem;
}

/* ---------- Contact Page ---------- */
.contact-info-card {
    background: linear-gradient(135deg, var(--primary) 0%, #0d7fd4 100%);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    height: 100%;
}

.contact-info-card h3 {
    color: var(--white);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ---------- Login Page ---------- */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg) 0%, var(--primary-light) 100%);
}

.login-card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
}

.login-card .card-body {
    padding: 2.5rem;
}

.login-logo {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary);
    text-align: center;
    margin-bottom: 0.5rem;
}

.login-logo span {
    color: var(--accent);
}

/* ---------- Dashboard Cards ---------- */
.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.stat-icon-primary {
    background: var(--primary-light);
    color: var(--primary);
}

.stat-icon-accent {
    background: var(--accent-light);
    color: var(--accent-dark);
}

.stat-icon-success {
    background: #ecfdf5;
    color: var(--success);
}

.stat-icon-warning {
    background: #fffbeb;
    color: var(--warning);
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
}

/* ---------- Error Pages ---------- */
.error-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.error-code {
    font-size: 8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
}

/* ---------- Page Content Area ---------- */
.content-wrapper {
    padding: 2rem 0;
    min-height: calc(100vh - 72px - 200px);
}

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

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }
.animate-delay-6 { animation-delay: 0.6s; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .hero-stat-number {
        font-size: 1.5rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .step-connector::after {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.85rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

/* ---------- Utility ---------- */
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

.border-accent {
    border-color: var(--accent) !important;
}
