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

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    min-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 25px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-section {
    flex: 1;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.logo-highlight {
    color: #ffd700;
    position: relative;
}

.logo-highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #ffd700;
    border-radius: 2px;
}

.tagline {
    font-size: 0.95rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Weather Info Styles */
.weather-info {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    min-width: 300px;
}

.weather-location {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 500;
}

.weather-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.temperature {
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.weather-condition {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

.weather-extra {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    opacity: 0.9;
}

.weather-extra span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.weather-refresh button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.weather-refresh button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Alerts Section */
.alerts-section {
    padding: 30px 40px;
    flex: 1;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.refresh-status {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #666;
}

.auto-refresh {
    background: #f0f4f8;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 500;
}

/* Alerts Container */
.alerts-container {
    background: #f8fafc;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
    position: relative;
    overflow: hidden;
}

.alerts-track {
    position: relative;
    height: 280px;
    overflow: hidden;
    margin-bottom: 25px;
}

.alert-card {
    position: absolute;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
    opacity: 0;
    transform: translateX(100%);
}

.alert-card.active {
    opacity: 1;
    transform: translateX(0);
}

.alert-card.previous {
    transform: translateX(-100%);
}

/* Alert Severity Colors */
.alert-high {
    border-left: 6px solid #e74c3c;
    border-top: 1px solid #e74c3c;
}

.alert-medium {
    border-left: 6px solid #f39c12;
    border-top: 1px solid #f39c12;
}

.alert-low {
    border-left: 6px solid #27ae60;
    border-top: 1px solid #27ae60;
}

.alert-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.alert-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
    flex: 1;
}

.alert-severity {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 15px;
}

.severity-high { background: #e74c3c; color: white; }
.severity-medium { background: #f39c12; color: white; }
.severity-low { background: #27ae60; color: white; }

.alert-description {
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
}

.alert-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.alert-categories {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.category-tag {
    background: #f0f4f8;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    color: #4a6fa5;
    font-weight: 500;
}

.alert-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hashtag {
    background: #e8f4fc;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    color: #2980b9;
    font-weight: 500;
}

/* Alert Controls */
.alerts-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.control-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #3498db;
    color: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

.control-btn:hover {
    background: #2980b9;
    transform: scale(1.05);
}

.control-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.alerts-indicators {
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #3498db;
    transform: scale(1.2);
}

/* Navigation Buttons */
.navigation-section {
    padding: 0 40px 40px;
}

.navigation-section h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.nav-button {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.nav-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.news-btn:hover { border-color: #3498db; }
.weather-btn:hover { border-color: #f39c12; }
.fuel-btn:hover { border-color: #27ae60; }

.nav-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
}

.news-btn .nav-icon { background: #3498db; }
.weather-btn .nav-icon { background: #f39c12; }
.fuel-btn .nav-icon { background: #27ae60; }

.nav-content {
    flex: 1;
}

.nav-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: #2c3e50;
}

.nav-content p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.nav-arrow {
    color: #95a5a6;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.nav-button:hover .nav-arrow {
    transform: translateX(5px);
    color: #3498db;
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-status {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
}

.separator {
    opacity: 0.5;
}

/* Loading Spinner */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.alert-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #95a5a6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .weather-info {
        width: 100%;
        justify-content: center;
    }

    .nav-buttons {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        border-radius: 10px;
        padding: 0;
    }

    .alerts-section,
    .navigation-section {
        padding: 20px;
    }

    .alert-card {
        padding: 20px;
    }

    .alert-title {
        font-size: 1.2rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .alerts-track {
        height: 320px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 2rem;
    }

    .weather-info {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .alerts-controls {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }

    .alert-header {
        flex-direction: column;
        gap: 10px;
    }

    .alert-severity {
        align-self: flex-start;
        margin-left: 0;
    }
}

/* Animation for alert transition */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-100%);
    }
}