/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

:root {
    --primary-color: #0f0c29;
    --secondary-color: #302b63;
    --accent-color: #24243e;
    --neon-blue: #00f2ff;
    --neon-purple: #bc13fe;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-color: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Glassmorphism Container Logic */
.glass-container {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* --- Login Page Styles --- */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-box {
    padding: 3rem;
    text-align: center;
    width: 400px;
}

.login-box h2 {
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
}

input[type="password"] {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--neon-purple);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    text-align: center;
    transition: 0.3s;
}

input[type="password"]:focus {
    outline: none;
    box-shadow: 0 0 15px var(--neon-purple);
}

.btn-neon {
    padding: 12px 30px;
    background: transparent;
    border: 2px solid var(--neon-blue);
    color: var(--neon-blue);
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.1);
}

.btn-neon:hover {
    background: var(--neon-blue);
    color: #000;
    box-shadow: 0 0 20px var(--neon-blue);
}

/* --- Layout Structure (Home, Hakkimda, Panel) --- */
.main-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100vh;
    position: fixed;
}

.nav-links li {
    list-style: none;
    margin-bottom: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    transition: 0.3s;
    display: flex;
    align-items: center;
}

.nav-links a:hover {
    color: var(--neon-blue);
    padding-left: 10px;
    text-shadow: 0 0 8px var(--neon-blue);
}

/* Main Content Area */
.content-area {
    margin-left: 280px;
    /* Sidebar width + gap */
    flex: 1;
    padding: 2rem;
    position: relative;
}




/* --- Footer --- */
.footer {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer span {
    text-decoration: line-through;
    color: var(--neon-purple);
}

/* --- Modal (Contact) --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #1a1a2e;
    margin: 10% auto;
    padding: 2rem;
    border: 1px solid var(--neon-blue);
    width: 600px;
    height: 490px;
    border-radius: 15px;
    box-shadow: 0 0 50px rgba(0, 242, 255, 0.2);
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.close-modal {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: var(--neon-blue);
}

.contact-info p {
    margin: 15px 0;
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

/* --- Panel Specifics --- */
.panel-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.video-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 15px;
    border: 1px solid var(--neon-blue);
}

video {
    width: 100%;
    display: block;
}

/* Fullscreen Overlay Logic */
#overlay-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: black;
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}

#overlay-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Görüntüyü bozmadan sığdır */
}

/* Music Player Controls */
.music-controls {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.track-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.track-btn {
    flex: 1;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--neon-purple);
    color: white;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.2s;
}

.track-btn.active {
    background: var(--neon-purple);
    box-shadow: 0 0 10px var(--neon-purple);
}

.playback-controls button {
    margin-right: 10px;
    font-size: 1.2rem;
    background: none;
    border: 1px solid white;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

.playback-controls button:hover {
    color: black;
}

/* --- Ghost Animation --- */
.animation-wrapper {
    position: absolute;
    bottom: 20px;
    right: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    /* Make sure it doesn't block clicks if large */
}

.ghost {
    position: relative;
    width: 60px;
    height: 70px;
    background: white;
    border-radius: 40px 40px 0 0;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    animation: float 3s ease-in-out infinite;
}

.ghost-eyes {
    display: flex;
    justify-content: space-around;
    padding: 20px 10px 0;
}

.eye {
    width: 8px;
    height: 8px;
    background: #333;
    border-radius: 50%;
    animation: blink 4s infinite;
}

.ghost-feet {
    display: flex;
    position: absolute;
    bottom: -10px;
    width: 100%;
}

.foot {
    flex: 1;
    height: 20px;
    background: white;
    border-radius: 0 0 10px 10px;
}

.ghost-shadow {
    width: 50px;
    height: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    margin-top: 30px;
    animation: shadowScale 3s ease-in-out infinite;
    filter: blur(5px);
}

.ghost-text {
    margin-top: 10px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    animation: fadeInOut 3s ease-in-out infinite;
}

@keyframes float {

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

    50% {
        transform: translateY(-15px);
    }
}

@keyframes shadowScale {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(0.8);
        opacity: 0.1;
    }
}

@keyframes blink {

    0%,
    90%,
    100% {
        transform: scaleY(1);
    }

    95% {
        transform: scaleY(0.1);
    }
}

@keyframes fadeInOut {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
}

/* --- Blackjack Game Styles --- */
#blackjack-arena {
    margin-top: 2rem;
    padding: 20px;
    background: linear-gradient(145deg, rgba(20, 30, 48, 0.9), rgba(36, 59, 85, 0.9));
    border: 1px solid rgba(0, 242, 255, 0.2);
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.game-header {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    margin-bottom: 20px;
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-box .label {
    font-size: 0.8rem;
    color: #aaa;
    letter-spacing: 1px;
}

.stat-box .value {
    font-size: 1.2rem;
    color: var(--neon-blue);
    font-weight: bold;
}

.table-surface {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    padding: 20px;
    background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
}

.hand-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    min-height: 120px;
}

.area-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 10px;
    letter-spacing: 2px;
}

.cards-container {
    display: flex;
    justify-content: center;
    gap: -30px;
    /* Overlap cards */
}

/* Realistic Card Styles */
.card {
    width: 80px;
    height: 120px;
    background: white;
    border-radius: 8px;
    position: relative;
    margin: 0 5px;
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    animation: dealCard 0.5s ease-out backwards;
    user-select: none;
    display: flex;
    justify-content: center;
    align-items: center;
    color: black;
}

.card:hover {
    transform: translateY(-10px) rotate(2deg);
    z-index: 10;
}

.card.hearts,
.card.diamonds {
    color: #d40000;
}

.card.clubs,
.card.spades {
    color: #111;
}

.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    padding: 5px;
}

.card-top,
.card-bottom {
    position: absolute;
    font-size: 0.9rem;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.card-top {
    top: 5px;
    left: 5px;
}

.card-bottom {
    bottom: 5px;
    right: 5px;
    transform: rotate(180deg);
}

.card-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
}

/* Card Back Design */
.card.back {
    background: repeating-linear-gradient(45deg,
            #606dbc,
            #606dbc 10px,
            #465298 10px,
            #465298 20px);
    border: 2px solid white;
}

.card.back .card-inner {
    display: none;
}

.score-bubble {
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--neon-blue);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--neon-blue);
}

.center-area {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
}

.status-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 20px;
    border-radius: 20px;
}

/* Chip Buttons */
.controls-area {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 20px;
}

#betting-controls,
#action-controls {
    display: flex;
    gap: 15px;
}

.chip-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 4px dashed rgba(255, 255, 255, 0.5);
    font-weight: bold;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s;
    text-shadow: 1px 1px 2px black;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chip-btn:hover {
    transform: scale(1.1);
}

.chip-btn.red {
    background: radial-gradient(circle at 30% 30%, #ff4b4b, #990000);
    border-color: #ffcccc;
}

.chip-btn.green {
    background: radial-gradient(circle at 30% 30%, #4bff4b, #006600);
    border-color: #ccffcc;
}

.chip-btn.blue {
    background: radial-gradient(circle at 30% 30%, #4b4bff, #000099);
    border-color: #ccccff;
}

/* Action Buttons */
.action-btn {
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.2s;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.action-btn.hit {
    background: linear-gradient(to bottom, #4bff4b, #009900);
    color: white;
}

.action-btn.stand {
    background: linear-gradient(to bottom, #ff4b4b, #990000);
    color: white;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.action-btn:active {
    transform: translateY(1px);
}

@keyframes dealCard {
    from {
        transform: translate(-200px, -200px) rotate(-180deg) scale(0.5);
        opacity: 0;
    }

    to {
        transform: translate(0, 0) rotate(0) scale(1);
        opacity: 1;
    }
}