/*
Theme Name: National Idiot
Description: WordPress tema til nationalidiot.dk afstemning - eksakt kopi af nationalfisk.dk design
Version: 1.0
Author: nationalidiot.dk
Text Domain: nationalidiot
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.site-branding {
    text-align: center;
}

.site-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.logo {
    height: 60px;
    width: auto;
}

.site-description {
    font-size: 1.2rem;
    opacity: 0.9;
    font-style: italic;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.hero-description {
    font-size: 1.3rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: #fff;
}

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

/* Voting Section - nationalfisk.dk style */
.voting-section {
    padding: 60px 0;
    background: white;
}

.voting-section h3 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 15px;
    color: #333;
}

.voting-instructions {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.category-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background: white;
    border: 3px solid transparent;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.category-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.category-card input[type="radio"]:checked + .category-label {
    background: #fff;
}

.category-card input[type="radio"]:checked {
    & ~ .vote-count {
        background: #ff6b35;
        color: white;
    }
}

.category-card[data-category] input[type="radio"]:checked ~ .category-label,
.category-card[data-category] input[type="radio"]:checked + .category-label {
    border: 3px solid #ff6b35;
}

.category-label {
    display: block;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    padding: 20px;
    text-align: center;
    border: 3px solid #eee;
    border-radius: 12px;
}

.category-icon {
    text-align: center;
    margin-bottom: 15px;
}

.category-image {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.category-name {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.category-slogan {
    font-size: 1.1rem;
    color: #ff6b35;
    font-weight: bold;
    margin-bottom: 10px;
    font-style: italic;
}

.category-description {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
}

.vote-count {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f0f0f0;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

/* Email Section */
.email-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.email-input-wrapper {
    margin-bottom: 20px;
}

.email-input-wrapper label {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.email-input {
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    width: 300px;
    max-width: 100%;
    transition: border-color 0.3s ease;
}

.email-input:focus {
    outline: none;
    border-color: #ff6b35;
}

.email-note {
    display: block;
    margin-top: 8px;
    color: #666;
    font-size: 0.9rem;
}

.submit-vote-btn {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.submit-vote-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,107,53,0.3);
}

.submit-vote-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Vote Message */
.vote-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
}

.vote-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.vote-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Results Section */
.results-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.results-section h3 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 15px;
    color: #333;
}

.results-section p {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
}

.results-container {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.loading-results {
    text-align: center;
    padding: 40px;
    font-size: 1.1rem;
    color: #666;
}

.result-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.result-item:last-child {
    border-bottom: none;
}

.result-rank {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff6b35;
    width: 40px;
    text-align: center;
}

.result-category {
    flex: 1;
    margin-left: 20px;
}

.result-category-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.result-votes {
    font-size: 1.1rem;
    color: #666;
}

.result-bar {
    width: 200px;
    height: 20px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin-left: 20px;
}

.result-bar-fill {
    height: 100%;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.toggle-results-btn {
    display: block;
    margin: 0 auto;
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.toggle-results-btn:hover {
    background: #5a6268;
}

/* Judges Section */
.judges-section {
    padding: 60px 0;
    background: white;
}

.judges-section h3 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 15px;
    color: #333;
}

.judges-section p {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.judges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.judge-card {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.judge-card:hover {
    transform: translateY(-5px);
}

.judge-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.judge-name {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.judge-title {
    font-size: 1rem;
    color: #ff6b35;
    margin-bottom: 15px;
    font-weight: bold;
}

.judge-quote {
    font-style: italic;
    color: #666;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* About Section */
.about-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-section h3 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.about-section p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.7;
    opacity: 0.95;
}

.campaign-goals {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.goal-item {
    text-align: center;
}

.goal-item h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #fff;
}

.goal-item p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* Footer */
.site-footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0 20px 0;
}

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

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #ff6b35;
}

.footer-section p {
    margin-bottom: 10px;
    opacity: 0.9;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #ff6b35;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 10px;
    opacity: 0.8;
}

.footer-bottom a {
    color: #ff6b35;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Responsive Design - match nationalfisk.dk layout */
@media (max-width: 768px) {
    .site-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-content h2 {
        font-size: 2.2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .email-input {
        width: 100%;
    }
    
    .result-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .result-bar {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .judges-grid {
        grid-template-columns: 1fr;
    }
    
    .campaign-goals {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .site-title {
        font-size: 1.8rem;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .voting-section, .results-section, .judges-section, .about-section {
        padding: 40px 0;
    }
    
    .category-card {
        margin-bottom: 15px;
    }
    
    .submit-vote-btn {
        width: 100%;
    }
}

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

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

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

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