/* MoneyLine Wrestling - Modern CSS Stylesheet */

/* CSS Variables */
:root {
    --primary-color: #e63946;    /* Coral Red - wrestling energy */
    --secondary-color: #1e293b;  /* Dark Navy - professional */
    --accent-color: #fbbf24;       /* Gold - premium */
    --success-color: #22c55e;       /* Green - win rate */
    --warning-color: #ffc107;       /* Yellow - average */
    --danger-color: #dc3545;        /* Red - poor */
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --text-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

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

/* Header */
.header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2d3748 100%);
    color: var(--text-white);
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s;
}

.logo:hover {
    transform: scale(1.05);
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.nav a:hover,
.nav a.active {
    background-color: rgba(255,255,255,0.1);
}

/* Main Content */
.main {
    min-height: calc(100vh - 200px);
    padding: 3rem 0;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff6b6b 100%);
    color: var(--text-white);
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-highlight {
    background: rgba(255,255,255,0.15);
    padding: 2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* CTA Buttons */
.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--text-white);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s;
    border: 2px solid transparent;
}

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

.cta-button.large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

.cta-button.secondary {
    background-color: transparent;
    color: var(--text-white);
    border-color: rgba(255,255,255,0.3);
}

.cta-button.secondary:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Promotions Section */
.promotions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.promotion-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 3px solid transparent;
    transition: all 0.3s;
}

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

.promotion-card.wwe {
    border-color: #0073e6;
}

.promotion-card.aew {
    border-color: #ff6b00;
}

.promotion-card h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.promotion-count {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 1rem 0;
}

/* Wrestler Profile */
.wrestler-profile {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .wrestler-profile {
        grid-template-columns: 1fr;
    }
}

.wrestler-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #374151 100%);
    color: var(--text-white);
    padding: 2rem;
    border-radius: 12px 12px 0 0;
    margin-bottom: 2rem;
}

.wrestler-name {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.wrestler-name h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
}

.promotion-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.promotion-badge.promotion-wwe {
    background: #0073e6;
}

.promotion-badge.promotion-aew {
    background: #ff6b00;
}

.promotion-badge.promotion-unknown {
    background: var(--text-light);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    border-left: 4px solid var(--primary-color);
}

.stat-card h3 {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.record {
    font-size: 2.5rem;
    font-weight: 700;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.wins { color: var(--success-color); }
.losses { color: var(--danger-color); }
.draws { color: var(--text-light); }

.win-rate {
    font-size: 3rem;
    font-weight: 800;
}

.total-matches {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.stat-detail {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* Sections */
.section {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.section p {
    color: var(--text-dark);
    line-height: 1.7;
}

.section ul {
    margin: 1rem 0 1rem 1rem;
}

.section li {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

/* Wrestler Grid */
.wrestler-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.wrestler-card {
    display: block;
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s;
    border: 2px solid var(--border-color);
}

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

.wrestler-card-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.wrestler-card-stats {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.win-rate-badge,
.matches-badge {
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 500;
}

.win-rate-badge {
    background: #dcfce7;
    color: #166534;
}

.matches-badge {
    background: #e0f2fe;
    color: #1e40af;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.sidebar-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.search-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-results {
    display: none;
    margin-top: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.top-list {
    list-style: none;
}

.top-list li {
    margin-bottom: 0.5rem;
}

.top-list a {
    color: var(--text-dark);
    text-decoration: none;
    display: block;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background 0.2s;
}

.top-list a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2d3748 100%);
    color: var(--text-white);
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: var(--text-white);
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer p {
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.footer a {
    color: var(--text-white);
    text-decoration: none;
    margin: 0 0.5rem;
    transition: opacity 0.2s;
}

.footer a:hover {
    opacity: 1;
}

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

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

    .nav {
        display: none;
    }

    .stats-overview {
        grid-template-columns: 1fr;
    }

    .promotions {
        grid-template-columns: 1fr;
    }

    .wrestler-grid {
        grid-template-columns: 1fr;
    }
}
