/* Lottery Generator - Professional Styles */

.lottery-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.lottery-wrapper {
    max-width: 950px;
    margin: 0 auto;
}

.lottery-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;
}

.lottery-icon {
    font-size: 2.8rem;
    display: inline-block;
    animation: spin 2s infinite;
}

@keyframes spin {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(10deg); }
    75% { transform: rotate(-10deg); }
}

.lottery-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-family: 'Poppins', sans-serif;
}

.lottery-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 2rem;
    box-shadow: var(--shadow);
}

/* Presets */
.lottery-presets {
    margin-bottom: 1.5rem;
}

.preset-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 0.5rem;
}

.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;
    transform: translateY(-2px);
}

/* Settings */
.lottery-settings {
    background: var(--bg);
    border-radius: 16px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.settings-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.toggle-advanced {
    background: transparent;
    border: 1px solid var(--border);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.2s;
}

.toggle-advanced:hover {
    background: var(--primary);
    color: white;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.setting-card {
    padding: 0.5rem;
}

.lottery-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
    font-size: 0.85rem;
}

.lottery-input {
    width: 100%;
    padding: 0.6rem 0.8rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.9rem;
}

.lottery-select {
    width: 100%;
    padding: 0.6rem 0.8rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.9rem;
    cursor: pointer;
}

.helper-text {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
    display: block;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text);
    font-size: 0.85rem;
}

.advanced-settings {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

/* Action Buttons */
.lottery-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 */
.lottery-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.lottery-stat-card {
    background: var(--bg);
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--border);
}

.lottery-stat-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
}

.lottery-stat-label {
    font-size: 0.65rem;
    color: var(--text-light);
    margin-top: 0.3rem;
}

/* Result Section */
.lottery-result {
    background: var(--bg);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    border: 1px solid var(--border);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.generation-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    background: var(--primary);
    color: white;
}

.lottery-numbers-display {
    font-size: 1.5rem;
    font-weight: 700;
    padding: 1rem;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.number-ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: white;
    border-radius: 50%;
    font-size: 1.3rem;
    font-weight: 800;
    box-shadow: var(--shadow);
    animation: bounceIn 0.3s ease;
}

.bonus-number-ball {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

@keyframes bounceIn {
    0% { transform: scale(0); opacity: 0; }
    80% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.bonus-numbers-display {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.bonus-label {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-right: 0.5rem;
}

/* Frequency Chart */
.frequency-section {
    background: var(--bg);
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.frequency-section h3 {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    color: var(--text);
}

.chart-container {
    max-height: 300px;
    margin-bottom: 0.8rem;
}

.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;
}

/* Tips Section */
.tips-section {
    margin-bottom: 1.5rem;
}

.tips-section h3 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--text);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.8rem;
}

.tip-card {
    background: var(--bg);
    border-radius: 12px;
    padding: 0.8rem;
    border: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: center;
}

/* Rating System */
.rating-system {
    margin-bottom: 1.5rem;
}

.rating-container {
    background: var(--bg);
    border-radius: 16px;
    padding: 1rem;
    border: 1px solid var(--border);
}

.stars-wrapper {
    display: flex;
    gap: 0.25rem;
}

.star {
    font-size: 1.5rem;
    cursor: pointer;
    color: #fbbf24;
}

/* 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);
}

.share-buttons {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

/* SEO */
.lottery-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;
}

/* Responsive */
@media (max-width: 768px) {
    .lottery-container {
        padding: 0 1rem;
    }
    
    .lottery-title {
        font-size: 2rem;
    }
    
    .lottery-card {
        padding: 1.2rem;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .lottery-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .number-ball {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .preset-grid {
        gap: 0.5rem;
    }
    
    .preset-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
}