@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400..700&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
:root {
    --primary-red: #c0392b;
    --primary-green: #27ae60;
    --gold: #f1c40f;
    --dark-bg: #2c3e50;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
}

* {
    box-sizing: border-box;
}

body {
    background: url(bg.webp) no-repeat center center fixed;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
}

/* Kayan Kar Taneleri (Daha soft) */
.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.snowflake {
    color: #fff;
    font-size: 1.5em;
    font-family: Arial;
    text-shadow: 0 0 5px rgba(255,255,255,0.8);
    position: fixed;
    top: -10%;
    z-index: 9999;
    user-select: none;
    cursor: default;
    animation-name: snowflakes-fall, snowflakes-shake;
    animation-duration: 10s, 3s;
    animation-timing-function: linear, ease-in-out;
    animation-iteration-count: infinite, infinite;
    animation-play-state: running, running;
}

@keyframes snowflakes-fall {
    0% { top: -10%; }
    100% { top: 100%; }
}

@keyframes snowflakes-shake {
    0% { transform: translateX(0px); }
    50% { transform: translateX(80px); }
    100% { transform: translateX(0px); }
}

.snowflake:nth-of-type(0) { left: 1%; animation-delay: 0s, 0s; }
.snowflake:nth-of-type(1) { left: 10%; animation-delay: 1s, 1s; }
.snowflake:nth-of-type(2) { left: 20%; animation-delay: 6s, 0.5s; }
.snowflake:nth-of-type(3) { left: 30%; animation-delay: 4s, 2s; }
.snowflake:nth-of-type(4) { left: 40%; animation-delay: 2s, 2s; }
.snowflake:nth-of-type(5) { left: 50%; animation-delay: 8s, 3s; }
.snowflake:nth-of-type(6) { left: 60%; animation-delay: 6s, 2s; }
.snowflake:nth-of-type(7) { left: 70%; animation-delay: 2.5s, 1s; }
.snowflake:nth-of-type(8) { left: 80%; animation-delay: 1s, 0s; }
.snowflake:nth-of-type(9) { left: 90%; animation-delay: 3s, 1.5s; }

/* Container - Glassmorphism */
.container {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(15px);
    padding: 3rem;
    width: 70%;
    max-width: 550px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    position: relative;
    z-index: 10;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


h1 {
    font-family: 'Dancing Script', cursive;
    color: #c0392b;
    font-size: 3rem;
    text-align: center;
    margin-top: 0;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 0px rgba(255,255,255,0.5);
}

label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 1rem;
    display: block;
    margin-bottom: 0.5rem;
}

input, select {
    width: 100%;
    padding: 15px;
    border: 2px solid transparent;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
}

input:focus, select:focus {
    outline: none;
    border-color: #27ae60;
    background: #fff;
    box-shadow: 0 0 10px rgba(39, 174, 96, 0.2);
}

button {
    margin-top: 2rem;
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #c0392b, #e74c3c);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.3rem;
    font-family: 'Dancing Script', cursive;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(192, 57, 43, 0.4);
    transition: all 0.3s ease;
}

button:hover {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(192, 57, 43, 0.6);
}

.alert {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert-success { background-color: rgba(212, 237, 218, 0.9); color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background-color: rgba(248, 215, 218, 0.9); color: #721c24; border: 1px solid #f5c6cb; }

.hidden { display: none; }

/* Admin Panel Tables */
.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 1.5rem;
    background: rgba(255,255,255,0.8);
    border-radius: 10px;
    overflow: hidden;
}

.admin-table th {
    background: #c0392b;
    color: white;
    padding: 15px;
    font-family: 'Dancing Script', cursive;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.admin-table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover td {
    background: rgba(255,255,255,0.5);
}

.btn-group {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.btn-draw, .btn-mail {
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    text-transform: none;
    font-size: 1rem;
}

.btn-draw { background: linear-gradient(45deg, #f39c12, #f1c40f); color: #fff; text-shadow: 1px 1px 0 rgba(0,0,0,0.1); }
.btn-mail { background: linear-gradient(45deg, #2980b9, #3498db); color: #fff; }

.match-info {
    background: linear-gradient(to right, #fff3cd, #ffeeba);
    border-left: 5px solid #ffc107;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* Alt linkler */
a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}
a:hover {
    color: #c0392b;
}

@media screen and (max-width: 768px) {
    .container {
        width: 100%;
        height: auto;
        min-height: 100vh;
    }
    label, input, select{
        font-size: .85rem
    }
}