/* Modern Gaming Theme CSS */
:root {
    /* Gaming Color Palette */
    --primary-color: #7c3aed;
    --primary-dark: #5b21b6;
    --secondary-color: #ec4899;
    --accent-color: #06b6d4;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    
    /* Dark Background Colors */
    --bg-dark: #0f0f23;
    --bg-darker: #050510;
    --bg-card: #1a1a2e;
    --bg-hover: #252540;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --text-muted: #718096;
    
    /* Neon Effects */
    --neon-purple: #a855f7;
    --neon-pink: #ec4899;
    --neon-cyan: #06b6d4;
}

/* Base Styles */
body {
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Dark mode override */
[data-bs-theme="dark"] {
    --bs-body-bg: var(--bg-dark);
    --bs-body-color: var(--text-primary);
    --bs-card-bg: var(--bg-card);
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Navbar - Gaming Style */
.navbar {
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-card) 100%) !important;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, var(--neon-purple), var(--neon-pink), var(--neon-cyan)) 1;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(168, 85, 247, 0.4);
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.navbar-brand i {
    color: var(--neon-cyan);
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Pulse animasyonu kaldırıldı - transparent text ile uyumsuz */
    margin-right: 8px;
}

/* Fallback for browsers that don't support background-clip */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
    .navbar-brand i {
        color: var(--neon-cyan);
        -webkit-text-fill-color: var(--neon-cyan);
    }
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover {
    color: var(--neon-purple) !important;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-pink));
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 80%;
}

.dropdown-menu {
    background: var(--bg-card);
    border: 1px solid rgba(124, 58, 237, 0.3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.dropdown-item {
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    color: white;
    transform: translateX(5px);
}

/* Hero Section - Epic Gaming Style */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--primary-dark) 50%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
    color: white;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(168, 85, 247, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.3) 0%, transparent 50%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.bg-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* Game Card - Modern Gaming Style */
.game-card {
    background: var(--bg-card);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.game-card:hover::before {
    opacity: 0.1;
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(124, 58, 237, 0.4),
        0 0 30px rgba(236, 72, 153, 0.3),
        inset 0 0 20px rgba(168, 85, 247, 0.1);
    border-color: var(--neon-purple);
}

.game-card img {
    object-fit: contain;
    height: 150px;
    width: 100%;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.1);
}

.game-card:hover img {
    transform: scale(1.15);
    filter: brightness(1.2) saturate(1.3);
}

.game-card .card-body {
    position: relative;
    z-index: 2;
    background: rgba(26, 26, 46, 0.9);
}

.game-card .card-title {
    font-size: 0.95rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.game-card .game-title {
    background: linear-gradient(135deg, #ffffff, #e0e0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    transition: all 0.3s ease;
}

.game-card:hover .game-title {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.game-card .card-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.game-card .card-footer {
    background: rgba(15, 15, 35, 0.8);
    position: relative;
    z-index: 2;
}

/* Hover Shadow - Enhanced */
.hover-shadow {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-shadow:hover {
    box-shadow: 
        0 15px 35px rgba(124, 58, 237, 0.4),
        0 0 25px rgba(236, 72, 153, 0.2) !important;
    transform: translateY(-8px);
}

/* Category Cards - Neon Style */
.card {
    background: var(--bg-card);
    border: 1px solid rgba(124, 58, 237, 0.2);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.card.text-center {
    position: relative;
    overflow: hidden;
}

.card.text-center::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, var(--neon-purple), transparent);
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
    opacity: 0;
}

.card.text-center:hover::before {
    width: 200%;
    height: 200%;
    opacity: 0.3;
}

.card.text-center:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: var(--neon-pink);
    transform: translateY(-5px) scale(1.03);
    box-shadow: 
        0 10px 30px rgba(124, 58, 237, 0.5),
        0 0 20px rgba(236, 72, 153, 0.3);
    color: white !important;
}

.card.text-center:hover h5,
.card.text-center:hover h6,
.card.text-center:hover .card-title,
.card.text-center:hover .badge {
    color: white !important;
}

.card.text-center:hover i {
    color: white !important;
    transform: scale(1.2) rotate(5deg);
    animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {
    0%, 100% { transform: scale(1.2) rotate(5deg); }
    50% { transform: scale(1.4) rotate(-5deg); }
}

.card-header {
    background: rgba(124, 58, 237, 0.1);
    border-bottom: 1px solid rgba(124, 58, 237, 0.3);
    color: var(--text-primary);
    font-weight: 600;
}

/* Favorite Button - Gaming Style */
.favorite-btn {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid var(--danger-color);
    color: var(--danger-color);
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.favorite-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--danger-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
}

.favorite-btn:hover::before {
    width: 300%;
    height: 300%;
}

.favorite-btn:hover {
    border-color: var(--danger-color);
    color: white;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

.favorite-btn i,
.favorite-btn .favorite-text {
    position: relative;
    z-index: 1;
}

.favorite-btn[data-favorited="1"] {
    background: var(--danger-color);
    color: white;
    border-color: var(--danger-color);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

.favorite-btn[data-favorited="1"]::before {
    width: 100%;
    height: 100%;
}

.favorite-btn[data-favorited="1"]:hover {
    background-color: #dc2626;
    border-color: #dc2626;
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.6);
    transform: scale(1.05);
}

/* Comment Section */
.comment-item {
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 3px solid var(--primary-color);
    transition: all 0.3s ease;
}

.comment-item:hover {
    background: var(--bg-hover);
    border-left-color: var(--neon-pink);
    transform: translateX(5px);
}

.comment-item:last-child {
    border-bottom: none !important;
}

/* Search Box */
.search-box {
    max-width: 500px;
}

.form-control {
    background: var(--bg-card);
    border: 1px solid rgba(124, 58, 237, 0.3);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-control:focus {
    background: var(--bg-hover);
    border-color: var(--neon-purple);
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.3);
    color: var(--text-primary);
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* Footer - Dark Gaming Style */
footer {
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-card) 100%);
    border-top: 2px solid transparent;
    border-image: linear-gradient(90deg, var(--neon-purple), var(--neon-pink), var(--neon-cyan)) 1;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

footer h5 {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

footer a {
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--neon-purple) !important;
    transform: translateX(5px);
}

footer .hover-primary:hover {
    color: var(--neon-purple) !important;
    text-decoration: underline !important;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.3);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    border-color: var(--neon-purple);
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 5px 20px rgba(124, 58, 237, 0.5);
}

/* Badges - Neon Style */
.badge {
    font-weight: 600;
    padding: 0.4em 0.8em;
    border-radius: 6px;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.badge.bg-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
    box-shadow: 0 4px 10px rgba(124, 58, 237, 0.3);
}

.badge.bg-danger {
    background: linear-gradient(135deg, var(--danger-color), #dc2626) !important;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
}

.badge.bg-success {
    background: linear-gradient(135deg, var(--success-color), #059669) !important;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

/* Buttons - Epic Gaming Style */
.btn {
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn::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.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.5);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-color: var(--primary-color);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color), #dc2626);
    border: none;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-outline-danger {
    border: 2px solid var(--danger-color);
    color: var(--danger-color);
}

.btn-outline-danger:hover {
    background: linear-gradient(135deg, var(--danger-color), #dc2626);
    border-color: var(--danger-color);
}

/* Loading Animation - Gaming Style */
.loading {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(124, 58, 237, 0.2);
    border-radius: 50%;
    border-top-color: var(--neon-purple);
    border-right-color: var(--neon-pink);
    animation: spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    box-shadow: 
        0 0 20px rgba(124, 58, 237, 0.4),
        inset 0 0 20px rgba(236, 72, 153, 0.2);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* Alert Boxes */
.alert {
    background: var(--bg-card);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--info-color);
    color: #60a5fa;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--success-color);
    color: #34d399;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--danger-color);
    color: #f87171;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--warning-color);
    color: #fbbf24;
}

/* List Group */
.list-group-item {
    background: var(--bg-card);
    border-color: rgba(124, 58, 237, 0.2);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background: var(--bg-hover);
    border-left: 3px solid var(--neon-purple);
    transform: translateX(5px);
}

/* Tables */
.table {
    color: var(--text-primary);
}

.table thead {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.table-striped tbody tr:nth-of-type(odd) {
    background: rgba(124, 58, 237, 0.05);
}

.table-hover tbody tr:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

/* Text Colors */
.text-muted {
    color: var(--text-muted) !important;
}

.text-light,
.text-white {
    color: var(--text-primary) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .game-card .card-title {
        font-size: 0.85rem;
    }
    
    .game-card:hover {
        transform: translateY(-5px) scale(1.01);
    }
}

/* Additional Gaming Effects */
.glow-text {
    text-shadow: 
        0 0 10px rgba(168, 85, 247, 0.8),
        0 0 20px rgba(168, 85, 247, 0.6),
        0 0 30px rgba(168, 85, 247, 0.4);
}

.neon-border {
    border: 2px solid var(--neon-purple);
    box-shadow: 
        0 0 10px rgba(168, 85, 247, 0.5),
        inset 0 0 10px rgba(168, 85, 247, 0.2);
}

/* Oyun oynatma sayfası */
.game-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

[data-bs-theme="dark"] ::-webkit-scrollbar-track {
    background: #2d2d2d;
}

[data-bs-theme="dark"] ::-webkit-scrollbar-thumb {
    background: #555;
}

/* Pagination */
.pagination .page-link {
    color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Alert animations */
.alert {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form styling */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Card hover effects */
.card {
    transition: all 0.3s ease;
}

/* Theme toggle button */
#themeToggle {
    border: none;
    background: transparent;
}

#themeToggle:hover {
    color: var(--warning-color) !important;
}

/* Profile page tabs */
.nav-tabs .nav-link {
    color: var(--secondary-color);
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Avatar */
.rounded-circle {
    object-fit: cover;
}

/* Ad Containers */
.ad-container {
    margin: 10px 0;
    padding: 10px;
    text-align: center;
    background: rgba(26, 26, 46, 0.5);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.ad-header {
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(124, 58, 237, 0.3);
}

.ad-footer {
    margin-top: 15px;
    border-top: 2px solid rgba(124, 58, 237, 0.3);
}

.ad-sidebar {
    position: sticky;
    top: 80px;
}

.ad-in-game {
    margin: 20px 0;
    padding: 15px;
    background: rgba(124, 58, 237, 0.05);
}

/* Vertical Game Ads */
.vertical-ad-left,
.vertical-ad-right {
    position: sticky;
    top: 80px;
    min-height: 600px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.vertical-ad-left .ad-container,
.vertical-ad-right .ad-container {
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 58, 237, 0.03);
    border: 2px dashed rgba(124, 58, 237, 0.3);
}

.ad-left-game,
.ad-right-game {
    width: 160px;
    min-height: 600px;
}

/* Ad responsive */
@media (max-width: 768px) {
    .ad-sidebar {
        position: relative;
        top: 0;
    }
    
    .vertical-ad-left,
    .vertical-ad-right {
        display: none;
    }
}

/* Breadcrumb */
.breadcrumb {
    background: rgba(124, 58, 237, 0.1);
    border-radius: 8px;
    padding: 12px 20px;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 10px rgba(236, 72, 153, 0.5);
}

.breadcrumb-item.active {
    color: var(--text-primary);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(124, 58, 237, 0.5);
}

/* Similar Games Sidebar */
.similar-game-item {
    cursor: pointer;
}

.similar-game-item:hover {
    background: rgba(124, 58, 237, 0.15) !important;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.similar-game-item img {
    transition: transform 0.3s ease;
}

.similar-game-item:hover img {
    transform: scale(1.1);
}
