/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 0;
    background: rgba(26, 28, 32, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 246, 255, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo img {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 0 10px rgba(0, 246, 255, 0.5));
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 4px;
}

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

.nav a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav a:hover,
.nav a.active {
    color: var(--color-cyan);
}

/* Hero Section */
.profiles-hero {
    position: relative;
    padding: 160px 0 60px;
    text-align: center;
    overflow: hidden;
}

.profiles-hero .hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 246, 255, 0.05) 0%, transparent 50%),
                linear-gradient(225deg, rgba(138, 43, 226, 0.05) 0%, transparent 50%);
}

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

.profiles-hero .hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 1rem;
}

.profiles-hero .hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

/* Search Section */
.search-section {
    padding: 40px 0;
    background: rgba(0, 0, 0, 0.2);
}

.search-form {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
}

.search-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.search-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-field label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.search-field-main {
    flex: 1;
    min-width: 250px;
}

.search-field-button {
    justify-content: flex-end;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    z-index: 1;
}

.search-field input,
.search-field select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    min-width: 150px;
}

.input-with-icon input {
    padding-left: 2.8rem;
}

.search-field input:focus,
.search-field select:focus {
    outline: none;
    border-color: rgba(0, 246, 255, 0.5);
    box-shadow: 0 0 10px rgba(0, 246, 255, 0.2);
}

.search-field input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.search-field select option {
    background: #1a1c20;
    color: #fff;
}

/* ELO Fields - Hidden by default */
.elo-field {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.elo-field.visible {
    display: flex;
    opacity: 1;
}

.elo-field input {
    width: 120px;
}

/* Results Section */
.results-section {
    padding: 60px 0;
    min-height: 400px;
}

.results-header {
    margin-bottom: 2rem;
}

.results-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
}

.no-results {
    text-align: center;
    padding: 80px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
}

.no-results i {
    font-size: 4rem;
    color: rgba(0, 246, 255, 0.3);
    margin-bottom: 1.5rem;
}

.no-results h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.no-results p {
    color: rgba(255, 255, 255, 0.5);
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.player-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.25rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.player-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(0, 246, 255, 0.3);
    transform: translateY(-3px);
}

.player-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(0, 246, 255, 0.3);
}

.player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-avatar .avatar-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(0, 246, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 246, 255, 0.5);
    font-size: 1.5rem;
}

.player-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.player-name {
    font-weight: 600;
    color: #fff;
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-date {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.player-date i {
    margin-right: 0.4rem;
    color: rgba(0, 246, 255, 0.5);
}

.player-elo {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: #00f6ff;
}

.player-elo i {
    margin-right: 0.4rem;
    color: #ffd700;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.pagination-btn,
.pagination-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.pagination-btn:hover,
.pagination-num:hover {
    background: rgba(0, 246, 255, 0.1);
    border-color: rgba(0, 246, 255, 0.3);
    color: #fff;
}

.pagination-num.active {
    background: linear-gradient(135deg, rgba(0, 246, 255, 0.2) 0%, rgba(138, 43, 226, 0.2) 100%);
    border-color: rgba(0, 246, 255, 0.5);
    color: #00f6ff;
}

.pagination-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-ellipsis {
    color: rgba(255, 255, 255, 0.4);
    padding: 0 0.5rem;
}

/* CTA Section */
.cta {
    text-align: center;
    position: relative;
    padding: 80px 0;
}

.cta-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 246, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

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

.cta h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta p {
    color: var(--color-text-muted);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.5);
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(0, 246, 255, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-logo img {
    width: 40px;
    filter: drop-shadow(0 0 10px rgba(0, 246, 255, 0.5));
}

.footer-logo span {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 3px;
}

.footer p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .search-row {
        flex-direction: column;
    }

    .search-field {
        width: 100%;
    }

    .search-field input,
    .search-field select {
        width: 100%;
    }

    .elo-field input {
        width: 100%;
    }

    .search-field-button {
        width: 100%;
    }

    .search-field-button button {
        width: 100%;
    }

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