/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Mobile Navigation - Hidden on Desktop */
.mobile-nav {
    display: none;
}

/* Performance optimizations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

:root {
    --primary-dark: #0a0f1a;
    --primary-darker: #16213e;
    --primary-light: #1a2332;
    --accent-orange: #ff6b35;
    --accent-yellow: #ffd23f;
    --accent-gold: #ff9f40;
    --warm-orange: #ff8c42;
    
    --navy-blue: #070922; /*#101656;*/
    --dark-orange: #ff6f00;
    --black: #000000;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --dark-gray: #333333;
    --gradient-primary: linear-gradient(135deg, var(--accent-orange), var(--warm-orange));
    --gradient-secondary: linear-gradient(45deg, #040311 0%, #070922 100%); /*#14152a; #040311; #070922;*/
    /*linear-gradient(45deg, #040311 0%, #070922 100%);*/
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.2);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Ana Renkler - Koyu Lacivert Tema */
  
  /* Gradient Renkler * /

  --gradient-dark: linear-gradient(135deg, var(--primary-dark), var(--primary-darker));
  --gradient-accent: linear-gradient(45deg, var(--accent-orange), var(--accent-yellow));
  --gradient-warm: linear-gradient(135deg, var(--accent-yellow), var(--accent-gold));
  
  /* Metin Renkleri */
  --text-primary: #ffffff;
  --text-secondary: #b8b8b8;
  --text-muted: #888888;
  --text-accent: var(--accent-yellow);
  
  /* Arka Plan Renkleri */
  --bg-primary: var(--primary-dark);
  --bg-secondary: var(--primary-darker);
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-hover: rgba(255, 255, 255, 0.1);
  
  /* Border ve Shadow */
  --border-radius: 12px;
  --border-radius-small: 8px;
  --border-radius-large: 20px;
  --shadow-small: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-large: 0 8px 32px rgba(0, 0, 0, 0.5);
  
  /* Transition */
  --transition-fast: all 0.2s ease;
  --transition-normal: all 0.3s ease;
  --transition-slow: all 0.5s ease;
  
  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-xxl: 48px;
  
  /* Font Sizes */
  --font-xs: 12px;
  --font-sm: 14px;
  --font-md: 16px;
  --font-lg: 18px;
  --font-xl: 24px;
  --font-xxl: 32px;
  --font-title: 48px;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--gradient-secondary);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-spinner {
    text-align: center;
}

.loading-progress-container {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin: 20px auto 0;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--dark-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Header */
.header {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--dark-orange);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.logo span {
    font-weight: 300;
    letter-spacing: -1px;
}

.logo span strong {
    font-weight: 900;
}

.logo i {
    color: var(--dark-orange);
    font-size: 2rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    margin-right: -2px;
}

.nav {
    display: flex;
    align-items: center;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 3px 0;
    transition: var(--transition);
}

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

.nav-link {
    border: 2px solid transparent;
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-dark);
    border-color: var(--accent-orange);
    background: var(--gradient-primary);
    transform: translateY(-2px);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-toggle {
    background: var(--gradient-primary);
    border: none;
    color: var(--white);
    padding: 8px 15px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.lang-toggle:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Main Content */
.main {
    margin-top: 90px;
    min-height: 400px;
}

@media (max-width: 768px) {
    .main {
        margin-top: 80px;
        min-height: calc(100vh - 80px);
    }
}

@media (max-width: 480px) {
    .main {
        margin-top: 20px;
        min-height: calc(100vh - 340px);
    }
}

.page {
    display: none;
    padding: 0px 0px 20px 0px;
}

.page.active {
    display: block;
}

.page-header {
    text-align: center;
    margin-bottom: 15px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.page-title i {
    color: var(--dark-orange);
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 0, 0, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #ff0000;
    font-weight: 600;
    font-size: 0.9rem;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #02ff00;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Sport Filter */
.sport-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.sport-select {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--dark-orange);
    color: var(--white);
    padding: 12px 20px;
    border-radius: var(--border-radius);
    font-size: 1rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.sport-select option {
    background: var(--navy-blue);
    color: var(--white);
}

/* Matches Grid */
.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 10px;
}

@media (min-width: 1200px) {
    .matches-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .matches-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.match-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 10px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 65px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.match-card.live {
    animation: pulseGlow 2s infinite;
    border-color: #ff0000;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
        border-color: #ff0000;
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 0, 0, 0.6);
        border-color: #ff4444;
    }
    100% {
        box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
        border-color: #ff0000;
    }
}

.match-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--dark-orange);
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.match-category {
    color: var(--primary-dark);
    border-color: var(--accent-orange);
    border: 2px solid transparent;
    background: var(--gradient-primary);
    padding: 5px 12px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.load-more {
    cursor: pointer;
    display: none;
    text-align: center;
    color: var(--primary-dark);
    border-color: var(--accent-orange);
    border: 2px solid transparent;
    background: var(--gradient-primary);
    padding: 5px 12px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.match-time {
    color: var(--dark-orange);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.match-time .live-dot {
    width: 6px;
    height: 6px;
    background: #02ff00;
    border-radius: 50%;
    animation: pulse 2s infinite;
}


.match-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0px 0px 0px;
    gap: 10px;
}

.team {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.team:first-child {
    justify-content: flex-start;
}

.team:last-child {
    justify-content: flex-end;
}

.team-badge {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.team-badge-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-badge-placeholder i {
    color: var(--white);
    font-size: 1.2rem;
}

.team-name {
    font-weight: 600;
    font-size: 13px;
    flex: 1;
   

}

.awayteam{
    text-align: right;
}

.vs {
    color: var(--dark-orange);
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 15px;
}

.match-score {
    color: var(--primary-dark);
    border-color: var(--accent-orange);
    border: 2px solid transparent;
    background: var(--gradient-primary);
    padding: 5px 8px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    min-width: 50px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.match-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: auto;
    padding-top: 4px;
}

.match-status {
    display: flex;
    align-items: center;
}

.live-status {
    color: #ff0000;
    font-weight: 600;
    font-size: 0.8rem;
    animation: pulse 2s infinite;
}

.upcoming-status {
    color: var(--dark-orange);
    font-weight: 600;
    font-size: 0.8rem;
}

.match-sources {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.source-tag {
    background: rgba(255, 111, 0, 0.2);
    color: var(--dark-orange);
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.match-poster-container {
    margin: 10px 0;
}

.match-poster {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Sports Grid */
.sports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.sport-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.sport-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--dark-orange);
}

.sport-icon {
    font-size: 3rem;
    color: var(--dark-orange);
    margin-bottom: 15px;
}

.sport-name {
    font-size: 1.2rem;
    font-weight: 600;
}

/* No Matches */
.no-matches {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.7);
}

.no-matches i {
    font-size: 4rem;
    color: var(--dark-orange);
    margin-bottom: 20px;
}

.no-matches h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    padding: 0px;
    width: 70vw;
    background: var(--gradient-secondary);
    border-radius: var(--border-radius);
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    border: 2px solid var(--dark-orange);
}

.stream-content {
    max-width: 95vw;
    max-height: 95vh;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 0px;
}

.match-info {
    margin-bottom: 30px;
}

.streams-container {
    display: grid;
    gap: 15px;
}

.stream-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.stream-item:hover {
    border-color: var(--dark-orange);
    background: rgba(255, 111, 0, 0.1);
}

.stream-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.stream-number {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.stream-quality {
    background: var(--dark-orange);
    color: var(--white);
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

.stream-language {
    color: var(--white);
    font-weight: 500;
}

.stream-player-container {
    margin-bottom: 10px;
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.stream-player-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*border-radius: var(--border-radius);*/
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.9);
    border-top: 2px solid var(--dark-orange);
    padding: 40px 0;
    
}

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

.footer-section h3,
.footer-section h4 {
    color: var(--dark-orange);
    margin-bottom: 15px;
}

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

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

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--dark-orange);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }

    .header .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 15px;
        flex-wrap: nowrap;
        gap: 10px;
        position: relative;
    }

    .logo {
        font-size: 1.1rem;
        flex-shrink: 0;
        white-space: nowrap;
        min-width: 0;
        order: 1;
    }
    
    .logo span {
        font-weight: 300;
        letter-spacing: -1px;
    }
    
    .logo span strong {
        font-weight: 900;
    }

    .logo i {
        font-size: 1.3rem;
    }
    
    .logo-icon {
        width: 29px;
        height: 29px;
        object-fit: contain;
        margin-right: -2px;
    }

    .nav {
        display: none;
        align-items: center;
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }

    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        padding: 20px;
        transform: translateY(-100%);
        transition: var(--transition);
        border-top: 2px solid var(--dark-orange);
        z-index: 999;
        display: flex;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    /* Mobile Navigation */
    .mobile-nav {
        margin-top: 100px;
        display: block;
        background: var(--navy-blue);
        border-bottom: 2px solid var(--dark-orange);
        padding: 0;
    }

    .mobile-nav-menu {
        display: flex;
        list-style: none;
        margin: 0;
        padding: 0;
        justify-content: space-around;
        align-items: center;
    }

    .mobile-nav-link {
        display: block;
        padding: 15px 20px;
        color: var(--white);
        text-decoration: none;
        font-weight: 500;
        font-size: 0.9rem;
        text-align: center;
        flex: 1;
        transition: all 0.3s ease;
        border-radius: var(--border-radius);
        position: relative;
        margin: 5px;
    }

    .mobile-nav-link:hover,
    .mobile-nav-link.active {
        color: var(--black);
        background: var(--gradient-primary);
        transform: translateY(-2px);
    }

    .nav-toggle {
        display: flex;
        flex-shrink: 0;
        order: 2;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .header-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
        order: 3;
    }

    .lang-toggle {
        padding: 5px 10px;
        font-size: 0.8rem;
    }

    .page-title {
        font-size: 1.8rem;
    
        gap: 8px;
    }

    .modal-content {
        width: 95vw;
        margin: 0px;
        max-width: calc(100vw - 40px);
    }

    .stream-content {
        width: 100vw;
        max-width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
    }

    .team-badge {
        width: 45px;
        height: 45px;
    }

    .team-badge-placeholder {
        width: 45px;
        height: 45px;
    }

    .team-name {
        flex: 1;

    }
    
    .awayteam{
        text-align: right;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .header .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px 10px;
        position: relative;
    }

    .logo {
        font-size: 1rem;
        order: 1;
    }
    
    .logo span {
        font-weight: 300;
        letter-spacing: -1px;
    }
    
    .logo span strong {
        font-weight: 900;
    }

    .logo i {
        font-size: 1.2rem;
    }
    
    .logo-icon {
        width: 26px;
        height: 26px;
        object-fit: contain;
        margin-right: -2px;
    }

    .lang-toggle {
        padding: 4px 8px;
        font-size: 0.8rem;
    }

    .nav-toggle {
        padding: 2px;
        margin-left: 10px;
        order: 2;
    }

    .nav-toggle span {
        width: 20px;
        height: 2px;
    }

    .header-actions {
        gap: 8px;
        order: 3;
    }

    .match-card {
        padding: 10px;
        min-height: 60px;
    }

    .match-teams {
        flex-direction: row;
        gap: 8px;
        justify-content: space-between;
        align-items: center;
    }

    .vs {
        margin: 0 8px;
        font-size: 1rem;
    }

    .team {
        justify-content: flex-start;
        flex: 1;
        min-width: 0;
        gap: 6px;
    }

    .team:first-child {
        justify-content: flex-start;
    }

    .team:last-child {
        justify-content: flex-end;
    }

    .team-name {
        font-size: 0.85rem;
        font-weight: 600;
        flex: 1;
  
    }

    .match-score {
        font-size: 0.8rem;
        padding: 3px 6px;
        min-width: 35px;
        flex-shrink: 0;
    }

    .team-badge {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }

    .team-badge-placeholder {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }

    .team-badge-placeholder i {
        font-size: 1rem;
    }
}

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

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

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* Touch Gestures */
.page {
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

.match-card {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-20 { margin-bottom: 20px; }
.mt-20 { margin-top: 20px; }
.hidden { display: none !important; }
.visible { display: block !important; }

/* Loading States */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Smooth Transitions */
.page {
    transition: opacity 0.3s ease-in-out;
}

.page:not(.active) {
    opacity: 0;
    pointer-events: none;
}

.page.active {
    opacity: 1;
    pointer-events: auto;
}

/* Contact Modal Styles */

.contact-modal-btn {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  background: linear-gradient(135deg, #ff6b35, #ff8c42);
  color: #000;
  border: none;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  justify-content: center;
}

.contact-modal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.contact-modal-title {
  text-align: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin-bottom: 30px;
  margin-top: 20px;
}

.contact-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-option {
 max-width: 450px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: #0d1037;
  border-radius: var(--border-radius);
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.contact-option:hover {
  border-color: var(--accent-orange);
  background: #2e3685;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.contact-option-icon {
  font-size: var(--font-xl);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 50%;
  color: var(--primary-dark);
}

.contact-option-content {
  flex: 1;
}

.contact-option-title {
  font-weight: 600;
  font-size: var(--font-md);
  margin-bottom: var(--spacing-xs);
}

.contact-option-description {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.contact-option-arrow {
  font-size: var(--font-lg);
  color: var(--accent-orange);
}


.search-container {
  width: 100%;
  max-width: 500px;
  position: relative;
  margin-top: 2px;
}

.search-input {
  width: 100%;
  padding: var(--spacing-md);
  background: var(--bg-card);
  border: 2px solid #a95c40;
  border-radius: var(--border-radius-large);
  color: var(--text-primary);
  font-size: var(--font-md);
  transition: var(--transition-normal);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-orange);
  background: var(--bg-secondary);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-btn {
  position: absolute;
  right: var(--spacing-sm);
  top: 50%;
  transform: translateY(-50%);
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--border-radius-small);
  padding: var(--spacing-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.search-btn:hover {
  transform: translateY(-50%) scale(1.1);
  background: var(--accent-orange);
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3);
}

.search-btn:active {
  transform: translateY(-50%) scale(0.95);
}

/* Search Preview Styles */
.search-preview {
  max-width: 390px;
  width: 90vw;
  position: absolute;
  top: 100%;
  right: 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border: 2px solid rgba(255, 165, 0, 0.3);
  border-radius: var(--border-radius);
  box-shadow: 0 20px 40px rgba(255, 165, 0, 0.2), 0 0 0 1px rgba(255, 165, 0, 0.1);
  z-index: 1000;
  max-height: 350px;
  overflow-y: auto;
  display: none;
  margin-top: 4px;
  backdrop-filter: blur(10px);
}

.search-preview .match-card{
    margin-top: 15px;    
}



