/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #311042 100%);
    --card-bg: rgba(255, 255, 255, 0.07);
    --card-border: rgba(255, 255, 255, 0.12);
    --card-hover: rgba(255, 255, 255, 0.12);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-primary: #f43f5e;
    --accent-secondary: #0ea5e9;
    --accent-gradient: linear-gradient(135deg, #f43f5e 0%, #8b5cf6 50%, #0ea5e9 100%);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --radius: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background: #090d16;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Glowing Orbs for Vibrant Design */
.app-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    background: radial-gradient(circle at 10% 20%, #1e1b4b 0%, #090d16 90%);
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    animation: floatOrb 15s infinite alternate ease-in-out;
}

.orb-1 {
    width: 450px;
    height: 450px;
    background: #f43f5e;
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: #0ea5e9;
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: #8b5cf6;
    top: 40%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 40px) scale(1.15); }
}

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

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    flex-wrap: wrap;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 55px;
    height: 55px;
    background: var(--accent-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: white;
    box-shadow: 0 8px 20px rgba(244, 63, 94, 0.4);
}

.brand h1 {
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Search Box */
.search-container {
    position: relative;
    width: 360px;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 8px 15px;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--accent-secondary);
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.3);
}

.search-icon {
    color: var(--text-secondary);
    margin-right: 10px;
    font-size: 16px;
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 14px;
    width: 100%;
}

.search-box input::placeholder {
    color: var(--text-secondary);
}

.search-btn {
    background: var(--accent-gradient);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.search-btn:hover {
    transform: scale(1.05);
}

.search-results {
    position: absolute;
    top: 110%;
    left: 0;
    width: 100%;
    background: #111827;
    border: 1px solid var(--card-border);
    border-radius: 14px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.search-result-item {
    padding: 10px 15px;
    font-size: 13px;
    color: var(--text-primary);
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hidden {
    display: none !important;
}

/* Dashboard */
.dashboard {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Current Weather Card */
.current-weather-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 30px;
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.current-weather-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--accent-gradient);
}

.location-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-secondary);
    margin-bottom: 20px;
}

.date-badge {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.08);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.weather-main-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.temp-val {
    font-size: 64px;
    font-weight: 800;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #ffffff 0%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.weather-condition-text {
    font-size: 20px;
    font-weight: 600;
    color: #e2e8f0;
    margin-top: 5px;
}

.weather-icon-lg {
    font-size: 72px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 10px 15px rgba(244, 63, 94, 0.3));
}

.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.q-stat {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 15px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.q-stat i {
    font-size: 22px;
    color: var(--accent-secondary);
}

.q-stat span {
    font-size: 12px;
    color: var(--text-secondary);
    display: block;
}

.q-stat strong {
    font-size: 15px;
    color: var(--text-primary);
}

/* Sections Grid */
.sections-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

@media(max-width: 900px) {
    .sections-grid {
        grid-template-columns: 1fr;
    }
}

.weather-section-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 25px;
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.weather-section-card:hover {
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

.weather-section-card.full-width {
    grid-column: 1 / -1;
}

.sec-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
}

.sec-icon {
    width: 38px;
    height: 38px;
    background: rgba(14, 165, 233, 0.15);
    color: var(--accent-secondary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.sec-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.sec-body {
    font-size: 14px;
    line-height: 1.6;
    color: #cbd5e1;
}

.sec-body p, .sec-body ul {
    margin-bottom: 10px;
}

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

.sec-body li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}

.sec-body li::before {
    content: '▪';
    position: absolute;
    left: 0;
    color: var(--accent-secondary);
}

/* Weather Table */
.table-responsive {
    overflow-x: auto;
}

.weather-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.weather-table th, .weather-table td {
    padding: 12px 15px;
    font-size: 13px;
}

.weather-table th {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.weather-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.weather-table tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

/* Plan Selector */
.plan-selector {
    margin-bottom: 15px;
}

.plan-selector label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.plan-selector select {
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 10px 15px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

.plan-result {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.suitability-bar-container {
    background: rgba(255, 255, 255, 0.1);
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    margin: 10px 0;
}

.suitability-bar {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 5px;
    transition: width 0.5s ease;
}

/* Recommendations Grid */
.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.rec-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 18px;
    border-radius: 14px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.rec-item i {
    font-size: 24px;
    color: var(--accent-primary);
    margin-top: 2px;
}

.rec-item h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.rec-item p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 50px;
    padding: 20px 0;
    color: var(--text-secondary);
    font-size: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media(max-width: 600px) {
    .header {
        flex-direction: column;
        align-items: stretch;
    }
    .search-container {
        width: 100%;
    }
    .weather-main-grid {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}
