:root {
    --primary-color: #6c5ce7;
    --secondary-color: #00b894;
    --background-color: #0a0a1a;
    --card-bg: #1a1a2e;
    --text-primary: #ffffff;
    --text-secondary: #c0c0c0;
    --gradient: linear-gradient(135deg, #6c5ce7 0%, #00b894 100%);
    
    /* Additional colors for consistency */
    --light-bg: #f8f9fa;
    --dark-text: #2c3e50;
    --accent-blue: #3498db;
    --accent-green: #27ae60;
    --accent-red: #e74c3c;
    --border-color: rgba(255, 255, 255, 0.1);
    --card-hover-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Header Styles */
header {
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 5rem 5%;
    background: radial-gradient(circle at top right, rgba(108, 92, 231, 0.1), transparent);
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.primary-btn, .secondary-btn {
    padding: 1rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.primary-btn {
    background: var(--gradient);
    border: none;
    color: white;
}

.secondary-btn {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.primary-btn:hover, .secondary-btn:hover {
    transform: translateY(-2px);
}

/* About Section */
.about {
    padding: 5rem 5%;
    background: var(--card-bg);
}

.about-content {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.about-image img {
    max-width: 400px;
    border-radius: 10px;
}

.about-text {
    flex: 1;
}

.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    background: rgba(108, 92, 231, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
}

/* Match Format Section */
.match-format {
    padding: 5rem 5%;
}

.format-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.format-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.format-card:hover {
    transform: translateY(-5px);
}

.format-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.format-card ul {
    list-style: none;
}

.format-card li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* Bidding Section */
.bidding {
    padding: 5rem 5%;
    background: var(--card-bg);
}

.bidding-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
}

.available-matches {
    margin-top: 2rem;
}

.match-card {
    background: rgba(10, 10, 26, 0.5);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.match-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.1);
}

.match-card.selected {
    border: 2px solid var(--primary-color);
}

.match-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.match-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.match-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.match-details {
    margin-bottom: 1rem;
}

.match-type {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(108, 92, 231, 0.1);
    border-radius: 15px;
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-top: 0.5rem;
}

.pro-details {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pro-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

.pro-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pro-info {
    flex: 1;
}

.pro-username {
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.pro-stats {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.current-queue {
    background: rgba(10, 10, 26, 0.5);
    padding: 2rem;
    border-radius: 10px;
}

.selected-match {
    margin-bottom: 2rem;
}

.bids-list {
    margin: 2rem 0;
}

.queue-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bid-amount {
    font-weight: 600;
    color: var(--secondary-color);
}

.bid-form {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bid-input {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.bid-input input {
    flex: 1;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: var(--text-primary);
    font-size: 1rem;
}

.bid-input input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.min-bid-note {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.bid-status {
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.bid-status.pending {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.bid-status.accepted {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.bid-status.rejected {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* Footer */
footer {
    background: var(--card-bg);
    padding: 3rem 5% 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

/* Improved Media Queries for Better Responsive Design */
@media (max-width: 1024px) {
    .format-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bidding-content {
        flex-direction: column;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .about-content {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        padding: 6rem 5% 3rem;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero iframe {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .format-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: var(--background-color);
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
        align-items: stretch;
    }
    
    .nav-links.show {
        display: flex;
    }
    
    .dropdown-content {
        position: static;
        box-shadow: none;
        width: 100%;
        padding: 0;
        margin-left: 1rem;
    }
    
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-info {
        margin-top: 2rem;
    }
    
    .profile-content {
        flex-direction: column;
    }
    
    .match-history, .scheduled-matches {
        width: 100%;
    }
    
    footer {
        padding: 2rem 5%;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .primary-btn,
    .hero-buttons .secondary-btn {
        width: 100%;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .about h2, .match-format h2, .bidding h2 {
        font-size: 1.8rem;
    }
    
    .auth-box {
        padding: 1.5rem;
        width: 100%;
    }
}

/* Mobile Navigation Toggle Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
}

/* Center tables on mobile */
@media (max-width: 768px) {
    .table-responsive {
        width: 100%;
        overflow-x: auto;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero, .about, .match-format, .bidding {
    animation: fadeIn 1s ease-out;
}

/* Navigation Auth Buttons - Single Source of Truth */
.nav-links .nav-auth-btn {
    background: var(--gradient);
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    color: white !important;
    transition: all 0.3s ease;
    margin-left: 2rem;
    visibility: visible;
    opacity: 1;
    position: relative;
}

/* This class is no longer needed since buttons are visible by default */
.nav-links .nav-auth-btn.visible {
    visibility: visible;
    opacity: 1;
    position: relative;
}

/* Only the register button gets a different style */
.nav-links .register-btn.nav-auth-btn {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color) !important;
}

.nav-links .register-btn.nav-auth-btn:hover {
    background: var(--gradient);
    border: none;
    color: white !important;
}

/* Auth Section */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1rem 1rem;
    background: radial-gradient(circle at top right, rgba(108, 92, 231, 0.1), transparent);
}

.auth-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    position: relative;
    top: -3rem; /* Offset to account for header padding */
}

.auth-box {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-box h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.1);
}

.auth-box .primary-btn {
    width: 100%;
    margin-top: 1rem;
    padding: 0.8rem;
    font-size: 1rem;
}

.auth-link {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
}

.auth-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-link a:hover {
    text-decoration: underline;
}

.error-message {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.2);
    color: #ff6b6b;
    padding: 0.8rem 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Active nav link style */
.nav-links a.active {
    color: var(--primary-color);
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient);
    border-radius: 2px;
}

/* Profile Page Styles */
.profile-section {
    padding: 8rem 5% 5rem;
    min-height: 100vh;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    flex: 1;
}

.profile-info h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.profile-details {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.profile-role {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.profile-role.user {
    background: rgba(108, 92, 231, 0.2);
    color: var(--primary-color);
}

.profile-role.pro {
    background: rgba(0, 184, 148, 0.2);
    color: var(--secondary-color);
}

.profile-mmr, .profile-race {
    color: var(--text-secondary);
    font-size: 1rem;
}

.edit-profile-btn {
    padding: 0.8rem 1.5rem;
    background: var(--gradient);
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.edit-profile-btn:hover {
    transform: translateY(-2px);
}

.profile-content {
    margin-top: 2rem;
}

.profile-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.no-data {
    color: var(--text-secondary);
    font-style: italic;
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.match-history, .scheduled-matches {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.match-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bid-amount {
    color: var(--secondary-color);
    font-weight: 600;
    margin-left: 1rem;
}

.match-status, .bid-status {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-left: 1rem;
}

.match-status.scheduled, .bid-status.pending {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.match-status.completed, .bid-status.accepted {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.match-status.cancelled, .bid-status.rejected {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.bid-count {
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .profile-details {
        justify-content: center;
    }
    
    .match-history, .scheduled-matches {
        grid-template-columns: 1fr;
    }
}

/* Edit Profile Styles */
.password-section-title {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--primary-color);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

.form-text {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.success-message {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.2);
    color: #28a745;
    padding: 0.8rem 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    text-align: center;
}

input:disabled {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    cursor: not-allowed;
} 