/* Weather Display CSS for s/index.php */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #87CEEB 0%, #FFD700 50%, #FFA500 100%);
    min-height: 100vh;
    color: white;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    background-color: rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 1rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rotating-sun {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle, #FFD700 30%, #FFA500 70%, #FF8C00 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rotate 20s linear infinite;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.logo p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.9);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.nav {
    display: flex;
    gap: 1.5rem;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    transition: color 0.3s;
}

.nav a:hover {
    color: #ffd1a9;
}

.nav a.active {
    color: #FFD700;
    font-weight: 600;
}

/* Glass boxes */
.glass-box {
    background-color: rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Main content */
.main {
    padding: 2rem 0;
    flex: 1;
}

.location-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.location-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.location-info h2 {
    font-size: 1.25rem;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.location-info p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.9);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.location-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-primary {
    background: linear-gradient(45deg, #FF6B6B, #FF8E53);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-secondary {
    background-color: rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-success {
    background: linear-gradient(45deg, #10b981, #059669);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-warning {
    background: linear-gradient(45deg, #f59e0b, #d97706);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Default location indicator */
.default-location-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.8);
    margin-top: 0.25rem;
}

.default-star {
    width: 14px;
    height: 14px;
    fill: #fbbf24;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.9);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.notification.success {
    border-left: 4px solid #10b981;
}

.notification.error {
    border-left: 4px solid #ef4444;
}

/* Weather summary */
.weather-summary {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
}

/* Solradar tile */
.solradar-periods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.solradar-period {
    background: rgba(255,255,255,0.05);
    border-radius: 0.75rem;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,0.1);
}

.period-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.period-header h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    margin: 0;
}

.period-time {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.period-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Updated layout for periods with precipitation */
.period-content-extended {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.75rem;
    align-items: center;
}

.period-sunshine {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sunshine-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.sunshine-duration {
    font-size: 1.125rem;
    font-weight: bold;
    color: #fbbf24;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.sunshine-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.8);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* Precipitation styles */
.period-precipitation {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.precipitation-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.precipitation-value {
    font-size: 1rem;
    font-weight: bold;
    color: #2563eb;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.precipitation-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.8);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.period-temp {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.temp-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.temp-apparent {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    margin-top: 0.125rem;
}

.solradar-summary {
    text-align: center;
    padding: 0.75rem;
    background: rgba(255,255,255,0.08);
    border-radius: 0.5rem;
    border: 1px solid rgba(255,255,255,0.1);
}

.summary-text {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.9);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.summary-excellent {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.3);
}

.summary-good {
    background: rgba(251, 191, 36, 0.2);
    border-color: rgba(251, 191, 36, 0.3);
}

.summary-moderate {
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.3);
}

.summary-poor {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
}

.current-weather {
    text-align: center;
}

.weather-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 0.5rem;
}

.current-temp {
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.apparent-temp {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.8);
    margin-top: 0.25rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.weather-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-label {
    color: rgba(255,255,255,0.9);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.detail-value {
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Wind display */
.wind-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.wind-arrow {
    color: #10b981;
    transition: transform 0.3s ease;
    transform-origin: center;
}

.wind-speed {
    color: rgba(255,255,255,0.9);
}

.wind-direction {
    color: rgba(255,255,255,0.8);
    font-size: 0.875rem;
}

/* Sun score badges */
.sun-score {
    padding: 4px 8px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: bold;
}

.sun-score-excellent {
    background-color: #dcfce7;
    color: #166534;
}

.sun-score-good {
    background-color: #fef3c7;
    color: #92400e;
}

.sun-score-moderate {
    background-color: #fed7aa;
    color: #c2410c;
}

.sun-score-poor {
    background-color: #fecaca;
    color: #b91c1c;
}

/* Time blocks */
.time-blocks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.time-block {
    text-align: center;
}

.time-block .weather-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
}

.time-block h3 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.time-block .time {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.temp {
    font-size: 1.125rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.apparent-temp-small {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.75);
    margin-top: 0.25rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.condition {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.9);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    margin-bottom: 0.5rem;
}

.precipitation {
    font-size: 0.75rem;
    color: #a7f3d0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.wind-info {
    font-size: 0.75rem;
    color: #10b981;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    margin-top: 0.25rem;
}

/* Quick links */
.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.quick-link {
    cursor: pointer;
    text-decoration: none;
    color: white;
}

.quick-link-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.quick-link h3 {
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.quick-link p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.9);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* Location search modal */
.location-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease-in-out;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.search-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 0.5rem;
    background: rgba(255,255,255,0.1);
    color: white;
    margin-bottom: 1rem;
    font-size: 1rem;
    outline: none;
}

.search-input::placeholder {
    color: rgba(255,255,255,0.6);
}

.search-input:focus {
    border-color: rgba(255,255,255,0.4);
    box-shadow: 0 0 0 2px rgba(255,255,255,0.1);
}

.search-results {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.search-result {
    padding: 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    margin-bottom: 0.25rem;
    background: rgba(255,255,255,0.1);
    transition: background 0.2s;
    border: 1px solid transparent;
}

.search-result:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
}

.search-result-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.search-result-details {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.8);
}

.modal-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.loading-text {
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 1rem;
}

.error-text {
    color: #ff6b6b;
    text-align: center;
    padding: 1rem;
}

/* Footer */
.footer-wrapper {
    margin-top: auto;
}

.waves {
    position: relative;
    height: 60px;
    background: linear-gradient(135deg, #DEB887 0%, #F4A460 100%);
}

.waves::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 10px,
        rgba(255,255,255,0.1) 10px,
        rgba(255,255,255,0.1) 20px
    );
    animation: wave 3s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-10px); }
}

footer {
    background: linear-gradient(135deg, #DEB887 0%, #F4A460 50%, #CD853F 100%);
    padding: 2rem;
    text-align: center;
    color: #8B4513;
}

footer p {
    font-weight: 600;
}

footer p:last-child {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-weight: 400;
}

footer a {
    color: #6B4423;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
}

footer a:hover {
    color: #4A2C17;
    border-bottom-color: #4A2C17;
}

/* Icons */
.icon {
    width: 24px;
    height: 24px;
}

.icon-small {
    width: 16px;
    height: 16px;
}

.icon-tiny {
    width: 12px;
    height: 12px;
}

/* Hourly Forecast Accordion */
.hourly-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.accordion-day {
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0.5rem;
    overflow: hidden;
    background: rgba(0,0,0,0.1);
}

.accordion-header {
    cursor: pointer;
    padding: 1rem;
    transition: background-color 0.3s ease;
    user-select: none;
}

.accordion-header:hover {
    background: rgba(255,255,255,0.1);
}

.day-summary {
    display: grid;
    grid-template-columns: 1fr auto auto auto auto;
    align-items: center;
    gap: 1rem;
}

.day-info h4 {
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    margin: 0;
}

.day-date {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.8);
    margin: 0;
}

.day-weather {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.day-weather .weather-icon {
    width: 32px;
    height: 32px;
}

.day-condition {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.9);
}

.day-temps {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 600;
}

.max-temp {
    font-size: 1.125rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.temp-separator {
    color: rgba(255,255,255,0.6);
}

.min-temp {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
}

.day-precip {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.125rem;
    font-size: 0.875rem;
    color: #a7f3d0;
    min-width: 60px;
}

.accordion-arrow {
    transition: transform 0.3s ease;
}

.accordion-day.active .accordion-arrow {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-day.active .accordion-content {
    max-height: 2000px; /* Large enough to accommodate content */
}

.hourly-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.hourly-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0.5rem;
    border-radius: 0.375rem;
    background: rgba(255,255,255,0.05);
    transition: background-color 0.2s ease;
}

.hourly-item:hover {
    background: rgba(255,255,255,0.1);
}

.hour-time {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.hour-icon .weather-icon {
    width: 32px;
    height: 32px;
}

.hour-temp {
    font-size: 1.125rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hour-apparent {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    margin-top: 0.125rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.hour-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    width: 100%;
}

.hour-precip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.125rem;
    color: #a7f3d0;
}

.hour-sunshine {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #fbbf24;
}

.hour-uv {
    color: rgba(255,255,255,0.8);
}

.hour-wind {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #10b981;
}

/* Visual Timeline Forecast - Table-Based Design */
.timeline-container {
    position: relative;
    margin: 1rem 0;
    border-radius: 0.5rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    overflow-x: auto;
    overflow-y: hidden;
}

.timeline-container::-webkit-scrollbar {
    height: 6px;
}

.timeline-container::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
}

.timeline-container::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
}

.timeline-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5);
}

/* Weather Timeline Table */
.weather-timeline-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
    background: rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
}

/* Day Headers */
.day-header {
    background: rgba(0,0,0,0.3);
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.75rem 0.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    border-right: 1px solid rgba(255,255,255,0.1);
}

.day-header:last-child {
    border-right: none;
}

/* Hour Cells */
.hour-cell {
    width: 50px;
    min-width: 50px;
    height: 240px;
    border-right: 1px solid rgba(255,255,255,0.1);
    border-bottom: none;
    padding: 0;
    position: relative;
    vertical-align: top;
}

.hour-cell:last-child {
    border-right: none;
}

/* Day boundary styling */
.day-boundary {
    border-right: 2px solid rgba(255,255,255,0.4) !important;
}

/* Hour Column Content */
.hour-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    position: relative;
    padding: 0.5rem 0.25rem;
}

/* Time Label */
.time-label {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    text-align: center;
    margin-bottom: 0.25rem;
    min-height: 16px;
}

/* Temperature (fixed position under time) */
.temperature-text {
    font-size: 0.75rem;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    white-space: nowrap;
    margin-bottom: 0.25rem;
    text-align: center;
}

/* Apparent Temperature in timeline */
.apparent-temperature-text {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.7);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    white-space: nowrap;
    margin-bottom: 0.5rem;
    text-align: center;
}

/* Weather Section (middle area for icon only) */
.weather-section {
    width: 100%;
    height: 110px;
    position: relative;
    margin: 0.25rem 0 25px 0; /* Added 25px bottom margin for spacing */
}

/* Weather Icon Container (positioned based on temperature) */
.weather-icon-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-icon {
    width: 24px;
    height: 24px;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.5));
    transform: scale(1.5);
}

/* Wind Section (bottom) */
.wind-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.wind-icon {
    width: 20px;
    height: 20px;
    color: #10b981;
}

.wind-direction {
    font-size: 0.6rem;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    text-transform: uppercase;
    text-align: center;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.error {
    color: #ff6b6b;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Hamburger menu button */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    width: 24px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile menu overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100%;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(20px);
    transition: right 0.3s ease;
    z-index: 999;
    padding: 80px 2rem 2rem;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    display: block;
    color: white;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 500;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: color 0.3s;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.mobile-menu a:hover {
    color: #FFD700;
}

.mobile-menu a.active {
    color: #FFD700;
    font-weight: 600;
}

/* Overlay backdrop */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 998;
}

.menu-overlay.active {
    display: block;
}

/* By-lenker under boksene */
.city-link {
    color: #fff;
    text-decoration: underline;
    transition: color .2s;
}

.city-link:hover {
    color: #FFD700;        /* Gullfarge som matcher gradienten */
}

/* Sun Progress Icon Styles */
.solradar-header {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 0.75rem;
    border: 1px solid rgba(255,255,255,0.1);
}

.sun-progress-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.sun-progress-icon {
    width: 240px;
    height: 240px;
    position: relative;
    transition: transform 0.3s ease;
}

.sun-progress-icon:hover {
    transform: scale(1.05);
}

.sun-base {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #6b7280;
    opacity: 0.3;
}

.sun-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #fbbf24;
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.4));
}

.sun-center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.3125rem;
    font-weight: bold;
    color: #fbbf24;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);    
    pointer-events: none;
    z-index: 10;
    line-height: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav {
        display: none;
    }

    .weather-summary {
        grid-template-columns: 1fr;
    }

    /* Solradar mobile adjustments */
    .solradar-periods {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .solradar-period {
        padding: 0.75rem;
    }

    .period-header {
        margin-bottom: 0.5rem;
    }

    .period-header h4 {
        font-size: 0.8rem;
    }

    .period-time {
        font-size: 0.7rem;
    }

    /* Mobile layout for extended content */
    .period-content-extended {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: center;
    }
    
    .sunshine-info, .precipitation-info {
        align-items: center;
    }
    
    .period-temp {
        align-items: center;
        text-align: center;
    }
    
    .period-sunshine, .period-precipitation {
        justify-content: center;
    }

    .sunshine-duration {
        font-size: 1rem;
    }

    .precipitation-value {
        font-size: 0.9rem;
    }

    .temp-value {
        font-size: 1.25rem;
    }
    
    .time-blocks {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .location-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .location-buttons {
        justify-content: center;
        width: 100%;
    }

    .modal-content {
        width: 95%;
    }

    /* Hourly forecast mobile adjustments */
    .day-summary {
        grid-template-columns: 1fr auto auto;
        gap: 0.5rem;
    }

    .day-weather .day-condition {
        display: none; /* Hide condition text on mobile to save space */
    }

    .day-precip {
        min-width: 50px;
    }

    .hourly-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 0.25rem;
        padding: 0.75rem;
    }

    .hourly-item {
        padding: 0.5rem 0.25rem;
    }

    .hour-details {
        font-size: 0.625rem;
    }

    .accordion-header {
        padding: 0.75rem;
    }

    /* Timeline mobile adjustments - Table-Based */
    .hour-cell {
        width: 45px;
        min-width: 45px;
        height: 220px;
    }

    .weather-section {
        height: 90px;
        margin: 0.25rem 0 20px 0; /* Slightly smaller spacing for mobile */
    }

    .temperature-text {
        font-size: 0.65rem;
    }

    .apparent-temperature-text {
        font-size: 0.6rem;
    }

    .time-label {
        font-size: 0.6rem;
    }

    .timeline-icon {
        width: 20px;
        height: 20px;
    }

    .wind-icon {
        width: 18px;
        height: 18px;
    }

    .wind-direction {
        font-size: 0.55rem;
    }

    .day-header {
        font-weight: 600;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    }
}