/* Üst Şerit Stilleri */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0 20px;
    z-index: 1001;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    gap: 40px;
}

.home-link {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    margin-right: auto;
    margin-left: 10%;
}

.home-link:hover {
    color: gold;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
}

.login-form {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-right: 5%;
}

.login-form input {
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    outline: none;
    width: 120px;
}

.login-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.login-form button {
    padding: 8px 15px;
    border-radius: 20px;
    background-color: rgba(29, 185, 84, 0.6);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.login-form button:hover {
    background-color: rgba(29, 185, 84, 0.8);
    transform: scale(1.05);
}

/* Temel sayfa stil ayarları */
body {
    margin: 0;
    padding-top: 60px;
    font-family: Arial, sans-serif;
    background-color: #000000;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: none;
    color: #ffffff; /* Tüm yazılar beyaz */
}

/* İçerik konteyneri */
.content-container {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Ana içerik alanı */
.content {
    text-align: center;
    z-index: 10;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* Arkaplan resmi - Mobil için varsayılan */
.background-image {
    width: 70%;
    max-width: 600px;
    height: auto;
    z-index: -1;
    margin-top: 2rem;
}

/* Masaüstü için küçültme (768px ve üzeri) */
@media (min-width: 768px) {
    .background-image {
        width: 50%;
        max-width: 400px;
        transform: scale(0.7);
        margin-top: -3%;
    }
}

/* Başlık stili */
.title {
    color: #ffffff;
    font-size: clamp(2.5rem, 5vw, 5rem);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

/* Butonlar konteyneri */
.buttons-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
    padding: 30px;
    position: relative;
    z-index: 2;
    background-color: rgba(20, 20, 20, 0.8);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

/* Temel buton stili */
.spotify-button, .soundcloud-button, .x-button {
    display: inline-flex;
    align-items: center;
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 10px;
    text-decoration: none;
    width: 100%;
    justify-content: center;
    border: 2px solid rgba(255,255,255,0.3);
    box-sizing: border-box;
    position: relative;
    background-color: rgba(0, 0, 0, 0.5);
    transform: scale(1);
    
    /* Beyaz parlama animasyonu - 3 saniyede bir */
    animation: whiteFlash 3s infinite;
}

/* Buton hover efekti */
.spotify-button:hover, .soundcloud-button:hover, .x-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.7);
    animation: none !important; /* Hoverda flash animasyonunu kapat */
    filter: brightness(1.2);
    box-shadow: 0 0 15px currentColor;
    transition: all 0.3s ease, box-shadow 0.5s ease;
}

/* Glow iz efekti */
.spotify-button:hover::after, 
.soundcloud-button:hover::after, 
.x-button:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 30px;
    background: currentColor;
    opacity: 0;
    z-index: -1;
    animation: glowTrail 0.5s ease-out forwards;
}

/* Beyaz parlama animasyon tanımı */
@keyframes whiteFlash {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.5); }
}

/* Glow iz animasyonu */
@keyframes glowTrail {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.1);
        opacity: 0;
    }
}

/* Platforma özel buton renkleri */
.spotify-button {
    background-color: rgba(29, 185, 84, 0.6);
}

.soundcloud-button {
    background-color: rgba(255, 118, 66, 0.6);
}

.x-button {
    background-color: rgba(0, 0, 0, 0.6);
}

/* Buton ikonları */
.spotify-icon, .soundcloud-icon, .x-icon {
    width: 25px;
    height: 25px;
    transition: all 0.3s ease;
}

/* SoundCloud ikonu özel boyut */
.soundcloud-icon {
    width: 28.75px;
    height: 28.75px;
    filter: none !important;
    -webkit-filter: none !important;
}

/* Para baloncukları konteyneri */
.bubbles-container {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

/* Para baloncukları */
.money-bubble {
    position: absolute;
    background-color: rgba(255, 215, 0, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000;
    font-weight: bold;
    animation: rise linear forwards;
    pointer-events: none;
    box-shadow: 0 0 15px rgba(255,215,0,0.8);
    z-index: 1;
}

.background-money {
    animation-name: background-rise;
    animation-timing-function: linear;
}

/* Baloncuk animasyonları */
@keyframes rise {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(0.3) rotate(360deg);
        opacity: 0;
    }
}

@keyframes background-rise {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0.9;
    }
    50% {
        transform: translateX(150px) rotate(180deg);
    }
    100% {
        transform: translateY(-100vh) translateX(-150px) rotate(360deg);
        opacity: 0;
    }
}

/* Müzik çalar */
.music-player {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    z-index: 1000;
    width: 90%;
    max-width: 400px;
    background-color: rgba(42, 42, 42, 0.8);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    backdrop-filter: blur(5px);
}

.music-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.music-player button {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.music-player button:hover {
    transform: scale(1.1);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 5px;
}

.volume-icon {
    width: 20px;
    height: 20px;
}

.volume-control input {
    width: 80px;
    transition: opacity 0.3s ease;
}

.volume-control input:hover {
    opacity: 1;
}

/* Mobil optimizasyonları */
@media (max-width: 768px) {
    .content-container {
        top: 0;
        padding: 0 15px;
    }
    
    .background-image {
        width: 60.9%;
        height: auto;
        max-width: unset;
        border-radius: 0;
        opacity: 1;
        margin-top: 1rem;
    }
    
    .buttons-container {
        padding: 20px;
        width: 90%;
        max-width: 100%;
        margin: 20px 0;
    }
    
    .spotify-button, .soundcloud-button, .x-button {
        padding: 12px 20px;
        font-size: 1rem;
    }

    .spotify-icon, .soundcloud-icon, .x-icon {
        width: 20px;
        height: 20px;
    }

    .soundcloud-icon {
        width: 23px;
        height: 23px;
    }
    
    .music-player {
        width: 95%;
        padding: 8px;
        max-width: unset;
    }

    .title {
        font-size: clamp(2rem, 8vw, 3.5rem);
        margin-bottom: 0.5rem;
    }

    .money-bubble {
        font-size: 14px;
        width: 25px !important;
        height: 25px !important;
    }

    .top-bar {
        height: 50px;
        padding: 0 10px;
        gap: 15px;
    }

    .home-link {
        font-size: 16px;
        margin-left: 5%;
    }

    .login-form {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 8px;
        margin-right: 2%;
    }

    .login-form input {
        width: 80px;
        padding: 6px 8px;
        font-size: 12px;
    }

    .login-form button {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* Çok küçük ekranlar için ekstra ayarlar (480px ve altı) */
@media (max-width: 480px) {
    .background-image {
        height: auto;
    }

    .buttons-container {
        padding: 15px;
    }

    .spotify-button, .soundcloud-button, .x-button {
        padding: 10px 15px;
    }

    .spotify-icon, .soundcloud-icon, .x-icon {
        width: 18px;
        height: 18px;
    }

    .soundcloud-icon {
        width: 20px;
        height: 20px;
    }

    .top-bar {
        flex-direction: column;
        height: auto;
        padding: 10px;
        gap: 10px;
    }

    .home-link {
        margin: 0;
        text-align: center;
        width: 100%;
    }

    .login-form {
        width: 100%;
        justify-content: center;
        margin: 5px 0;
    }

    .login-form input {
        width: 30%;
        min-width: 80px;
    }

    .login-form button {
        width: 30%;
        min-width: 100px;
    }
}

/* Mobilde imleci kaldır */
@media (max-width: 767px) {
    .cursor-cross {
        display: none !important;
    }
    
    body {
        cursor: default !important;
    }
}

/* Şimşek efekti */
.lightning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0);
    z-index: 0;
    pointer-events: none;
    animation: lightning 15s infinite;
}

@keyframes lightning {
    0%, 8%, 10%, 12%, 14%, 100% { background: rgba(255, 255, 255, 0); }
    9%, 11%, 13% { background: rgba(255, 255, 255, 0.8); }
}

/* Şimşek çizgileri */
.lightning-bolt {
    position: absolute;
    width: 3px;
    background: linear-gradient(to bottom, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.8) 30%, 
        rgba(255,255,255,0) 100%);
    transform: rotate(15deg);
    opacity: 0;
    animation: bolt 15s infinite;
}

@keyframes bolt {
    0%, 8%, 10%, 12%, 14%, 100% { opacity: 0; }
    9%, 11%, 13% { 
        opacity: 1;
        height: 100vh;
        box-shadow: 0 0 15px 2px rgba(255, 255, 255, 0.6);
    }
}

/* Admin Link */
.admin-link {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    margin-right: auto;
    margin-left: 20px;
}

.admin-link:hover {
    color: #ff5555;
    text-shadow: 0 0 10px rgba(255, 85, 85, 0.7);
}

/* Kullanıcı Bilgi Alanı */
.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-right: 5%;
    color: white;
}

/* Çıkış Butonu */
.logout-btn {
    padding: 8px 15px;
    border-radius: 20px;
    background-color: rgba(255, 0, 0, 0.6);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 14px;
}

.logout-btn:hover {
    background-color: rgba(255, 0, 0, 0.8);
    transform: scale(1.05);
}

/* Admin Panel Stilleri */
.admin-container {
    display: flex;
    min-height: calc(100vh - 60px);
    color: #ffffff;
}

.admin-sidebar {
    width: 250px;
    background: rgba(0,0,0,0.8);
    padding: 20px;
    border-right: 1px solid rgba(255,255,255,0.2);
}

.admin-content {
    flex: 1;
    padding: 20px;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
}

.sidebar-menu li {
    margin-bottom: 10px;
}

.sidebar-menu a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 10px;
    border-radius: 5px;
    transition: all 0.3s;
}

.sidebar-menu a:hover {
    background: rgba(255,215,0,0.2);
}

/* Tablo Stilleri */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: rgba(20, 20, 20, 0.8);
}

.data-table th, .data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.data-table th {
    background-color: rgba(0, 0, 0, 0.5);
    font-weight: bold;
}

.data-table tr:hover {
    background-color: rgba(50, 50, 50, 0.5);
}

/* Form Stilleri */
.admin-form {
    margin-top: 30px;
    padding: 20px;
    background-color: rgba(20, 20, 20, 0.8);
    border-radius: 10px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid rgba(255,255,255,0.3);
    background-color: rgba(0,0,0,0.5);
    color: white;
}

.form-submit {
    padding: 10px 20px;
    background-color: rgba(29, 185, 84, 0.6);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.form-submit:hover {
    background-color: rgba(29, 185, 84, 0.8);
}

/* Switch Stilleri */
.admin-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.admin-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:checked + .slider:before {
    transform: translateX(26px);
}