/* Yes or No Picker - Professional Styles */

.yesno-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.yesno-wrapper {
    max-width: 950px;
    margin: 0 auto;
}

.yesno-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;
}

.yesno-icon {
    font-size: 2.8rem;
    display: inline-block;
    animation: shake 2s infinite;
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(10deg); }
    75% { transform: rotate(-10deg); }
}

.yesno-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-family: 'Poppins', sans-serif;
}

.yesno-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 2rem;
    box-shadow: var(--shadow);
}

/* Question Section */
.yesno-question-section {
    margin-bottom: 2rem;
}

.yesno-question-card {
    background: var(--bg);
    border-radius: 16px;
    padding: 1.2rem;
    border: 1px solid var(--border);
}

.yesno-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
    font-family: 'Poppins', sans-serif;
}

.yesno-input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
}

.yesno-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}

.yesno-helper {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
    display: block;
}

/* Decision Container */
.yesno-decision-container {
    margin-bottom: 2rem;
}

.yesno-decision-card {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 24px;
    padding: 2rem;
    text-align: center;
    color: white;
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.decision-question {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
}

.decision-answer {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.decision-icon {
    font-size: 3rem;
}

/* Action Buttons */
.yesno-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.action-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.7rem 1.3rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.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;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.primary-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(124,58,237,0.3);
}

/* Statistics */
.yesno-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.yesno-stat-card {
    background: var(--bg);
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--border);
}

.yesno-stat-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
}

.yesno-stat-label {
    font-size: 0.65rem;
    color: var(--text-light);
    margin-top: 0.3rem;
}

.yesno-stat-percent {
    font-size: 0.7rem;
    color: var(--primary);
    margin-top: 0.2rem;
    font-weight: 600;
}

/* History Section */
.yesno-history {
    background: var(--bg);
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.yesno-history h3 {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    color: var(--text);
}

.history-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-height: 120px;
    overflow-y: auto;
    margin-bottom: 0.8rem;
}

.history-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.history-item.yes {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid #22c55e;
}

.history-item.no {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid #ef4444;
}

.clear-history-btn {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0.3rem 0.8rem;
    font-size: 0.7rem;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.2s;
}

.clear-history-btn:hover {
    background: var(--danger);
    border-color: var(--danger);
    color: white;
}

/* Fun Facts */
.fun-facts {
    margin-bottom: 1.5rem;
}

.fun-fact-card {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: white;
}

.fun-fact-icon {
    font-size: 1.5rem;
}

.fun-fact-text {
    font-size: 0.85rem;
    line-height: 1.4;
    flex: 1;
}

/* 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;
}

.preset-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* 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: 500px;
    width: 90%;
    text-align: center;
}

.share-preview {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
}

.share-preview canvas {
    max-width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

/* SEO */
.yesno-seo {
    margin-top: 1.5rem;
    padding: 1.2rem;
    background: var(--surface);
    border-radius: 20px;
    border: 1px solid var(--border);
}

.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 ul {
    list-style: none;
    padding-left: 0;
}

.related-category li {
    margin: 0.5rem 0;
}

.related-category a {
    color: var(--primary);
    text-decoration: none;
}

/* Global Statistics Section */
.global-stats-section {
    /* background: linear-gradient(135deg, var(--primary-light), var(--primary)); */
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.global-stats-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.global-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.global-stat-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
    backdrop-filter: blur(10px);
}

.global-stat-card.yes-card {
    background: rgba(34, 197, 94, 0.25);
}

.global-stat-card.no-card {
    background: rgba(239, 68, 68, 0.25);
}

.global-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
}

.global-stat-label {
    font-size: 0.7rem;
    opacity: 0.9;
    margin-top: 0.3rem;
}

.global-stat-percent {
    font-size: 0.8rem;
    margin-top: 0.2rem;
    font-weight: 600;
}

.global-recent {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.8rem;
    margin: 0.8rem 0;
    font-size: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.recent-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.2);
}

.recent-badge.yes {
    background: rgba(34, 197, 94, 0.3);
}

.recent-badge.no {
    background: rgba(239, 68, 68, 0.3);
}

.global-last-updated {
    text-align: center;
    font-size: 0.65rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

/* Responsive for global stats */
@media (max-width: 768px) {
    .global-stats-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .global-stat-value {
        font-size: 1.5rem;
    }
    
    .global-recent {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .yesno-container {
        padding: 0 1rem;
    }
    
    .yesno-title {
        font-size: 2rem;
    }
    
    .yesno-card {
        padding: 1.2rem;
    }
    
    .yesno-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .yesno-stat-card:nth-child(5) {
        grid-column: span 2;
    }
    
    .decision-answer {
        font-size: 2rem;
    }
    
    .preset-grid {
        gap: 0.5rem;
    }
    
    .preset-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
    }
}