/*
Theme Name: CS2 Platform
Theme URI: https://example.com/cs2-platform
Author: Your Name
Author URI: https://example.com
Description: A WordPress theme for CS2 competitive platform, similar to Faceit
Version: 2.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cs2-platform
Tags: cs2, gaming, competitive, esports, platform

*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-orange: #ff5500;
    --primary-cyan: #00f5ff;
    --primary-purple: #a855f7;
    --primary-yellow: #fbbf24;
    --dark-bg: #0a0a0a;
    --card-bg: #141414;
    --card-hover: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --border-color: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Inter', 'Roboto', 'Segoe UI', sans-serif;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--dark-bg);
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 85, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(0, 245, 255, 0.05) 0%, transparent 50%);
}

/* Header Styles */
header {
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.95) 0%, rgba(10, 10, 10, 0.8) 100%);
    color: var(--text-primary);
    padding: 1.25rem 0;
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: 900;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.05em;
}

.nav-logo span {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-yellow) 50%, var(--primary-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    position: relative;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-links a.active {
    color: var(--text-primary);
    background: linear-gradient(135deg, rgba(255, 85, 0, 0.2) 0%, rgba(0, 245, 255, 0.1) 100%);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-orange), var(--primary-cyan));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 70%;
}

/* Main Content */
main {
    max-width: 1400px;
    margin: 2.5rem auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #141414 0%, #0a0a0a 100%);
    color: var(--text-primary);
    padding: 5rem 3rem;
    border-radius: 24px;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-orange), var(--primary-cyan), var(--primary-purple));
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 85, 0, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 80% 50%, rgba(0, 245, 255, 0.15) 0%, transparent 60%);
    animation: float-orb 8s ease-in-out infinite;
}

@keyframes float-orb {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1.1;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-yellow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.35rem;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-orange) 0%, #ff7b33 100%);
    color: var(--text-primary);
    padding: 1.1rem 2.8rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px rgba(255, 85, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 50px rgba(255, 85, 0, 0.6);
}

/* Section Styles */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.8rem;
    color: var(--text-primary);
    font-weight: 800;
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 28px;
    background: linear-gradient(180deg, var(--primary-orange), var(--primary-cyan));
    border-radius: 2px;
}

/* Matches Section */
.matches-section {
    margin-bottom: 4rem;
}

.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 1.5rem;
}

.match-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.75rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.match-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-orange), var(--primary-cyan), var(--primary-purple));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.match-card:hover {
    background: var(--card-hover);
    transform: translateY(-4px);
    border-color: rgba(255, 85, 0, 0.3);
}

.match-card:hover::before {
    opacity: 1;
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.match-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.match-status {
    padding: 0.4rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.match-status.live {
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.2), rgba(255, 85, 0, 0.2));
    color: #ff4757;
    border: 1px solid rgba(255, 71, 87, 0.3);
    animation: pulse-live 2s ease-in-out infinite;
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.match-status.pending {
    background: rgba(251, 191, 36, 0.15);
    color: var(--primary-yellow);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.match-status.completed {
    background: rgba(46, 213, 115, 0.15);
    color: #2ed573;
    border: 1px solid rgba(46, 213, 115, 0.3);
}

.match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

.team {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.team:last-child {
    flex-direction: row-reverse;
    text-align: right;
}

.team-logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-weight: 900;
    font-size: 1.4rem;
    box-shadow: 0 4px 20px rgba(255, 85, 0, 0.3);
}

.team-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.team-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.team-elo {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.vs {
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--text-secondary);
    opacity: 0.5;
}

.match-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.match-map {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.match-map::before {
    content: '🗺️';
}

.match-prize {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-yellow);
    font-weight: 700;
    font-size: 0.95rem;
}

.match-prize::before {
    content: '💰';
}

/* Teams and Players Section */
.matches-grid.teams-grid,
.matches-grid.players-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.team-card,
.player-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.team-card::before,
.player-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-purple), var(--primary-cyan));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-card:hover,
.player-card:hover {
    background: var(--card-hover);
    transform: translateY(-4px);
    border-color: rgba(168, 85, 247, 0.3);
}

.team-card:hover::before,
.player-card:hover::before {
    opacity: 1;
}

.team-avatar,
.player-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: var(--text-primary);
    font-weight: 900;
    font-size: 2rem;
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.4);
}

.team-name-large,
.player-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.team-stats,
.player-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

/* Register Section */
.register-section {
    margin-bottom: 3rem;
}

.register-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid var(--border-color);
    max-width: 500px;
    margin: 0 auto;
}

.register-form .form-group {
    margin-bottom: 1.5rem;
}

.register-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

.register-form input {
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--dark-bg);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.register-form input:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(255, 85, 0, 0.2);
}

.register-form .submit-btn {
    width: 100%;
    padding: 1.1rem;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, var(--primary-orange) 0%, #ff7b33 100%);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.register-form .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 85, 0, 0.5);
}

/* Footer */
footer {
    background: linear-gradient(180deg, var(--card-bg) 0%, var(--dark-bg) 100%);
    color: var(--text-primary);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.footer-brand span {
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-desc {
    color: var(--text-secondary);
    line-height: 1.7;
}

.footer-section h4 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-orange);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 1rem;
        gap: 1.25rem;
    }
    
    .nav-links {
        gap: 0.25rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero {
        padding: 3.5rem 1.5rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .matches-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .team {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .team:last-child {
        flex-direction: column;
    }
    
    .match-teams {
        flex-direction: column;
        gap: 1rem;
    }
    
    .register-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    main {
        padding: 0 1rem;
    }
    
    nav {
        padding: 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .nav-links a {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
}