@font-face {
    font-family: 'CalSans-SemiBold';
    src: url('CalSans-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

:root {
    --primary-purple: #8358ff;
    --dark-bg: #0f0f23;
    --card-bg: #1a1a2e;
    --text-primary: #ffffff;
    --text-secondary: #b8b8cc;
    --gradient-start: #8358ff;
    --gradient-end: #5c2dd5;
    --success-color: #10b981;
    --error-color: #ef4444;
}

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

body {
    font-family: 'DM Sans', sans-serif;
    background: url('https://nft.tims.tv/wp-content/uploads/2023/04/gradient_dark.jpg') no-repeat center center fixed;
    background-size: cover;
    color: var(--text-primary);
    height: 100vh;
    overflow: hidden;
    padding-top: 80px; /* Header için boşluk */
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: calc(100vh - 80px);
    padding: 20px 0;
    overflow-y: auto;
}

.hero-section {
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.main-title {
    font-family: 'CalSans-SemiBold', sans-serif;
    font-size: 3.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 400;
}

.search-section {
    margin-bottom: 3rem;
}

.input-container {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 300px;
    padding: 1rem 1.5rem;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 9999px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.8);
}

.search-input::placeholder {
    color: var(--text-secondary);
}

.check-button {
    padding: 1rem 2rem;
    background: transparent;
    border: none;
    border-radius: 9999px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    min-width: 140px;
    box-shadow: 5px 5px 10px rgba(108, 106, 213, 0.25), inset 2px 2px 6px #ab80ff, inset -5px -5px 10px #5b30d7;
}

.check-button:hover {
    transform: translateY(-2px);
}

.check-button:active {
    transform: translateY(0);
}

.result-section {
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateY(20px);
}

.result-section.show {
    opacity: 1;
    transform: translateY(0);
}

.hidden {
    display: none !important;
}

.winner-result, .loser-result {
    border-radius: 20px;
    padding: 3rem 2rem;
    margin: 2rem 0;
}

.winner-result {
    box-shadow: 5px 5px 10px rgba(16, 185, 129, 0.25), inset 2px 2px 6px rgba(16, 185, 129, 0.6), inset -5px -5px 10px rgba(16, 185, 129, 0.3);
    background: transparent;
}

.winner-poster {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.loser-result {
    box-shadow: 5px 5px 10px rgba(239, 68, 68, 0.25), inset 2px 2px 6px rgba(239, 68, 68, 0.6), inset -5px -5px 10px rgba(239, 68, 68, 0.3);
    background: transparent;
}

/* CSS Confetti Animation */
@keyframes confettiFall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

.confetti-piece {
    pointer-events: none;
}

.winner-result h2 {
    color: var(--success-color);
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.loser-result h2 {
    color: var(--error-color);
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.winner-result p, .loser-result p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.deadline-warning {
    color: #ff6b6b !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    margin-top: 1rem !important;
    margin-bottom: 0 !important;
}

.form-button {
    background: transparent;
    border: none;
    border-radius: 9999px;
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    box-shadow: 5px 5px 10px rgba(16, 185, 129, 0.25), inset 2px 2px 6px rgba(16, 185, 129, 0.6), inset -5px -5px 10px rgba(16, 185, 129, 0.3);
}

.form-button:hover {
    transform: translateY(-2px);
}

.form-button:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .input-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-input {
        min-width: auto;
    }
    
    .winner-result, .loser-result {
        padding: 2rem 1.5rem;
    }
    
    .winner-poster {
        max-width: 250px;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .winner-result h2, .loser-result h2 {
        font-size: 1.5rem;
    }
    
    .success-icon, .fail-icon {
        font-size: 3rem;
    }
    
    .winner-poster {
        max-width: 200px;
    }
}

/* Animation for loading states */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}