/* Irish Language Decline Map Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #333;
    min-height: 100vh;
}

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

header {
    text-align: center;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

h1 {
    color: #1e3c72;
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    color: #666;
    font-size: 1.2em;
    font-style: italic;
}

.controls {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.timeline-info {
    margin-top: 15px;
    color: #666;
    font-style: italic;
    font-size: 0.95em;
    background: rgba(30, 60, 114, 0.05);
    padding: 10px;
    border-radius: 8px;
    border-left: 4px solid #1e3c72;
}

.controls label {
    font-weight: 600;
    margin-right: 15px;
    color: #1e3c72;
    font-size: 1.1em;
}

#yearSelect {
    padding: 10px 20px;
    border: 2px solid #1e3c72;
    border-radius: 25px;
    background: white;
    color: #1e3c72;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#yearSelect:hover {
    background: #1e3c72;
    color: white;
}

#yearSelect:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.3);
}

#map-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

#ireland-map {
    width: 100%;
    min-height: 480px;
    height: 600px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.08);
}

.info-panel {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.info-panel h3 {
    color: #1e3c72;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.info-panel p {
    line-height: 1.6;
    margin-bottom: 15px;
    color: #555;
}

.legend {
    margin-top: 20px;
}

.legend h4 {
    color: #1e3c72;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.legend ul {
    list-style-type: none;
    padding-left: 0;
}

.legend li {
    padding: 8px 0;
    border-left: 4px solid #1e3c72;
    padding-left: 15px;
    margin-bottom: 8px;
    background: rgba(30, 60, 114, 0.05);
    border-radius: 0 8px 8px 0;
    color: #555;
}

footer {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

footer p {
    color: #666;
    margin: 0;
}

footer a {
    color: #1e3c72;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #2a5298;
    text-decoration: underline;
}

/* Loading state */
.loading {
    text-align: center;
    padding: 50px;
    font-size: 1.2em;
    color: #1e3c72;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #1e3c72;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .subtitle {
        font-size: 1em;
    }
    
    header {
        padding: 20px;
    }
    
    #ireland-map {
        height: 400px;
    }
    
    .controls {
        padding: 15px;
    }
    
    .info-panel {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8em;
    }
    
    #ireland-map {
        height: 350px;
    }
    
    .controls label {
        display: block;
        margin-bottom: 10px;
        margin-right: 0;
    }
}