/* MOBİL HİLE Modern Ana Sayfa Stilleri */
:root {
    --primary-bg: #0f0f23;
    --secondary-bg: #1a1a2e;
    --accent-color: #ff6b35;
    --accent-secondary: #ffa500;
    --text-light: #ffffff;
    --text-muted: #a0a0a0;
    --active-purple: #8b5cf6;
    --card-bg: rgba(255, 255, 255, 0.05);
    --hover-bg: rgba(255, 255, 255, 0.1);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 10px 40px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0a0f1e;
    background-image: 
        linear-gradient(to right, rgba(6, 182, 212, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(6, 182, 212, 0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Modern Arka Plan Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 107, 53, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    background-size: 800px 800px, 600px 600px, 400px 400px;
    background-position: 0 0, 100px 100px, 200px 200px;
    opacity: 0.4;
    z-index: -1;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    33% {
        transform: translateY(-20px) rotate(1deg);
    }

    66% {
        transform: translateY(10px) rotate(-1deg);
    }
}

/* Container */
.mobile-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Logo ve Başlık */
.mobile-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 0;
    position: relative;
}

.mobile-logo {
    font-size: 4rem;
    font-weight: 900;
    color: var(--text-light);
    text-shadow: 0 0 30px rgba(255, 107, 53, 0.5);
    margin-bottom: 15px;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #ffffff 0%, #ff6b35 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mobile-logo .hile-text {
    background: linear-gradient(135deg, #ff6b35 0%, #ffa500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mobile-subtitle {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-weight: 300;
}

/* Modern Oyun Grid'i */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
    padding: 0 10px;
}

.game-item {
    background: transparent;
    border-radius: 20px;
    padding: 0;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    height: 280px;
    min-height: 280px;
}

/* Masaüstü için oyun background kuralları */
.game-background {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    border-radius: 20px !important;
    width: 100% !important;
    height: 100% !important;
    background-attachment: local !important;
    z-index: 0 !important;
}

.game-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, transparent 50%, rgba(0, 0, 0, 0.8) 100%);
    border-radius: 20px;
    z-index: 1;
}

.game-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    border-radius: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    align-items: center !important;
    padding: 20px !important;
    text-align: center !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 2 !important;
}

.game-overlay .game-name {
    display: none !important;
}

.game-overlay .active-badge {
    background: rgba(139, 92, 246, 0.95) !important;
    color: white !important;
    padding: 12px 24px !important;
    border-radius: 25px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    backdrop-filter: blur(15px) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4) !important;
    align-self: center !important;
    width: fit-content !important;
    z-index: 3 !important;
}

.game-overlay .active-badge::before {
    content: '🚀';
    font-size: 14px;
}

/* Görseli olmayan oyunlar için eski stil */
.game-item:not(:has(.game-background)) {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-item:hover {
    background: var(--hover-bg);
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-heavy);
    border-color: rgba(255, 107, 53, 0.3);
}

.game-item::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-item:hover::before {
    opacity: 0.1;
}

.game-icon {
    width: 100%;
    height: 180px;
    border-radius: 20px 20px 0 0;
    margin: 0 0 20px 0;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    overflow: hidden;
    position: relative;
}

.game-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
}

.game-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-light);
    padding: 0 20px;
}

.active-badge {
    background: linear-gradient(135deg, var(--active-purple) 0%, #a855f7 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.active-badge::before {
    content: '🚀';
    font-size: 0.9rem;
}

/* Modern Responsive Tasarım */
@media (max-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .mobile-container {
        padding: 25px 15px;
    }
}

@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 18px;
        padding: 0 5px;
    }

    .mobile-header {
        margin-bottom: 40px;
        padding: 30px 0;
    }

    .mobile-logo {
        font-size: 3rem;
    }

    .mobile-subtitle {
        font-size: 1.2rem;
    }

    .game-icon {
        height: 150px;
        font-size: 40px;
    }

    .game-name {
        font-size: 1rem;
    }

    .active-badge {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 10px;
    }

    .game-item {
        height: 180px;
        min-height: 180px;
    }

    .mobile-container {
        padding: 20px 10px;
    }

    .mobile-header {
        margin-bottom: 30px;
        padding: 20px 0;
    }

    .mobile-logo {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }

    .mobile-subtitle {
        font-size: 1.1rem;
    }

    .game-item {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 15px;
        padding: 20px;
        text-align: center;
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
        min-height: 140px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .game-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    }

    .game-background {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        border-radius: 20px;
        width: 100% !important;
        height: 100% !important;
        background-attachment: local;
        z-index: 0;
    }

    .game-background::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(180deg, transparent 0%, transparent 50%, rgba(0, 0, 0, 0.8) 100%);
        border-radius: 20px;
        z-index: 1;
    }

    .game-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 20px;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding: 0;
        text-align: left;
        width: 100%;
        height: 100%;
        z-index: 2;
    }

    .game-overlay .game-name {
        display: none;
    }

    .game-overlay .active-badge {
        background: rgba(139, 92, 246, 0.95);
        color: white;
        padding: 10px 20px;
        border-radius: 25px;
        font-size: 0.9rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin: 20px;
        display: flex;
        align-items: center;
        gap: 8px;
        backdrop-filter: blur(15px);
        border: 2px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
        align-self: flex-end;
        width: fit-content;
        z-index: 3;
    }

    .game-overlay .active-badge::before {
        content: '🚀';
        font-size: 14px;
    }

    .game-icon {
        width: 60px;
        height: 60px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 15px;
        font-size: 24px;
        color: white;
        backdrop-filter: blur(10px);
    }

    .game-name {
        color: white;
        font-weight: 600;
        font-size: 16px;
        margin-bottom: 10px;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .active-badge {
        background: linear-gradient(45deg, #4CAF50, #45a049);
        color: white;
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
        position: absolute;
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 360px) {
    .mobile-logo {
        font-size: 2.2rem;
    }

    .games-grid {
        gap: 12px;
    }

    .game-icon {
        height: 120px;
        font-size: 32px;
    }

    .game-name {
        font-size: 0.9rem;
    }
}

/* Animasyonlar */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-item {
    animation: fadeInUp 0.6s ease forwards;
}

.game-item:nth-child(1) {
    animation-delay: 0.1s;
}

.game-item:nth-child(2) {
    animation-delay: 0.2s;
}

.game-item:nth-child(3) {
    animation-delay: 0.3s;
}

.game-item:nth-child(4) {
    animation-delay: 0.4s;
}

/* Modal Stilleri */
.game-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 25px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    animation: slideUp 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: var(--gradient-primary);
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.close-btn {
    font-size: 2rem;
    color: white;
    cursor: pointer;
    transition: transform 0.2s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.close-btn:hover {
    transform: rotate(90deg);
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    background: #0a0f1e;
    background-image: 
        linear-gradient(to right, rgba(6, 182, 212, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(6, 182, 212, 0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.game-info {
    text-align: center;
}

.game-status {
    margin-bottom: 20px;
}

.status-badge {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-badge.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.modal-body p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #d1d5db;
    margin-bottom: 25px;
}

.features {
    display: grid;
    gap: 15px;
    margin-top: 25px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--accent-secondary);
}

.feature-item span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
}

.modal-footer {
    padding: 20px 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
}

.btn-notify,
.btn-close {
    padding: 14px 30px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-notify {
    background: var(--gradient-primary);
    color: white;
    flex: 1;
    justify-content: center;
}

.btn-notify:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-close {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Toast Bildirimleri */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 18px 25px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    min-width: 300px;
    max-width: 400px;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-size: 1rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.toast-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.toast.toast-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.toast.toast-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        margin: 20px;
    }

    .modal-header h3 {
        font-size: 1.3rem;
    }

    .modal-body {
    background: #0a0f1e;
    background-image: 
        linear-gradient(to right, rgba(6, 182, 212, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(6, 182, 212, 0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

    .modal-footer {
        flex-direction: column;
        padding: 15px 20px;
    }

    .btn-notify,
    .btn-close {
        width: 100%;
        justify-content: center;
    }

    .toast {
        right: 15px;
        bottom: 15px;
        min-width: auto;
        max-width: calc(100% - 30px);
    }
}