/* Stemwijzer 2025 - Modern CSS Styling */

/* Reset en basis styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Screen management */
.screen {
    display: none;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    flex: 1;
    margin-bottom: 20px;
}

.screen.active {
    display: block;
}

/* Progress bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #dee2e6;
}

.btn-secondary:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

/* Intro screen */
.intro-content h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.info-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid #667eea;
}

.info-box h3 {
    color: #667eea;
    margin-bottom: 15px;
}

.info-box ul {
    list-style: none;
    padding-left: 0;
}

.info-box li {
    padding: 5px 0;
    position: relative;
    padding-left: 25px;
}

.info-box li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.parties-info {
    margin: 30px 0;
}

.parties-info h3 {
    margin-bottom: 15px;
    color: #333;
}

.parties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 30px;
}

.party {
    background: #e9ecef;
    padding: 10px 15px;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

/* Theme selection */
.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.theme-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #dee2e6;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.theme-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.theme-card.selected {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: #667eea;
}

.theme-card h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.theme-card p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.selected-count {
    text-align: center;
    margin: 20px 0;
    font-weight: 600;
    color: #667eea;
}

/* Questions */
.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.question-number {
    font-weight: 600;
    color: #667eea;
}

.question-theme {
    background: #e9ecef;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    color: #666;
}

.question-container h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.question-container p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.options-container {
    margin: 30px 0;
}

.option {
    background: #f8f9fa;
    padding: 15px 20px;
    margin: 10px 0;
    border-radius: 8px;
    border: 2px solid #dee2e6;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.option:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.option.selected {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: #667eea;
}

.option-id {
    font-weight: bold;
    margin-right: 15px;
    min-width: 25px;
}

.question-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

/* Results */
.results-container {
    margin: 30px 0;
}

.top-matches {
    margin-bottom: 40px;
}

.result-item {
    background: #f8f9fa;
    padding: 20px;
    margin: 15px 0;
    border-radius: 10px;
    border-left: 5px solid #667eea;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-item.first {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-left-color: #fff;
}

.result-party {
    font-weight: 600;
    font-size: 1.2rem;
}

.result-score {
    font-size: 1.1rem;
    font-weight: 500;
}

.weighted-themes {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.weighted-themes h3 {
    margin-bottom: 15px;
    color: #333;
}

.theme-tag {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    margin: 5px;
    font-size: 0.9rem;
}

.results-actions {
    text-align: center;
    margin-top: 30px;
}

.results-actions button {
    margin: 0 10px;
}

/* Footer */
.footer {
    text-align: center;
    color: white;
    opacity: 0.8;
    margin-top: auto;
    padding-top: 20px;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .screen {
        padding: 20px;
    }
    
    .themes-grid {
        grid-template-columns: 1fr;
    }
    
    .parties-grid {
        grid-template-columns: 1fr;
    }
    
    .question-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .question-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .results-actions button {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
}

/* Animaties */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.screen.active {
    animation: fadeIn 0.5s ease;
}

/* Loading states */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Share knoppen */
.btn-share {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 5px;
}

.btn-share span {
    font-size: 1.2rem;
}

.btn-share.whatsapp {
    background: #25D366;
    color: white;
}

.btn-share.whatsapp:hover {
    background: #1da851;
    transform: translateY(-2px);
}

.btn-share.twitter {
    background: #1DA1F2;
    color: white;
}

.btn-share.twitter:hover {
    background: #0d8bd9;
    transform: translateY(-2px);
}

.btn-share.copy {
    background: #8b5cf6;
    color: white;
}

.btn-share.copy:hover {
    background: #7c3aed;
    transform: translateY(-2px);
}

.results-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.share-cta {
    font-size: 0.9rem;
    margin-top: 10px;
    opacity: 0.8;
}

/* Responsive voor mobiel */
@media (max-width: 600px) {
    .btn-share {
        flex: 1 1 45%;
        min-width: 140px;
        font-size: 0.85rem;
        padding: 10px 15px;
    }
}

.share-section {
    text-align: center;
    margin-top: 30px;
}

.share-section .share-cta {
    font-size: 1.1rem;
    color: #7c3aed;
    margin-bottom: 20px;
}

.intro-share {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
}

.intro-share a {
    color: #7c3aed;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.intro-share a:hover {
    opacity: 1;
    text-decoration: underline;
}
