* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    color: #e0e0e0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    background: linear-gradient(135deg, #2d3561 0%, #1a1a2e 100%);
    padding: 50px 20px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border-bottom: 3px solid #00d4ff;
}

.header-title {
    font-size: 2.8em;
    color: #00d4ff;
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
    margin-bottom: 10px;
    font-weight: 700;
}

.header-title .material-icons {
    font-size: 3em;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { color: #00d4ff; }
    50% { color: #00ffff; }
}

.header-subtitle {
    font-size: 1.2em;
    color: #b0b0b0;
    font-weight: 300;
}

.main-content {
    padding: 50px 20px;
}

.provinces-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.province-card {
    background: linear-gradient(135deg, #2d3561 0%, #1f2937 100%);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.province-card:hover {
    box-shadow: 0 12px 48px rgba(0, 212, 255, 0.3);
    transform: translateY(-8px);
    border-color: rgba(0, 212, 255, 0.4);
}

.province-header {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    color: #1a1a2e;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.province-name {
    font-size: 1.4em;
    font-weight: 600;
}

.toggle-icon {
    transition: transform 0.3s ease;
    font-size: 26px;
}

.province-card.expanded .toggle-icon {
    transform: rotate(180deg);
}

.tuners-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(15, 15, 30, 0.8);
}

.province-card.expanded .tuners-list {
    max-height: 1000px;
}

.tuner-item {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.tuner-item:last-child {
    border-bottom: none;
}

.tuner-item:hover {
    background: rgba(0, 212, 255, 0.05);
    padding-left: 25px;
}

.tuner-location {
    font-weight: 600;
    color: #00d4ff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tuner-location::before {
    content: '📍';
    font-size: 1.2em;
}

.tuner-link-btn {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    color: #1a1a2e;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.2s ease;
}

.tuner-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

.tuner-link-btn .material-icons {
    font-size: 18px;
}

.loading {
    text-align: center;
    color: #00d4ff;
    font-size: 1.2em;
    font-weight: 500;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(5px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: linear-gradient(135deg, #2d3561 0%, #1f2937 100%);
    margin: 10% auto;
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 12px 48px rgba(0, 212, 255, 0.3);
    animation: slideIn 0.3s ease;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: #00d4ff;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close:hover,
.close:focus {
    color: #00ffff;
}

#modalTitle {
    color: #00d4ff;
    margin: 20px 0 10px 0;
    font-size: 1.6em;
    font-weight: 700;
}

#modalLocation {
    color: #b0b0b0;
    font-size: 1em;
    margin-bottom: 20px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    color: #1a1a2e;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.4);
}

.btn-primary .material-icons {
    font-size: 20px;
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d3561 100%);
    color: #b0b0b0;
    padding: 40px 20px;
    text-align: center;
    margin-top: 60px;
    border-top: 3px solid #00d4ff;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
}

.footer-content p {
    margin: 10px 0;
    font-size: 0.95em;
    line-height: 1.8;
}

.footer-content a {
    color: #00d4ff;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 600;
}

.footer-content a:hover {
    color: #00ffff;
    text-decoration: underline;
}

@media (max-width: 600px) {
    .header-title {
        font-size: 2em;
    }

    .provinces-container {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        margin: 20% auto;
        padding: 25px;
    }
}
