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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a5f3f 0%, #0d3b29 50%, #1a1a1a 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Kar animasyonu */
.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: #fff;
    font-size: 1em;
    opacity: 0.8;
    animation: fall linear infinite;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

@keyframes fall {
    to {
        transform: translateY(100vh);
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 2;
}

/* Yılbaşı ağacı dekorasyonu */
.christmas-tree {
    position: fixed;
    bottom: -50px;
    left: -100px;
    width: 300px;
    height: 400px;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
    color: #2d8659;
}

.christmas-tree.right {
    left: auto;
    right: -100px;
}

/* Card Styles */
.card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 3px solid #d4af37;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #d4af37, #ffd700, #d4af37);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.5;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.header h1 {
    color: #c41e3a;
    font-size: 3em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    font-weight: 700;
}

.header p {
    color: #2d8659;
    font-size: 1.2em;
    font-weight: 500;
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #1a5f3f;
    font-weight: 600;
    font-size: 1.1em;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #d4af37;
    border-radius: 10px;
    font-size: 1em;
    background: white;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #c41e3a;
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Buttons */
.btn {
    padding: 15px 40px;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #c41e3a 0%, #a01729 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #2d8659 0%, #1a5f3f 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(45, 134, 89, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 134, 89, 0.4);
}

.btn-gold {
    background: linear-gradient(135deg, #d4af37 0%, #aa8a2a 100%);
    color: #1a1a1a;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-full {
    width: 100%;
}

.btn-danger {
    background: linear-gradient(135deg, #8b0000 0%, #660000 100%);
    color: white;
    padding: 8px 16px;
    font-size: 0.9em;
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

/* Navigation */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px 30px;
    border-radius: 15px;
    border: 2px solid #d4af37;
}

.nav h2 {
    color: #c41e3a;
    font-size: 1.8em;
}

.nav .user-info {
    color: #2d8659;
    font-weight: 600;
}

/* Raffle List */
.raffle-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.raffle-item {
    background: white;
    padding: 25px;
    border-radius: 15px;
    border: 3px solid #d4af37;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

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

.raffle-item h3 {
    color: #c41e3a;
    margin-bottom: 10px;
    font-size: 1.5em;
}

.raffle-item p {
    color: #666;
    margin-bottom: 15px;
}

.raffle-stats {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat {
    text-align: center;
}

.stat-label {
    font-size: 0.8em;
    color: #666;
}

.stat-value {
    font-size: 1.5em;
    font-weight: 700;
    color: #2d8659;
}

.raffle-link {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    margin: 15px 0;
    word-break: break-all;
    font-size: 0.9em;
    color: #666;
}

/* Participant List */
.participant-list {
    margin-top: 20px;
}

.participant-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: white;
    border: 2px solid #d4af37;
    border-radius: 10px;
    margin-bottom: 10px;
}

.participant-item:hover {
    background: #f8f9fa;
}

.participant-name {
    font-weight: 600;
    color: #1a5f3f;
    font-size: 1.1em;
}

/* Draw Interface */
.draw-container {
    text-align: center;
    padding: 40px 20px;
}

.gift-box {
    font-size: 150px;
    margin: 30px 0;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.spinning {
    animation: spin 0.5s linear infinite !important;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.result-display {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #fff5e6 0%, #ffe6cc 100%);
    border: 3px solid #d4af37;
    border-radius: 15px;
}

.result-display h2 {
    color: #c41e3a;
    font-size: 2.5em;
    margin-bottom: 20px;
}

.result-name {
    color: #2d8659;
    font-size: 3em;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Confetti */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    animation: confetti-fall 3s linear infinite;
}

@keyframes confetti-fall {
    to {
        transform: translateY(100vh) rotate(360deg);
    }
}

/* Results Table */
.results-table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}

.results-table th,
.results-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 2px solid #d4af37;
}

.results-table th {
    background: linear-gradient(135deg, #c41e3a 0%, #a01729 100%);
    color: white;
    font-weight: 600;
}

.results-table tr:hover {
    background: #f8f9fa;
}

/* Responsive */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2em;
    }
    
    .raffle-list {
        grid-template-columns: 1fr;
    }
    
    .nav {
        flex-direction: column;
        gap: 15px;
    }
    
    .gift-box {
        font-size: 100px;
    }
    
    .result-name {
        font-size: 2em;
    }
}

/* Loading Spinner */
.spinner {
    border: 4px solid rgba(212, 175, 55, 0.3);
    border-top: 4px solid #d4af37;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

/* Text Link */
.text-link {
    color: #c41e3a;
    text-decoration: none;
    font-weight: 600;
}

.text-link:hover {
    text-decoration: underline;
}

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

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}
