:root {
    --primary-color: #ffffff;        /* Oxford Blue */
    --primary-color-rgb: 255, 255, 255;
    --secondary-color: #303540;      /* Gunmetal */
    --background-color: #090b0d;     /* Night */
    --card-background: #1d2026;      /* Raisin black */
    --card-background-rgb: 29, 32, 38;
    --text-color: #ffffff;           /* White */
    --text-secondary-color: #b3b3b3; /* Neutral gray */
    --border-color: #3a3f4a;         /* Variante de Gunmetal */
    --border-color-rgb: 58, 63, 74;
}

[data-theme='light'] {
    --primary-color: #072040;
    --primary-color-rgb: 7, 32, 64;
    --secondary-color: #5f5f5f;      
    --background-color: #ffffff;     
    --card-background: #f4f4f9;
    --card-background-rgb: 244, 244, 249;
    --text-color: #090b0d;           
    --text-secondary-color: #303540; 
    --border-color: #e0e0e0;
    --border-color-rgb: 224, 224, 224;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

header {
    background-color: var(--background-color);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s, border-bottom-color 0.3s;
}

/* Desktop header padding */
@media (min-width: 768px) {
    header {
        padding: 2rem 0;
    }
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
}

/* Mobile: Group hamburger and theme toggler on the right */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    z-index: 1001;
}

/* Hamburger Menu Button - Mobile First */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Styles */
nav ul.nav-menu {
    list-style: none;
    margin: 0;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--card-background);
    transition: right 0.3s ease;
    z-index: 1000;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    padding-top: 5rem;
}

nav ul.nav-menu.active {
    right: 0;
}

nav ul.nav-menu li {
    width: 100%;
}

nav a {
    color: var(--text-secondary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid transparent;
    position: relative;
    display: block;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav a:hover::after, nav a.active::after {
    width: calc(100% - 2rem);
}

nav a.active, nav a:hover {
    color: var(--text-color);
    border-bottom: 2px solid transparent;
}

/* Theme Toggler */
.theme-toggler {
    flex-shrink: 0;
}

/* Small Tablet and Desktop - Hide hamburger, show horizontal menu */
@media (min-width: 640px) {
    .hamburger {
        display: none;
    }

    .logo {
        font-size: 1.6rem;
    }

    nav ul.nav-menu {
        position: static;
        flex-direction: row;
        width: auto;
        height: auto;
        background: transparent;
        box-shadow: none;
        padding: 0;
        gap: 1.5rem;
        max-width: none;
    }

    nav ul.nav-menu li {
        width: auto;
    }

    nav a {
        padding: 0;
        padding-bottom: 0.5rem;
        font-size: 1rem;
    }

    nav a::after {
        bottom: -2px;
        left: 0;
    }

    nav a:hover::after, nav a.active::after {
        width: 100%;
    }

    .nav-actions {
        margin-left: 0;
    }
}

/* Desktop - Larger spacing and fonts */
@media (min-width: 1024px) {
    .logo {
        font-size: 1.8rem;
    }

    nav ul.nav-menu {
        gap: 2.5rem;
    }

    nav a {
        font-size: 1.1rem;
    }
}

main {
    padding: 2rem 0;
}

section {
    margin-bottom: 3rem;
}

h1 {
    font-weight: 600;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h2 {
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Desktop typography */
@media (min-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }
}

p {
    color: var(--text-secondary-color);
    margin-bottom: 1.5rem;
}

#overview {
    margin-top: 2rem;
    margin-bottom: 3rem;
    width: 100%;
}

@media (min-width: 768px) {
    #overview {
        margin-bottom: 5rem;
    }
}

.overview-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
}

@media (min-width: 768px) {
    .overview-grid {
        grid-template-columns: 1fr 1.5fr;
        gap: 2rem;
    }
}

.overview-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    width: 100%;
    min-width: 0;
}

.overview-card-link .card {
    height: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
    width: 100%;
}

.overview-card-link:hover .card {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.overview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
    gap: 0.5rem;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .overview-header {
        margin-bottom: 2rem;
        margin-top: 1rem;
    }
}

.overview-header h2 {
    font-size: 1.25rem;
    margin: 0;
}

@media (min-width: 768px) {
    .overview-header h2 {
        font-size: 1.5rem;
    }
}

.overview-header p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary-color);
}

@media (min-width: 768px) {
    .overview-header p {
        font-size: 1rem;
    }
}

.overview-temp {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

@media (min-width: 768px) {
    .overview-temp {
        font-size: 3.5rem;
    }
}

.overview-icon {
    font-size: 3rem;
    color: var(--primary-color);
}

@media (min-width: 768px) {
    .overview-icon {
        font-size: 4.5rem;
    }
}

.overview-body {
    display: flex;
    align-self: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .overview-body {
        gap: 2rem;
    }
}

.overview-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-grow: 1;
}

.overview-minmax {
    margin: 0;
    text-align: center;
    color: var(--text-secondary-color);
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .overview-minmax {
        font-size: 1rem;
    }
}

.week-preview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    text-align: center;
    width: 100%;
    align-items: center;
}

@media (min-width: 480px) {
    .week-preview {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (min-width: 768px) {
    .week-preview {
        grid-template-columns: repeat(6, 1fr);
    }
}

.week-preview-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.week-preview-day h3 {
    font-size: 0.85rem;
    margin: 0 0 0.25rem 0;
    font-weight: 500;
}

@media (min-width: 768px) {
    .week-preview-day h3 {
        font-size: 1rem;
        margin: 0 0 0.5rem 0;
    }
}

.week-preview-day i {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
    .week-preview-day i {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
}

.week-preview-day p {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

@media (min-width: 768px) {
    .week-preview-day p {
        font-size: 1.2rem;
    }
}

.specific-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
    width: 100%;
}

@media (min-width: 1024px) {
    .specific-container {
        flex-direction: row;
        gap: 2rem;
    }
}

#map {
    width: 100%;
    height: 300px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

@media (min-width: 768px) {
    #map {
        height: 500px;
    }
}

@media (min-width: 1024px) {
    #map {
        flex: 1;
    }
}

.form-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    .form-container {
        flex: 1;
    }
}

.leaflet-tile-pane {
    filter: none !important;
}

.form-container {
    background-color: var(--card-background);
    padding: 1.25rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, border-color 0.3s;
    overflow: hidden;
}

@media (min-width: 768px) {
    .form-container {
        padding: 2.5rem;
    }
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    width: 100%;
}

@media (min-width: 640px) {
    .form-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.time-group {
    display: flex;
    flex-direction: column;
}

.time-selects {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.time-select {
    flex: 1;
    min-width: 60px;
}

.time-separator {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary-color);
}

form input,
form select,
form button {
    background-color: var(--background-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    min-width: 0;
}

form input:focus,
form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(7, 32, 64, 0.2); /* Oxford Blue with opacity */
}

form button {
    background-color: var(--primary-color);
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    font-weight: 600;
    grid-column: 1 / -1;
    margin-top: 1rem;
    color: var(--card-background);
}

form button:hover {
    background-color: #0b315f; /* A bit lighter than Oxford Blue */
    transform: translateY(-2px);
    color: var(--text-color)
}

.hidden {
    display: none;
}

.card {
    background-color: var(--card-background);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, border-color 0.3s;
}

@media (min-width: 768px) {
    .card {
        padding: 1.5rem 2rem;
    }
}

.today-card {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 768px) {
    .today-card {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.today-card-left h2 {
    font-size: 1.3rem;
    font-weight: 400;
    margin: 0 0 1.25rem 0;
    line-height: 1.2;
}

.today-card-left .today-temp {
    font-size: 2.5rem;
    font-weight: 600;
    margin: 0;
    color: var(--primary-color);
    line-height: 1;
}

/* Make temperature bigger on larger screens */
@media (min-width: 768px) {
    .today-card-left h2 {
        font-size: 1.6rem;
    }
    
    .today-card-left .today-temp {
        font-size: 4rem;
    }
}

@media (min-width: 1024px) {
    .today-card-left h2 {
        font-size: 1.8rem;
    }
    
    .today-card-left .today-temp {
        font-size: 5rem;
    }
}

.week-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 3.5rem;
    justify-items: center;
}

@media (min-width: 640px) {
    .week-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
        max-width: 800px;
        margin: 0 auto;
    }
}

@media (min-width: 768px) {
    .week-cards {
        gap: 3.5rem;
        max-width: 900px;
    }
}

@media (min-width: 1024px) {
    .week-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 4rem;
        max-width: 1300px;
    }
}

.week-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary-color);
    margin: -0.5rem 0 2rem 0;
    font-weight: 400;
}

#week {
    padding: 0 1rem;
}

@media (min-width: 640px) {
    #week {
        padding: 0 1.5rem;
    }
}

@media (min-width: 768px) {
    #week {
        padding: 0 2rem;
    }
}

@media (min-width: 1024px) {
    #week {
        padding: 0;
    }
}

.day-card {
    background-color: var(--card-background);
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s, border-color 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    width: 100%;
    max-width: 250px;
}

@media (min-width: 640px) {
    .day-card {
        max-width: 100%;
        gap: 0.85rem;
        padding: 1.5rem 1.25rem;
    }
}

@media (min-width: 768px) {
    .day-card {
        padding: 1.75rem 1.5rem;
        gap: 1rem;
    }
}

@media (min-width: 1024px) {
    .day-card {
        padding: 2rem 1.75rem;
        gap: 1.1rem;
    }
}

.day-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    border-color: var(--primary-color);
}

.day-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
    .day-card-header {
        margin-bottom: 0.75rem;
    }
}

@media (min-width: 768px) {
    .day-card-header {
        margin-bottom: 1rem;
    }
}

.day-card h3 {
    margin: 0;
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--text-color);
}

@media (min-width: 768px) {
    .day-card h3 {
        font-size: 1.15rem;
    }
}

.day-date {
    font-size: 0.85rem;
    color: var(--text-secondary-color);
    font-weight: 400;
}

.day-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

@media (min-width: 640px) {
    .day-card i {
        font-size: 3.2rem;
    }
}

@media (min-width: 1024px) {
    .day-card i {
        font-size: 3.5rem;
    }
}

.day-condition {
    font-size: 0.9rem;
    color: var(--text-secondary-color);
    margin: 0;
    font-weight: 400;
    min-height: 1.5rem;
}

.day-temp {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin: 0.25rem 0;
}

@media (min-width: 640px) {
    .day-temp {
        margin: 0.5rem 0;
    }
}

.temp-max {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-color);
}

@media (min-width: 640px) {
    .temp-max {
        font-size: 1.8rem;
    }
}

.temp-min {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-secondary-color);
}

@media (min-width: 640px) {
    .temp-min {
        font-size: 1.3rem;
    }
}

.day-extra {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-secondary-color);
}

@media (min-width: 640px) {
    .day-extra {
        padding-top: 0.75rem;
        font-size: 0.85rem;
    }
}

.day-extra span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.day-extra i {
    font-size: 0.95rem;
}

@media (min-width: 640px) {
    .day-extra i {
        font-size: 1rem;
    }
}

.theme-toggler {
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.theme-toggler .toggler {
    width: 40px;
    height: 20px;
    border-radius: 10px;
    background-color: var(--secondary-color);
    position: relative;
    transition: background-color 0.3s;
}

.theme-toggler .toggler::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: white;
    transition: transform 0.3s;
}

[data-theme='light'] .theme-toggler .toggler::before {
    transform: translateX(20px);
}

.today-card-left {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.today-main-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.today-weather-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.today-weather-status i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.today-condition {
    font-size: 0.8rem;
    color: var(--text-secondary-color);
    margin: 0;
    font-weight: 500;
    white-space: nowrap;
    margin-top: 1em;
    text-align: center;
}

/* Tablet and up - make weather status bigger */
@media (min-width: 768px) {
    .today-weather-status i {
        font-size: 3.5rem;
    }
    
    .today-condition {
        font-size: 1rem;
    }
}

/* Desktop and up - make it even bigger */
@media (min-width: 1024px) {
    .today-weather-status i {
        font-size: 4.5rem;
    }
    
    .today-condition {
        font-size: 1.1rem;
    }
    
    .today-main-info {
        gap: 2rem;
    }
}

.today-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 0;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

@media (min-width: 480px) {
    .today-details {
        grid-template-columns: repeat(2, 1fr);
    }
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-item span {
    font-size: 0.9rem;
    color: var(--text-secondary-color);
    margin-bottom: 0.25rem;
}

.about-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 60rem;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

#about h1 {
    background-color: var(--background-color);
    width: 22rem;
    border-radius: 10px;
}

.about-bg svg {
    position: absolute;
    width: 160%;
    height: 150%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.about-bg svg ellipse {
    stroke: var(--primary-color);
    stroke-width: 0.8;
    transform-origin: center;
    transform-box: fill-box;
}

.about-card {
    display: grid;
    gap: 3rem;
    padding: 2.5rem;
}

@media (min-width: 768px) {
    .about-card {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        padding: 2.5rem;
    }
}

.about-features h2 {
    font-size: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.about-features ul {
    list-style: none;
    padding: 0;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.result-card {
    padding: 2.5rem;
}

.result-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.result-header h2 {
    margin: 0;
    font-size: 1.8rem;
}

.result-header p {
    margin: 0.25rem 0 0 0;
    font-size: 1.1rem;
}

.result-header strong {
    color: var(--primary-color);
    font-weight: 600;
}

.result-body {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .result-body {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

.result-main {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.result-main i {
    font-size: 6rem;
    color: var(--primary-color);
}

.result-temp {
    font-size: 4rem;
    font-weight: 600;
    margin: 0;
    line-height: 1;
}

.result-condition {
    font-size: 1.2rem;
    margin: 0.5rem 0 0 0;
    color: var(--text-secondary-color);
}

.result-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 480px) {
    .result-details {
        grid-template-columns: repeat(2, 1fr);
    }
}

.result-activity {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    grid-column: 1 / -1; /* Span full width inside a grid */
}

.result-activity h3 {
    font-size: 1.3rem;
    margin: 0 0 1rem 0;
    font-weight: 500;
}

.result-activity h3 strong {
    font-weight: 600;
    color: var(--primary-color);
}

.recommendation-box {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid transparent;
}

.recommendation-box i {
    font-size: 2.5rem;
    margin-top: 0.25rem;
}

.recommendation-box p {
    margin: 0;
    line-height: 1.7;
}

.recommendation-box.viable {
    background-color: rgba(39, 174, 96, 0.1);
    border-color: rgba(39, 174, 96, 0.3);
    color: #6ee39f;
}

.recommendation-box.not-viable {
    background-color: rgba(231, 76, 60, 0.1);
    border-color: rgba(231, 76, 60, 0.3);
    color: #f19a90;
}

.date-subtitle {
    font-size: 1rem;
    color: var(--text-secondary-color);
    margin: -0.5rem 0 1rem 0;
}

.forecast-summary {
    font-size: 1.1rem;
    margin: 1rem 0 2rem 0;
    padding: 1rem;
    background-color: rgba(var(--primary-color-rgb, 7, 32, 64), 0.1);
    border-left: 3px solid var(--primary-color);
    border-radius: 4px;
}

.today-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    margin-top: 2rem;
    width: 100%;
}

@media (min-width: 768px) {
    .today-details-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem;
    }
}

@media (min-width: 1024px) {
    .today-details-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4rem;
        justify-items: stretch;
    }
    
    /* Center last 2 cards when there are 5 total */
    .today-details-grid > .detail-section:nth-child(4) {
        grid-column: 1 / 2;
    }
    
    .today-details-grid > .detail-section:nth-child(5):last-child {
        grid-column: 2 / 3;
    }
}

.detail-section {
    background: linear-gradient(135deg, rgba(var(--card-background-rgb, 29, 32, 38), 0.8), rgba(var(--card-background-rgb, 29, 32, 38), 0.6));
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(var(--primary-color-rgb, 119, 131, 226), 0.2);
    height: 100%;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.detail-section:hover {
    border-color: rgba(var(--primary-color-rgb, 119, 131, 226), 0.4);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.detail-section h3 {
    font-size: 1rem;
    margin: 0 0 1rem 0;
    color: var(--primary-color);
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(var(--primary-color-rgb, 119, 131, 226), 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.detail-section .detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(var(--border-color-rgb, 58, 63, 74), 0.2);
    transition: background-color 0.2s ease;
}

.detail-section .detail-item:hover {
    background-color: rgba(var(--primary-color-rgb, 119, 131, 226), 0.05);
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
    border-radius: 6px;
}

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

.detail-section .detail-item span {
    color: var(--text-secondary-color);
    font-size: 0.9rem;
    flex: 1;
    font-weight: 400;
}

.detail-section .detail-item strong {
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: right;
    flex: 0 0 auto;
    margin-left: 1rem;
}

.day-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s ease;
}

.day-card-link:hover {
    transform: translateY(-4px);
}

.day-card-link:hover .day-card {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Text-based details layout (no cards) */
.today-details-text {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .today-details-text {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem 3rem;
    }
}

@media (min-width: 1024px) {
    .today-details-text {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem 3rem;
    }
}

.details-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.details-column h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 0.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(var(--primary-color-rgb, 7, 32, 64), 0.3);
}

.details-column p {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 0;
    padding: 0.4rem 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.details-column p span {
    color: var(--text-secondary-color);
    flex: 1;
}

.details-column p strong {
    color: var(--text-color);
    font-weight: 600;
    text-align: right;
    margin-left: 1rem;
}

/* Accordion styles for week page */
.week-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.accordion-item {
    background-color: var(--card-background);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    border-color: var(--primary-color);
}

.accordion-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    gap: 0.5rem;
    overflow: hidden;
}

@media (min-width: 640px) {
    .accordion-header {
        padding: 1.5rem;
        gap: 1rem;
    }
}

.accordion-header:hover {
    background-color: rgba(var(--primary-color-rgb, 7, 32, 64), 0.05);
}

.accordion-day-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    flex-wrap: wrap;
    min-width: 0;
}

@media (min-width: 640px) {
    .accordion-day-info {
        gap: 2rem;
        flex-wrap: nowrap;
    }
}

.accordion-day-main {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 70px;
}

@media (min-width: 640px) {
    .accordion-day-main {
        min-width: 120px;
    }
}

.accordion-day-main h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
}

@media (min-width: 640px) {
    .accordion-day-main h3 {
        font-size: 1.3rem;
    }
}

.accordion-date {
    font-size: 0.75rem;
    color: var(--text-secondary-color);
}

@media (min-width: 640px) {
    .accordion-date {
        font-size: 0.9rem;
    }
}

.accordion-icon-mobile {
    font-size: 2rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .accordion-icon-mobile {
        display: none;
    }
}

.accordion-day-preview {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    min-width: 0;
}

@media (min-width: 640px) {
    .accordion-day-preview {
        gap: 1.5rem;
        width: auto;
        flex: 1;
    }
}

.accordion-day-preview i {
    font-size: 2.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
    display: none;
}

@media (min-width: 640px) {
    .accordion-day-preview i {
        display: block;
    }
}

.accordion-condition {
    font-size: 0.85rem;
    color: var(--text-secondary-color);
    min-width: 0;
    flex: 1;
}

@media (min-width: 640px) {
    .accordion-condition {
        font-size: 1rem;
        min-width: 120px;
    }
}

.accordion-temp {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    white-space: nowrap;
}

@media (min-width: 640px) {
    .accordion-temp {
        font-size: 1.2rem;
    }
}

.accordion-arrow {
    font-size: 1.25rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .accordion-arrow {
        font-size: 1.5rem;
    }
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.accordion-details {
    padding: 0 1rem 1rem 1rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .accordion-details {
        padding: 0 1.5rem 1.5rem 1.5rem;
        gap: 2rem;
    }
}

@media (min-width: 768px) {
    .accordion-details {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem 3rem;
    }
}

@media (min-width: 1024px) {
    .accordion-details {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem 3rem;
    }
    
    .accordion-day-info {
        flex-wrap: nowrap;
    }
}

.accordion-details .details-column h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(var(--primary-color-rgb, 7, 32, 64), 0.3);
}

#footer-link{
    color: inherit;
}

#footer-link:hover{
    color: var(--primary-color);
}