/* 🎨 MetaPhoenix Gaming - Components Styles */
/* Extracted from main styles.css for better organization and performance */

/* Navigation Components */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 107, 53, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.logo-img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(255, 107, 53, 0.6);
}

/* Language Selector Component */
.language-selector {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.language-dropdown {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--background-card);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 25px;
    padding: 8px 15px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.language-btn:hover {
    background: rgba(255, 107, 53, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
}

.language-options {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--background-card);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 15px;
    padding: 10px 0;
    min-width: 160px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    backdrop-filter: blur(10px);
}

.language-dropdown.active .language-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.language-option:hover {
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-color);
}

/* Button Components */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Card Components */
.game-card {
    background: var(--background-card);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 107, 53, 0.2);
    cursor: pointer;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.game-card:hover::before {
    opacity: 0.1;
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-primary);
    border-color: var(--primary-color);
}

/* Tournament Components */
.tournament-card {
    background: var(--background-card);
    border-radius: 15px;
    padding: 20px;
    border-left: 4px solid var(--accent-color);
    transition: all 0.3s ease;
    position: relative;
}

.tournament-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-secondary);
    border-left-color: var(--primary-color);
}

/* Notification Component */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--background-card);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 15px;
    padding: 15px 20px;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.fade-out {
    transform: translateX(100%);
    opacity: 0;
}

/* Audio Controls Component */
.audio-controls {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 15px;
    border: 1px solid rgba(255, 107, 53, 0.3);
    transition: all 0.3s ease;
    opacity: 0.8;
}

.audio-controls:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.2);
}

.audio-btn {
    background: var(--background-card);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.audio-btn:hover {
    background: rgba(255, 107, 53, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Form Components */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: var(--background-card);
    border: 2px solid rgba(255, 107, 53, 0.3);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.2);
}

.form-group.error input,
.form-group.error textarea {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.form-group.success input,
.form-group.success textarea {
    border-color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
}

/* Loading Spinner Component */
.btn-loading {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.btn.loading .btn-loading {
    display: inline-block;
}

.btn.loading .btn-text {
    opacity: 0.7;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Accessibility Components */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    transition: top 0.3s;
    z-index: 10000;
}

.skip-link:focus {
    top: 6px;
}

/* Focus Management */
.btn:focus-visible,
.language-option:focus,
.language-btn:focus,
.audio-btn:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }
    
    .language-option:hover,
    .language-option:focus {
        background: var(--primary-color);
        color: white;
    }
    
    .notification {
        border: 2px solid var(--primary-color);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .particle {
        display: none;
    }
} 