/* ============================================
   ÇEKİLİŞPRO - style.css
   Aesthetic: Dark Neon / Arcade Energy
   ============================================ */

:root {
    --bg: #0a0a0f;
    --surface: #12121a;
    --surface-2: #1a1a26;
    --border: rgba(255,255,255,0.07);
    --accent: #ff3cac;
    --accent-2: #7b2fff;
    --accent-3: #00f5d4;
    --text: #f0f0f8;
    --text-muted: #7070a0;
    --text-dim: #3a3a5a;
    --success: #00f5d4;
    --warning: #ffd93d;
    --radius: 16px;
    --radius-sm: 10px;
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --font-mono: 'DM Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ---- Background Orbs ---- */
.bg-orbs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation: float1 12s ease-in-out infinite;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-2) 0%, transparent 70%);
    bottom: -150px;
    left: -100px;
    animation: float2 15s ease-in-out infinite;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-3) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float3 10s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-30px, 40px); }
}
@keyframes float2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(40px, -30px); }
}
@keyframes float3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
}

/* ---- App Wrapper ---- */
.app-wrapper {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
    padding: 32px 20px 80px;
}

/* ---- Header ---- */
.app-header {
    text-align: center;
    margin-bottom: 32px;
    animation: fadeDown 0.6s ease both;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 4px;
}

.logo-icon {
    font-size: 2.5rem;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 3rem;
    letter-spacing: 4px;
    color: var(--text);
}

.logo-accent {
    color: var(--accent);
    text-shadow: 0 0 20px var(--accent);
}

.logo-sub {
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ---- Mode Tabs ---- */
.mode-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    background: var(--surface);
    padding: 6px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    animation: fadeUp 0.6s 0.1s ease both;
}

.mode-tab {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.25s ease;
}

.mode-tab.active {
    background: var(--surface-2);
    color: var(--text);
    box-shadow: 0 0 0 1px var(--border);
}

.mode-tab:hover:not(.active) {
    color: var(--text);
}

/* ---- Cards ---- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 20px;
    animation: fadeUp 0.6s 0.15s ease both;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: rgba(255,255,255,0.12);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.card-header h2 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
}

/* ---- Badges ---- */
.badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-recommended {
    background: rgba(0, 245, 212, 0.12);
    color: var(--accent-3);
    border: 1px solid rgba(0, 245, 212, 0.2);
}

.badge-pro {
    background: rgba(255, 60, 172, 0.12);
    color: var(--accent);
    border: 1px solid rgba(255, 60, 172, 0.2);
}

/* ---- Hint & Warning ---- */
.hint-text {
    font-size: 0.87rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.7;
}

.hint-text strong {
    color: var(--text);
}

.api-warning {
    background: rgba(255, 217, 61, 0.07);
    border: 1px solid rgba(255, 217, 61, 0.2);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 0.87rem;
    color: var(--warning);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* ---- Inputs ---- */
.input-group {
    margin-bottom: 16px;
}

.input-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 7px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.inp {
    width: 100%;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.93rem;
    transition: all 0.2s ease;
    outline: none;
}

.inp:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 60, 172, 0.1);
}

.inp::placeholder {
    color: var(--text-dim);
}

.textarea {
    resize: vertical;
    min-height: 140px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.7;
}

.search-inp {
    padding: 8px 12px;
    font-size: 0.85rem;
    width: 180px;
}

/* ---- Checkboxes ---- */
.options-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.checkbox-label:hover {
    color: var(--text);
}

.checkbox-label input[type="checkbox"] {
    accent-color: var(--accent);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.93rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    letter-spacing: 0.2px;
}

.btn-full {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    margin-top: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    box-shadow: 0 4px 20px rgba(255, 60, 172, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(255, 60, 172, 0.45);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-winner {
    background: linear-gradient(135deg, #ffd93d, #ff8c00);
    color: #0a0a0f;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 14px 28px;
    box-shadow: 0 4px 20px rgba(255, 217, 61, 0.3);
}

.btn-winner:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 217, 61, 0.5);
}

.btn-secondary {
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--accent-3);
    color: var(--accent-3);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    color: var(--text);
    border-color: rgba(255,255,255,0.15);
}

.btn-arrow {
    transition: transform 0.2s;
}

.btn-primary:hover .btn-arrow {
    transform: translateX(4px);
}

/* ---- Help Link ---- */
.help-link {
    color: var(--accent-3);
    text-decoration: none;
    font-size: 0.8rem;
    margin-left: 8px;
}

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

/* ---- Results Card ---- */
.results-card {
    animation: fadeUp 0.5s ease both;
}

.results-header {
    margin-bottom: 24px;
}

.stats-row {
    display: flex;
    gap: 16px;
}

.stat-box {
    flex: 1;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: center;
}

.stat-num {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    line-height: 1;
    color: var(--accent);
    letter-spacing: 1px;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ---- Winner Count Picker ---- */
.winner-count-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 14px 16px;
    background: var(--surface-2);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.winner-count-row label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.number-picker {
    display: flex;
    align-items: center;
    gap: 12px;
}

.number-picker button {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.number-picker button:hover {
    border-color: var(--accent);
    color: var(--accent);
}

#winner-count-display {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--text);
    min-width: 30px;
    text-align: center;
}

/* ---- Action Buttons ---- */
.action-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.action-buttons .btn-winner {
    flex: 1;
    min-width: 180px;
}

/* ---- Participants ---- */
.participants-panel {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.panel-header h3 {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.participants-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    scrollbar-width: thin;
    scrollbar-color: var(--text-dim) transparent;
}

.participants-list::-webkit-scrollbar {
    width: 4px;
}

.participants-list::-webkit-scrollbar-track {
    background: transparent;
}

.participants-list::-webkit-scrollbar-thumb {
    background: var(--text-dim);
    border-radius: 4px;
}

.participant-tag {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 0.82rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    transition: all 0.2s;
    cursor: default;
}

.participant-tag:hover {
    border-color: var(--accent);
    color: var(--text);
}

.participant-tag.winner-tag {
    background: rgba(255, 217, 61, 0.1);
    border-color: var(--warning);
    color: var(--warning);
}

/* ---- Winner Overlay ---- */
.winner-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.winner-overlay.active {
    display: flex;
    animation: overlayIn 0.3s ease;
}

.winner-modal {
    background: var(--surface);
    border: 1px solid rgba(255, 217, 61, 0.3);
    border-radius: 24px;
    padding: 48px 40px;
    text-align: center;
    max-width: 500px;
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(255, 217, 61, 0.15);
    animation: modalPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.winner-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--warning), var(--accent-3));
}

.confetti-area {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    animation: confettiFall linear both;
    top: -10px;
}

@keyframes confettiFall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(600px) rotate(720deg); opacity: 0; }
}

.winner-trophy {
    font-size: 4rem;
    margin-bottom: 12px;
    animation: trophyBounce 0.6s 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes trophyBounce {
    from { transform: scale(0) rotate(-20deg); opacity: 0; }
    to { transform: scale(1) rotate(0deg); opacity: 1; }
}

.winner-label {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 6px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.winner-names {
    margin-bottom: 8px;
}

.winner-name-item {
    font-family: var(--font-display);
    font-size: 2.8rem;
    letter-spacing: 2px;
    color: var(--warning);
    text-shadow: 0 0 30px rgba(255, 217, 61, 0.5);
    line-height: 1.2;
    animation: nameReveal 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.winner-name-item.multi {
    font-size: 2rem;
}

@keyframes nameReveal {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.winner-sub {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 28px;
}

.winner-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* ---- Loading ---- */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(8px);
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ---- Animations ---- */
@keyframes fadeDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes overlayIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalPop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ---- Toast ---- */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 10px 22px;
    font-size: 0.88rem;
    color: var(--text);
    z-index: 2000;
    opacity: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.error {
    border-color: var(--accent);
    color: var(--accent);
}

.toast.success {
    border-color: var(--accent-3);
    color: var(--accent-3);
}

/* ---- Responsive ---- */
@media (max-width: 480px) {
    .app-wrapper {
        padding: 20px 14px 60px;
    }

    .logo-text {
        font-size: 2.2rem;
    }

    .card {
        padding: 20px;
    }

    .stats-row {
        gap: 10px;
    }

    .stat-num {
        font-size: 2rem;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .btn {
        width: 100%;
    }

    .winner-modal {
        padding: 36px 24px;
    }

    .winner-name-item {
        font-size: 2rem;
    }

    .panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .search-inp {
        width: 100%;
    }

    .mode-tabs {
        flex-direction: column;
    }

    .options-row {
        flex-direction: column;
        gap: 10px;
    }
}
