@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700;800&family=Rajdhani:wght@600;700&display=swap');

/* ============================================
   GLOBAL STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e9f44;
    --secondary-color: #1464b3;
    --accent-color: #ffd23f;
    --light-gray: #f3f8f2;
    --dark-gray: #1f2a33;
    --border-color: #EBEBEB;
    --success-color: #28a745;
    --danger-color: #dc3545;
}

body {
    font-family: 'Barlow', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-gray);
    background: linear-gradient(180deg, #f6fff5 0%, #f7fbff 50%, #fbfffb 100%);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Rajdhani', 'Barlow', sans-serif;
    letter-spacing: 0.01em;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* ============================================
   NAVIGATION BAR
   ============================================ */
.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.navbar-brand .logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--secondary-color);
    font-weight: 700;
}

.logo-image {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

.logo-text {
    font-family: 'Rajdhani', sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--dark-gray);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.btn-login {
    background-color: var(--primary-color);
    color: white !important;
    padding: 8px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-login:hover {
    background-color: #177f36;
}

.btn-signup {
    background-color: var(--secondary-color);
    color: white !important;
    padding: 8px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-signup:hover {
    background-color: #0f4f91;
}

.nav-user-menu {
    position: relative;
}

.nav-user-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-user-caret {
    font-size: 12px;
    line-height: 1;
}

.nav-user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 200px;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    padding: 8px;
    display: none;
    z-index: 200;
}

.nav-user-menu.open .nav-user-dropdown {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-dropdown-link {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--dark-gray);
    font-weight: 500;
}

.nav-dropdown-link:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

.nav-dropdown-danger {
    color: var(--danger-color);
}

.nav-dropdown-danger:hover {
    background-color: #fff2f2;
    color: var(--danger-color);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 221, 89, 0.32) 0%, rgba(255, 221, 89, 0) 42%),
        radial-gradient(circle at 86% 18%, rgba(11, 110, 199, 0.34) 0%, rgba(11, 110, 199, 0) 38%),
        linear-gradient(135deg, #0f7b31 0%, #1e9f44 46%, #1464b3 100%);
    color: white;
    padding: 100px 20px;
    text-align: center;
    margin-bottom: 40px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.12) 0,
        rgba(255, 255, 255, 0.12) 2px,
        transparent 2px,
        transparent 140px
    );
    opacity: 0.35;
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 36%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: #f2bf1b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 18px;
}

.btn-search {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
}

.btn-search:hover {
    background-color: #177f36;
}

/* ============================================
   SEARCH SECTION
   ============================================ */
.search-section {
    background-color: white;
    padding: 40px 20px;
    margin-bottom: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-section h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    color: var(--secondary-color);
}

.search-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
    align-items: start;
}

.search-form input,
.search-form select {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
}

.search-form input:focus,
.search-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 159, 68, 0.16);
}

.location-field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.location-help {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.popular-city-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.city-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #c8ddf2;
    background: #eef6ff;
    color: var(--secondary-color);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.city-chip-icon {
    font-size: 14px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    color: currentColor;
}

.city-chip-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.city-chip-label {
    line-height: 1;
}

.city-chip:hover,
.city-chip:focus-visible {
    outline: none;
    border-color: var(--primary-color);
    background: #e5f7ea;
    color: #0f7b31;
}

.btn-link-inline {
    border: none;
    background: transparent;
    color: var(--secondary-color);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
}

.btn-link-inline:hover,
.btn-link-inline:focus-visible {
    color: var(--primary-color);
    outline: none;
}

.location-auto-status {
    font-size: 12px;
    color: #53708d;
}

.location-auto-status.success {
    color: #12763a;
}

.location-auto-status.error {
    color: #a8302f;
}

/* ============================================
   FEATURED SPORTS SECTION
   ============================================ */
.featured-sports {
    padding: 60px 20px;
}

.featured-sports h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 36px;
    color: var(--secondary-color);
}

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

.sport-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.sport-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.sport-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.sport-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.sport-card p {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

.sport-card a {
    color: var(--primary-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.sport-card a:hover {
    color: #177f36;
}

/* ============================================
   WHY US SECTION
   ============================================ */
.why-us {
    background-color: var(--light-gray);
    padding: 60px 20px;
}

.why-us h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 36px;
    color: var(--secondary-color);
}

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

.feature {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.feature i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.feature p {
    color: #666;
    font-size: 14px;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials {
    padding: 60px 20px;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 36px;
    color: var(--secondary-color);
}

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

.testimonial {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--primary-color);
}

.testimonial .stars {
    font-size: 18px;
    margin-bottom: 15px;
}

.testimonial p {
    font-style: italic;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.8;
}

.testimonial h4 {
    color: var(--secondary-color);
    font-size: 16px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 50px 20px 20px;
}

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

.footer-section h4 {
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-section p {
    font-size: 14px;
    opacity: 0.9;
}

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

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

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

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

.profile-page {
    padding: 48px 20px 70px;
}

.profile-card {
    max-width: 760px;
    margin: 0 auto;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 32px;
}

.profile-card h2 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.profile-card p {
    color: #5f6773;
    margin-bottom: 24px;
}

.profile-details {
    display: grid;
    gap: 18px;
}

.profile-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.profile-detail-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background-color: #f9fbfd;
    border: 1px solid #e4ebf1;
    border-radius: 12px;
}

.profile-detail-item.full {
    grid-column: 1 / -1;
}

.profile-detail-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
}

.profile-detail-value {
    font-size: 16px;
    color: var(--dark-gray);
    word-break: break-word;
}

.profile-form {
    display: grid;
    gap: 18px;
}

.profile-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.profile-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-form-group.full {
    grid-column: 1 / -1;
}

.profile-form-group label {
    font-weight: 600;
    color: var(--dark-gray);
}

.profile-form-group input,
.profile-form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d8dde5;
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
}

.profile-form-group textarea {
    min-height: 110px;
    resize: vertical;
}

.profile-form-group input:focus,
.profile-form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 159, 68, 0.16);
}

.profile-note,
.profile-status {
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 14px;
}

.profile-note {
    background-color: #fff6df;
    color: #8a6500;
}

.profile-status {
    display: none;
}

.profile-status.error {
    display: block;
    background-color: #fff2f2;
    color: #a61d24;
}

.profile-status.success {
    display: block;
    background-color: #eefbf1;
    color: #176739;
}

.profile-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-secondary {
    background-color: #edf2f7;
    color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: #dfe8f3;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .navbar-menu {
        gap: 15px;
        flex-wrap: wrap;
    }

    .nav-user-dropdown {
        right: auto;
        left: 0;
    }

    .hero-content h2 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .search-form {
        grid-template-columns: 1fr;
    }

    .featured-sports h2,
    .why-us h2,
    .testimonials h2 {
        font-size: 28px;
    }

    .sports-grid,
    .features-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .profile-card {
        padding: 22px;
    }

    .profile-detail-grid,
    .profile-form-grid {
        grid-template-columns: 1fr;
    }
}
