/* Wheel of Choice - Professional Styles (Following Age Calculator Theme) */

.wheel-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.wheel-wrapper {
    max-width: 950px;
    margin: 0 auto;
}

.wheel-title {
    font-size: 3rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text);
    letter-spacing: -0.02em;
}

.wheel-emoji {
    font-size: 2.8rem;
    display: inline-block;
}

.wheel-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-family: 'Poppins', sans-serif;
}

.wheel-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 2rem;
    box-shadow: var(--shadow);
}

/* Input Group - Side by Side */
.wheel-input-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.wheel-input-card {
    background: var(--bg);
    border-radius: 16px;
    padding: 1.2rem;
    border: 1px solid var(--border);
}

.wheel-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
    font-family: 'Poppins', sans-serif;
}

.required {
    color: #ef4444;
}

.wheel-textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 0.9rem;
    font-family: 'Fira Code', monospace;
    resize: vertical;
    transition: all 0.2s;
}

.wheel-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}

.wheel-helper {
    font-size: 0.7rem;
    color: var(--text-light);
    margin-top: 0.4rem;
    display: block;
}

.wheel-button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.wheel-stats-mini {
    display: flex;
    gap: 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--border);
}

.stat-mini {
    font-size: 0.8rem;
    color: var(--text-light);
}

.stat-mini strong {
    color: var(--primary);
    font-size: 1rem;
}

/* Action Buttons */
.action-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Poppins', sans-serif;
}

.action-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.primary-action-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Poppins', sans-serif;
}

.primary-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(124,58,237,0.3);
}

/* Wheel Area */
.wheel-spin-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.wheel-canvas-wrapper {
    position: relative;
    display: inline-block;
    margin: 1rem 0;
}

#wheelCanvas {
    max-width: 100%;
    height: auto;
    background: var(--surface);
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
}

.wheel-pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 40px solid var(--primary);
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
    z-index: 10;
}

.wheel-spin-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
}

/* Result Section */
.wheel-result {
    background: var(--bg);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    border: 1px solid var(--border);
    scroll-margin-top: 80px;
}

.result-header {
    margin-bottom: 0.5rem;
}

.result-label {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
}

.winner-text {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    background-clip: text;
    -webkit-background-clip: text;
    color: var(--primary);
    word-break: break-word;
    padding: 1rem;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.result-actions {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    margin-top: 0.5rem;
}

/* Presets */
.preset-section {
    margin-bottom: 1.5rem;
}

.preset-section h3 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--text);
}

.preset-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.preset-btn {
    background: transparent;
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.2s;
    font-family: 'Poppins', sans-serif;
}

.preset-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Rating System */
/* .rating-system {
    margin-bottom: 1.5rem;
}

.rating-container {
    background: var(--bg);
    border-radius: 16px;
    padding: 1rem;
    border: 1px solid var(--border);
}

.rating-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.stars-wrapper {
    display: flex;
    gap: 0.25rem;
}

.star {
    font-size: 1.5rem;
    cursor: pointer;
    color: #fbbf24;
    transition: transform 0.1s;
}

.star:hover {
    transform: scale(1.2);
}

.rating-stats {
    font-size: 0.85rem;
    color: var(--text-light);
}

.rating-comment-area {
    margin-top: 1rem;
}

.rating-textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-family: inherit;
    resize: vertical;
}

.rating-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.rating-submit-btn, .rating-cancel-btn {
    padding: 0.5rem 1rem;
    border-radius: 40px;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

.rating-submit-btn {
    background: var(--primary);
    color: white;
}

.rating-cancel-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
} */

/* Share Modal */
.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.share-modal.active {
    display: flex;
}

.share-modal-content {
    background: var(--surface);
    border-radius: 24px;
    padding: 2rem;
    max-width: 450px;
    width: 90%;
    text-align: center;
}

.share-buttons {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.share-btn {
    padding: 0.7rem 1.2rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.share-wa { background: #25D366; color: white; }
.share-twitter { background: #1DA1F2; color: white; }
.share-copy { background: var(--primary); color: white; }
.share-close { background: var(--border); color: var(--text); }

.share-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* SEO Content */
.wheel-seo {
    margin-top: 1.5rem;
    padding: 1.2rem;
    background: var(--surface);
    border-radius: 20px;
    border: 1px solid var(--border);
}

.wheel-seo h2, .wheel-seo h3, .wheel-seo h4 {
    color: var(--text);
    margin: 1rem 0 0.5rem;
}

.wheel-seo h2:first-child {
    margin-top: 0;
}

.feature-list {
    padding-left: 1.2rem;
    margin: 0.8rem 0;
}

.feature-list li {
    margin-bottom: 0.4rem;
    color: var(--text-light);
    font-size: 0.85rem;
}

.related-article-cta {
    background: var(--bg);
    padding: 1rem;
    border-radius: 12px;
    margin-top: 1.5rem;
    text-align: center;
    border-left: 4px solid var(--primary);
}

.imagesplit-related {
    max-width: 950px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.related-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 1rem 0;
}

.related-category {
    flex: 1;
    min-width: 180px;
}

.related-category h4 {
    margin-bottom: 0.5rem;
    color: var(--text);
}

.related-category ul {
    list-style: none;
    padding-left: 0;
}

.related-category li {
    margin: 0.5rem 0;
}

.related-category a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s;
}

.related-category a:hover {
    text-decoration: underline;
}

.related-footer {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .wheel-container {
        padding: 0 1rem;
    }
    
    .wheel-title {
        font-size: 2rem;
    }
    
    .wheel-card {
        padding: 1.2rem;
    }
    
    .wheel-input-group {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .winner-text {
        font-size: 1.3rem;
    }
    
    .wheel-pointer {
        border-left: 14px solid transparent;
        border-right: 14px solid transparent;
        border-top: 28px solid var(--primary);
        top: -14px;
    }
    
    .preset-grid {
        gap: 0.5rem;
    }
    
    .preset-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
    }
    
    .wheel-stats-mini {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}