/* components.css */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--gradient-gold);
    color: #000;
    box-shadow: var(--border-glow-gold);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.6);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--accent-purple);
    box-shadow: var(--border-glow);
}

.btn-outline:hover {
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.6);
}

.btn-block {
    width: 100%;
}

/* Cards (Glassmorphism) */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--border-glow);
    border-color: rgba(139, 92, 246, 0.5);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--bg-glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 50;
    display: flex;
    align-items: center;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(157, 78, 221, 0.5);
}

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

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

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

.nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-speed);
    position: relative;
    padding: 0.5rem 0;
}

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

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-gold);
    transition: width var(--transition-fast);
}

.nav a:hover::after, .nav a.active::after {
    width: 100%;
}

/* Dropdown Mega-Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1rem;
    min-width: 320px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5), 0 0 20px rgba(139, 92, 246, 0.3);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(10px);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    color: var(--text-primary) !important;
    text-decoration: none;
}

.dropdown-item::after {
    display: none !important;
}

.dropdown-item:hover {
    background: rgba(139, 92, 246, 0.15);
    transform: translateY(-2px);
}

.dropdown-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.dropdown-text h5 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.dropdown-text p {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Game Cards & Grid */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .game-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 2rem;
    }
}

.game-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
    display: block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.game-card:hover {
    transform: translateY(-8px) scale(1.03);
    border-color: var(--accent-purple);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4), 0 0 15px rgba(139, 92, 246, 0.2);
}

.game-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s ease;
    display: block;
}

.game-card:hover img {
    transform: scale(1.1);
}

.game-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(3px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1;
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.game-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.8rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
    z-index: 2;
    transition: transform 0.3s ease;
    margin: 0;
}

.game-card:hover .game-title {
    transform: translateY(100%);
}

.game-provider {
    color: var(--accent-gold);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    z-index: 2;
    position: relative;
    opacity: 0;
    transition: all 0.3s ease;
}

.game-card:hover .game-provider {
    opacity: 1;
}

.btn-play {
    background: var(--gradient-gold);
    color: #000;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.5);
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.game-card:hover .btn-play {
    transform: translateY(0);
}

.btn-play:hover {
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.8);
    transform: scale(1.05);
}

/* Game Filters */
.game-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.filter-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-primary);
    padding: 0.7rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
}

/* Form Elements */
.form-group {
    margin-bottom: var(--spacing-sm);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    transition: border-color var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

/* Floating Elements */
.floating-line {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #00B900;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(0, 185, 0, 0.4);
    z-index: 100;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

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

/* Game Badges */
.game-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.game-badge.hot { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.game-badge.new { background: linear-gradient(135deg, #f59e0b, #d97706); }
