* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gold: #D4AF37;
    --gold-dark: #B8940F;
    --black: #000000;
    --white: #FFFFFF;
    --gray-dark: #1A1A1A;
    --gray: #2A2A2A;
    --gray-light: #3A3A3A;
}

body {
    font-family: 'Crimson Text', serif;
    background: var(--black);
    color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gold);
}

.time-section {
    flex: 1;
    min-width: 200px;
}

.time {
    font-family: 'Cinzel', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 0.25rem;
    letter-spacing: 1px;
}

.date {
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    color: var(--white);
    opacity: 0.7;
}

.year-progress {
    min-width: 280px;
    max-width: 350px;
}

.progress-label {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
    text-align: right;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.progress-bar-container {
    position: relative;
    margin-bottom: 0.5rem;
}

.progress-bar {
    width: 100%;
    height: 24px;
    background: var(--gray-dark);
    border: 1px solid var(--gold);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gold);
    transition: width 1s ease-out;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--black);
    pointer-events: none;
}

.journey-region {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    color: var(--gold);
    text-align: right;
    font-style: italic;
    opacity: 0.9;
}

/* Quote */
.quote-container {
    padding: 0.75rem 0;
    border-top: 1px solid var(--gold);
    border-bottom: 1px solid var(--gold);
}

.quote-text {
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    color: var(--white);
    opacity: 0.8;
    font-style: italic;
    text-align: center;
    line-height: 1.6;
}

/* Search Bar */
.search-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--gray-dark);
    border: 1px solid var(--gold);
    padding: 0.875rem 1.25rem;
    transition: all 0.2s ease;
}

.search-box:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.search-icon {
    width: 20px;
    height: 20px;
    color: var(--gold);
    margin-right: 0.75rem;
    flex-shrink: 0;
}

#search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    background: transparent;
    color: var(--white);
    font-family: 'Crimson Text', serif;
}

#search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Weather Section */
.weather-section {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.weather-card {
    background: var(--gray-dark);
    border: 1px solid var(--gold);
    padding: 1rem;
}

.weather-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    color: var(--gold);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 0.5rem;
}

.weather-toggle {
    background: transparent;
    border: none;
    color: var(--gold);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.weather-toggle:hover {
    opacity: 0.8;
}

.weather-toggle svg {
    width: 16px;
    height: 16px;
}

.weather-content {
    color: var(--white);
    font-size: 0.95rem;
}

.weather-loading {
    text-align: center;
    opacity: 0.6;
    font-style: italic;
}

.daily-weather-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.weather-emoji-large {
    font-size: 3.5rem;
    line-height: 1;
}

.weather-temp-main {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--gold);
    line-height: 1;
}

.weather-details {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.weather-detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.weather-detail-label {
    font-size: 0.75rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.weather-detail-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
}

.weekly-forecast-container {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gold);
}

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

.forecast-day {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray);
    font-size: 0.9rem;
}

.forecast-day:last-child {
    border-bottom: none;
}

.forecast-day-name {
    font-weight: 600;
    color: var(--gold);
    min-width: 60px;
}

.forecast-day-temp {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Categories */
.categories-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
}

.category {
    background: var(--gray-dark);
    border: 1px solid var(--gold);
    padding: 1.25rem;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gold);
}

.category-icon {
    font-size: 1.5rem;
}

.category-title {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}

.link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.75rem;
    background: var(--gray);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--white);
    text-align: center;
}

.link-item:hover {
    background: var(--gray-light);
    border-color: var(--gold);
    transform: translateY(-2px);
}

.link-icon {
    font-size: 2rem;
    transition: transform 0.2s ease;
}

.link-item:hover .link-icon {
    transform: scale(1.1);
}

.link-name {
    font-size: 0.85rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
        gap: 1rem;
    }

    .header {
        flex-direction: column;
        align-items: stretch;
    }

    .year-progress {
        min-width: 100%;
        max-width: 100%;
    }

    .progress-label {
        text-align: left;
    }

    .journey-region {
        text-align: left;
    }

    .time {
        font-size: 2.5rem;
    }

    .weather-details {
        gap: 1rem;
    }

    .category {
        padding: 1rem;
    }

    .category-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .link-item {
        padding: 0.875rem 0.5rem;
    }

    .link-icon {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .category-items {
        grid-template-columns: 1fr;
    }

    .time {
        font-size: 2rem;
    }

    .progress-bar {
        height: 20px;
    }

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

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--black);
}

::-webkit-scrollbar-thumb {
    background: var(--gold);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}
