:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

header { background: var(--card-bg); box-shadow: 0 2px 10px rgba(0,0,0,0.05); padding: 1rem 0; position: sticky; top: 0; z-index: 100; }
header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { color: var(--primary); font-size: 1.5rem; font-weight: 800; text-decoration: none; }
nav a { margin-left: 20px; text-decoration: none; color: var(--text); font-weight: 500; transition: color 0.2s; }
nav a:hover { color: var(--primary); }

main { padding: 40px 0; }
.wheel-section { display: flex; flex-direction: column; align-items: center; margin-bottom: 40px; }
.wheel-container { position: relative; width: 350px; height: 350px; margin-bottom: 20px; }
@media (min-width: 768px) { .wheel-container { width: 500px; height: 500px; } }
#wheelCanvas { width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
.pointer { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 20px solid transparent; border-right: 20px solid transparent; border-top: 40px solid var(--secondary); z-index: 10; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2)); }

.controls { text-align: center; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; border: none; padding: 15px 40px; font-size: 1.2rem; font-weight: bold; border-radius: 50px; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.hint { color: var(--text-light); margin-top: 10px; font-size: 0.9rem; }

.winner-display {
    display: none;
    margin-top: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary);
    background: #fdf2f8;
    padding: 15px 30px;
    border-radius: 12px;
    border: 2px solid var(--secondary);
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes popIn {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.settings-section { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }
@media (min-width: 768px) { .settings-section { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--card-bg); padding: 20px; border-radius: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.card h3 { margin-bottom: 15px; color: var(--primary); font-size: 1.1rem; }
.mode-options label { display: block; margin-bottom: 10px; cursor: pointer; font-size: 0.95rem; }
.entries-controls { display: flex; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.entries-controls button { background: var(--bg); border: 1px solid #cbd5e1; padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 0.85rem; transition: background 0.2s; }
.entries-controls button:hover { background: #e2e8f0; }
textarea { width: 100%; padding: 10px; border: 1px solid #cbd5e1; border-radius: 8px; resize: vertical; font-family: inherit; margin-bottom: 10px; font-size: 0.95rem; }
.btn-secondary { width: 100%; background: var(--primary); color: white; border: none; padding: 10px; border-radius: 8px; cursor: pointer; font-weight: 600; transition: background 0.2s; }
.btn-secondary:hover { background: var(--primary-dark); }
.templates { display: flex; flex-wrap: wrap; gap: 8px; }
.template-btn { background: #f1f5f9; border: none; padding: 8px 12px; border-radius: 20px; cursor: pointer; font-size: 0.85rem; transition: background 0.2s; }
.template-btn:hover { background: #e2e8f0; }

.info-section { margin-bottom: 50px; text-align: center; }
.info-section h2 { font-size: 1.8rem; margin-bottom: 30px; color: var(--text); }
.steps { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--card-bg); padding: 30px; border-radius: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.step-number { width: 40px; height: 40px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; margin: 0 auto 15px; font-size: 1.1rem; }
.step h4 { margin-bottom: 10px; font-size: 1.1rem; }
.step p { color: var(--text-light); font-size: 0.95rem; }

.use-cases-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) { .use-cases-grid { grid-template-columns: repeat(2, 1fr); } }
.use-case { background: var(--card-bg); padding: 25px; border-radius: 12px; text-align: left; border-left: 4px solid var(--secondary); box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.use-case h4 { margin-bottom: 10px; font-size: 1.1rem; }
.use-case p { color: var(--text-light); font-size: 0.95rem; }

.faq-item { background: var(--card-bg); padding: 20px; border-radius: 8px; margin-bottom: 15px; text-align: left; box-shadow: 0 2px 4px rgba(0,0,0,0.03); }
.faq-item h4 { color: var(--primary); margin-bottom: 8px; font-size: 1.05rem; }
.faq-item p { color: var(--text-light); font-size: 0.95rem; }

.seo-content { background: var(--card-bg); padding: 40px; border-radius: 12px; text-align: left; margin-bottom: 40px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.seo-content h2 { font-size: 1.5rem; margin-bottom: 15px; color: var(--text); }
.seo-content p { margin-bottom: 15px; color: var(--text-light); font-size: 0.95rem; }

footer { background: var(--text); color: white; padding: 30px 0; text-align: center; }
footer p { font-size: 0.9rem; color: #94a3b8; }
footer a { color: #94a3b8; text-decoration: none; transition: color 0.2s; }
footer a:hover { color: white; }