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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* GIF Ekranları */
.gif-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 20, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.5s ease;
}

.gif-container {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    position: relative;
}

.screen-close-btn {
    position: absolute;
    top: -45px;
    right: 10px;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.screen-close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.gif-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    height: auto;
}

.gif-item {
    position: relative;
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, #2a2a4a 0%, #1a1a3a 100%);
    border-radius: 12px;
    overflow: visible;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: slideIn 0.6s ease forwards;
    opacity: 0;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gif-item:nth-child(1) { animation-delay: 0.1s; }
.gif-item:nth-child(2) { animation-delay: 0.15s; }
.gif-item:nth-child(3) { animation-delay: 0.2s; }
.gif-item:nth-child(4) { animation-delay: 0.25s; }

.gif-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.gif-item.closing {
    animation: slideOut 0.3s ease forwards;
}

@keyframes slideOut {
    to {
        opacity: 0;
        transform: translateX(-100%);
    }
}

/* Her kart için kapat butonu */
.gif-item-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ff4444;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.gif-item-close:hover {
    background: #ff6666;
    transform: rotate(90deg) scale(1.1);
}

.gif-item img {
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    box-sizing: border-box;
    border-radius: 8px;
}

.gif-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.5) 50%, transparent);
    padding: 12px 40px 12px 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 70%;
}

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

.gif-text {
    flex: 1;
}

.gif-title {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.gif-slogan {
    font-size: 10px;
    color: #ffd700;
    margin-top: 2px;
    font-weight: 600;
    text-transform: uppercase;
    background: rgba(255, 215, 0, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 4px;
}

.gif-badge {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    padding: 6px 10px;
    border-radius: 16px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

/* Ana Ekran */
.main-screen {
    min-height: 100vh;
    padding-bottom: 70px;
    animation: fadeIn 0.5s ease;
    background: #0d0d1a;
}

/* Üst Başlık */
.top-header {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.header-content h1 {
    font-size: 24px;
    font-weight: 800;
    color: white;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bonus-info {
    font-size: 14px;
    color: #fff;
    margin-top: 5px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    margin-top: 8px;
}

/* Filtreleme Menüsü */
.filter-menu {
    display: flex;
    gap: 8px;
    padding: 12px;
    background: #1a1a2e;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.filter-menu::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    background: #2a2a4a;
    color: #888;
    border: 1px solid transparent;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.filter-btn.active {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: white;
    border-color: transparent;
}

.filter-btn:not(.active):hover {
    background: #3a3a5a;
    color: #fff;
}

.filter-icon {
    font-size: 14px;
}

/* Site Container */
.sites-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 12px;
}

.sites-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.site-card {
    display: flex;
    align-items: center;
    background: #1a1a2e;
    border-radius: 10px;
    padding: 10px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    animation: slideIn 0.5s ease forwards;
    opacity: 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

/* Özel vurgulu kartlar (FREEBET gibi) */
.site-card.special {
    background: linear-gradient(135deg, #e91e63, #f06292);
    border: 2px solid #ff4081;
}

.site-card.special-alt {
    background: linear-gradient(135deg, #673ab7, #9575cd);
    border: 2px solid #7e57c2;
}

.site-card:hover {
    transform: translateX(3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Dikdörtgen GIF Alanı */
.site-thumbnail {
    width: 120px;
    height: 80px;
    min-width: 120px;
    border-radius: 6px;
    overflow: visible;
    margin-right: 12px;
    position: relative;
    background: #0a0a1a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-thumbnail img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    background: rgba(255, 255, 255, 0.02);
    padding: 4px;
    box-sizing: border-box;
    border-radius: 4px;
    display: block;
}

.site-thumbnail .placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--card-color, #ff6b35), var(--card-color-dark, #cc5629));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    color: white;
    text-transform: uppercase;
}

.site-info {
    flex: 1;
    min-width: 0;
}

.site-name {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #fff;
}

.site-bonus {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 500;
}

.site-button {
    background: linear-gradient(135deg, #ffa500, #ff8c00);
    color: #fff;
    padding: 8px 14px;
    border-radius: 18px;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(255, 165, 0, 0.3);
    transition: all 0.3s ease;
}

.site-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.5);
}

/* Alt Mobil Menü */
.bottom-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a2e;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    z-index: 100;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #888;
    padding: 4px 8px;
    transition: all 0.3s ease;
    font-size: 10px;
    font-weight: 500;
}

.menu-item.active {
    color: #ff6b35;
}

.menu-item:hover {
    color: #ff8c42;
}

.menu-item svg {
    width: 20px;
    height: 20px;
}

.menu-item span {
    font-size: 10px;
    text-align: center;
}


/* Animasyonlar */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Kazanç Bildirimi Pop-up - Yeni Tasarım */
.win-notification {
    position: fixed;
    bottom: 90px;
    left: -400px;
    width: 350px;
    z-index: 2000;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.win-notification.show {
    left: 20px;
}

.win-card {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 12px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.win-logo {
    width: 60px;
    height: 40px;
    background: #2d2d2d;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800; 
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.win-info {
    flex: 1;
    color: #fff;
}

.win-user-line {
    font-size: 12px;
    color: #ffd700;
    font-weight: 600;
    margin-bottom: 2px;
}

.win-prize-line {
    font-size: 12px;
    color: #fff;
    font-weight: 600;
}

.win-prize-line span {
    color: #ffd700;
    font-weight: 800;
}

.win-close {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ff4444;
    color: #fff;
    border: none;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.win-close:hover {
    background: #ff6666;
    transform: rotate(90deg) scale(1.1);
}

.win-btn {
    background: linear-gradient(135deg, #ffd700, #ffb300);
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 60px;
}

.win-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5);
}

.win-timer {
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    border-radius: 0 0 8px 8px;
}

.win-timer-bar {
    height: 100%;
    background: linear-gradient(90deg, #ffd700, #ff6b35);
    width: 100%;
    transform: translateX(-100%);
    transition: none;
}

.win-timer-bar.running {
    transition: transform linear;
    transform: translateX(0);
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Mobil Optimizasyonlar */
@media (max-width: 480px) {
    .gif-container {
        padding: 10px;
        max-width: 100%;
    }
    
    .gif-grid {
        gap: 12px;
    }
    
    .gif-item {
        height: 140px;
    }
    
    .gif-item-close {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
    
    .site-thumbnail {
        width: 110px;
        height: 70px;
        min-width: 110px;
    }
    
    .close-btn {
        top: -40px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .gif-title {
        font-size: 14px;
    }
    
    .gif-slogan {
        font-size: 9px;
    }
    
    .site-card {
        padding: 10px;
    }
    
    .site-logo {
        width: 45px;
        height: 45px;
        min-width: 45px;
        font-size: 18px;
    }
    
    .site-name {
        font-size: 13px;
    }
    
    .site-bonus {
        font-size: 10px;
    }
    
    .site-button {
        padding: 7px 12px;
        font-size: 10px;
    }
    
    .admin-content {
        width: 95%;
        border-radius: 15px;
    }
    
    .win-notification {
        width: calc(100% - 40px);
        left: -100%;
        bottom: 65px;
    }
    
    .win-notification.show {
        left: 20px;
    }
    
    .win-logo {
        width: 50px;
        height: 35px;
        font-size: 10px;
    }
    
    .win-user-line, .win-prize-line {
        font-size: 11px;
    }
}

@media (max-width: 360px) {
    .gif-grid {
        gap: 8px;
    }
    
    .gif-title {
        font-size: 12px;
    }
    
    .site-name {
        font-size: 12px;
    }
    
    .site-button {
        padding: 6px 10px;
        font-size: 9px;
    }
}
