/* basic reset */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden; /* keep single-screen behavior */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #fef9f5 0%, #fff5f0 100%);
}

/* floral botanical background - warm peachy tones */
.bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: 
        /* LARGE PEACH FLOWERS - VERY VISIBLE */
        
        /* top left huge flower */
        radial-gradient(ellipse 200px 240px at 15% 22%, rgba(255, 200, 160, 0.75) 0%, transparent 45%),
        radial-gradient(circle 45px at 5% 8%, rgba(255, 180, 140, 0.8) 0%, transparent 100%),
        radial-gradient(circle 42px at 8% 32%, rgba(255, 190, 150, 0.78) 0%, transparent 100%),
        radial-gradient(circle 40px at 28% 18%, rgba(255, 210, 170, 0.75) 0%, transparent 100%),
        radial-gradient(circle 38px at 22% 36%, rgba(255, 200, 160, 0.75) 0%, transparent 100%),
        radial-gradient(circle 35px at 12% 22%, rgba(255, 185, 145, 0.72) 0%, transparent 100%),
        
        /* bottom right huge flower */
        radial-gradient(ellipse 210px 250px at 85% 78%, rgba(255, 200, 160, 0.75) 0%, transparent 45%),
        radial-gradient(circle 47px at 95% 65%, rgba(255, 180, 140, 0.8) 0%, transparent 100%),
        radial-gradient(circle 44px at 75% 90%, rgba(255, 190, 150, 0.78) 0%, transparent 100%),
        radial-gradient(circle 41px at 88% 88%, rgba(255, 210, 170, 0.75) 0%, transparent 100%),
        radial-gradient(circle 39px at 82% 68%, rgba(255, 185, 145, 0.72) 0%, transparent 100%),
        
        /* top center large flower */
        radial-gradient(ellipse 180px 220px at 50% 20%, rgba(255, 210, 170, 0.7) 0%, transparent 42%),
        radial-gradient(circle 40px at 40% 8%, rgba(255, 190, 150, 0.77) 0%, transparent 100%),
        radial-gradient(circle 38px at 60% 12%, rgba(255, 200, 160, 0.75) 0%, transparent 100%),
        radial-gradient(circle 36px at 50% 30%, rgba(255, 210, 170, 0.73) 0%, transparent 100%),
        
        /* bottom left large flower */
        radial-gradient(ellipse 190px 230px at 15% 80%, rgba(255, 200, 160, 0.7) 0%, transparent 43%),
        radial-gradient(circle 42px at 4% 70%, rgba(255, 180, 140, 0.77) 0%, transparent 100%),
        radial-gradient(circle 39px at 20% 92%, rgba(255, 190, 150, 0.75) 0%, transparent 100%),
        radial-gradient(circle 37px at 14% 78%, rgba(255, 210, 170, 0.72) 0%, transparent 100%),
        
        /* top right large flower */
        radial-gradient(ellipse 185px 225px at 85% 20%, rgba(255, 210, 170, 0.68) 0%, transparent 42%),
        radial-gradient(circle 41px at 95% 8%, rgba(255, 190, 150, 0.75) 0%, transparent 100%),
        radial-gradient(circle 38px at 75% 18%, rgba(255, 200, 160, 0.73) 0%, transparent 100%),
        radial-gradient(circle 36px at 85% 32%, rgba(255, 185, 145, 0.7) 0%, transparent 100%),
        
        /* bottom center large flower */
        radial-gradient(ellipse 175px 215px at 50% 82%, rgba(255, 200, 160, 0.68) 0%, transparent 41%),
        radial-gradient(circle 39px at 42% 92%, rgba(255, 180, 140, 0.75) 0%, transparent 100%),
        radial-gradient(circle 37px at 58% 88%, rgba(255, 190, 150, 0.73) 0%, transparent 100%),
        radial-gradient(circle 35px at 50% 70%, rgba(255, 210, 170, 0.7) 0%, transparent 100%),
        
        /* side accent flowers - large and visible */
        radial-gradient(ellipse 160px 190px at 8% 50%, rgba(255, 210, 170, 0.65) 0%, transparent 40%),
        radial-gradient(circle 36px at 2% 42%, rgba(255, 185, 145, 0.72) 0%, transparent 100%),
        radial-gradient(circle 33px at 12% 58%, rgba(255, 200, 160, 0.7) 0%, transparent 100%),
        
        radial-gradient(ellipse 160px 190px at 92% 50%, rgba(255, 210, 170, 0.65) 0%, transparent 40%),
        radial-gradient(circle 36px at 98% 42%, rgba(255, 185, 145, 0.72) 0%, transparent 100%),
        radial-gradient(circle 33px at 88% 58%, rgba(255, 200, 160, 0.7) 0%, transparent 100%),
        
        /* minimal leaf texture */
        linear-gradient(120deg, transparent 30%, rgba(255, 160, 120, 0.08) 30.5%, rgba(255, 160, 120, 0.08) 50%, transparent 50.5%),
        
        /* base gradient */
        linear-gradient(135deg, #fef9f5 0%, #fff5f0 100%);
    background-attachment: fixed;
    opacity: 1;
    animation: subtleFloral 30s ease-in-out infinite;
}

@keyframes subtleFloral {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.95;
    }
}

/* remove overlay since it's causing a grey box */
/* .bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
} */


/* content sits on top of background */
.content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #6a5a4a;
    padding: 3rem;
    border-radius: 20px;
    max-width: 650px;
    margin: auto;
}

.content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: none;
    color: #5a4a3a;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.links a {
    display: inline-block;
    padding: 0.85rem 1.8rem;
    background: linear-gradient(135deg, #ffd9b3 0%, #ffc9a8 100%);
    color: #8a5a3a;
    text-decoration: none;
    border-radius: 10px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 2px solid #ffb87a;
    box-shadow: 0 4px 12px rgba(240, 179, 212, 0.25);
    transition: background 0.3s ease, transform 0.2s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    font-weight: 600;
}

.links a:hover {
    background: linear-gradient(135deg, #ffb88a 0%, #ffaa75 100%);
    border-color: #ff9955;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 160, 120, 0.4);
}

/* larger screens get a row layout */
@media (min-width: 600px) {
    .links {
        flex-direction: row;
    }
}

/* clock and search styling */
#clock {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #8a6a5a;
    font-weight: 400;
    letter-spacing: 1px;
}

/* countdown timer styling */
.countdown {
    margin: 1.5rem 0;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.countdown-box {
    background: linear-gradient(135deg, #fff5eb 0%, #ffe8d4 100%);
    border: 2px solid #ffcba8;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    min-width: 80px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 4px 15px rgba(255, 150, 200, 0.2);
}

.countdown-box:nth-child(2) {
    background: linear-gradient(135deg, #fff5eb 0%, #ffe8d4 100%);
    border-color: #ffcba8;
}

.countdown-box:nth-child(3) {
    background: linear-gradient(135deg, #fff5eb 0%, #ffe8d4 100%);
    border-color: #ffcba8;
}

.countdown-box:nth-child(4) {
    background: linear-gradient(135deg, #fff5eb 0%, #ffe8d4 100%);
    border-color: #ffcba8;
}

.countdown-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #d97a3a;
    line-height: 1;
    text-shadow: none;
}

.countdown-box:nth-child(2) .countdown-value {
    color: #d97a3a;
}

.countdown-box:nth-child(3) .countdown-value {
    color: #d97a3a;
}

.countdown-box:nth-child(4) .countdown-value {
    color: #d97a3a;
}

.countdown-label {
    font-size: 0.75rem;
    color: #8a6a4a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
    text-shadow: none;
    font-weight: 600;
}

.countdown-box:nth-child(2) .countdown-label {
    color: #8a6a4a;
}

.countdown-box:nth-child(3) .countdown-label {
    color: #8a6a4a;
}

.countdown-box:nth-child(4) .countdown-label {
    color: #8a6a4a;
}

.countdown-message {
    font-size: 1.3rem;
    color: #d97a3a;
    margin: 1rem 0;
    font-weight: 500;
}

/* weather widget styling (matches site theme) */
.weather {
    margin-top: 1rem;
}

.weather-widget {
    background: linear-gradient(135deg, #fff8f0 0%, #fff5e8 100%);
    border: 2px solid #ffcba8;
    border-radius: 12px;
    padding: 0.8rem 1.2rem;
    width: 100%;
    margin: 0 auto;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 4px 16px rgba(255, 150, 150, 0.15);
    color: #4a4a4a;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.6rem;
}

.weather-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.weather-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.weather-icon {
    font-size: 1.8rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, #ffe8d4 0%, #fff0e6 100%);
    box-shadow: 0 3px 10px rgba(255, 160, 120, 0.15);
}

.weather-text .weather-temp {
    font-size: 1.4rem;
    font-weight: 700;
    color: #d97a3a;
}

.weather-text .weather-desc {
    font-size: 0.9rem;
    color: #8a6a5a;
}

.weather-details {
    margin-top: 0.6rem;
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    font-size: 0.85rem;
    color: #8a6a5a;
}

/* bottom positioning for the widget */
.weather.bottom {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: fit-content;
    max-width: calc(100% - 44px);
    z-index: 11;
}

.weather-grid {
    margin-top: 0;
    display: flex;
    gap: 0.6rem 1rem;
    align-items: center;
    justify-content: flex-start;
    font-size: 0.88rem;
    color: #8a6a5a;
    flex: 1 1 auto;
    width: fit-content;
}

/* boxed, clearer items for readability */
.weather-grid > div {
    background: linear-gradient(135deg, rgba(255, 200, 160, 0.15), rgba(255, 220, 180, 0.15));
    padding: 0.35rem 0.6rem;
    border-radius: 8px;
    border: 1.5px solid #ffcba8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    gap: 0.1rem;
    min-width: 78px;
}

.weather-updated {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    min-width: 84px;
    margin-left: 1rem;
    color: #8a5a3a;
}

.weather-updated .small-label {
    font-size: 0.68rem;
    color: #a88a6a;
    margin-bottom: 0.08rem;
}

.weather-updated #weatherUpdated {
    font-weight: 700;
    font-size: 0.92rem;
}

.weather-grid > div span {
    font-weight: 700;
    color: #8a5a3a;
    font-size: 1rem;
}

.weather-grid > div::before {
    content: '';
    height: 1px;
    width: 40%;
    background: rgba(255, 160, 120, 0.25);
    margin-bottom: 0.15rem;
    border-radius: 2px;
}

/* Updated timestamp as plain text, not a box */
.weather-grid > div:last-child {
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    min-height: auto;
    gap: 0.05rem;
    margin-left: 0.3rem;
    min-width: 0;
}

.weather-grid > div:last-child::before {
    display: none;
}

.weather-grid > div:last-child span {
    font-size: 0.8rem;
    color: #a88a6a;
}

.weather-text { text-align: left; }
.weather-text .weather-temp { font-size: 1.8rem; }
.weather-text .weather-desc { font-size: 1rem; color: #7a6a8a; }

@media (max-width: 900px) {
    .weather-grid { gap: 0.5rem; }
}

@media (max-width: 640px) {
    .weather-widget { flex-direction: column; align-items: stretch; padding: 0.8rem; }
    .weather-updated { align-items: flex-start; margin-left: 0; margin-top: 0.35rem; }
    .weather-grid { flex-wrap: wrap; justify-content: center; margin-top: 0.4rem; }
    .weather-grid > div { min-width: 120px; }
    .weather.bottom { display: none; }
}

/* remove focus outlines globally */
input:focus, button:focus, a:focus {
    outline: none;
}

.search {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

.search input {
    padding: 0.5rem 1rem;
    border: 2px solid #ffcba8;
    border-radius: 8px;
    width: 200px;
    outline: none;
    background: linear-gradient(135deg, #fff9f5 0%, #fff7f2 100%);
    color: #4a4a4a;
    font-size: 0.95rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 150, 150, 0.1);
}

.search input::placeholder {
    color: rgba(74, 74, 74, 0.5);
}

.search input:focus {
    background: linear-gradient(135deg, #fff5f0 0%, #fef8f3 100%);
    border-color: #ff9955;
    box-shadow: 0 4px 16px rgba(255, 150, 150, 0.18);
}

.search button {
    padding: 0.5rem 1rem;
    border: 2px solid #ffcba8;
    border-radius: 8px;
    background: linear-gradient(135deg, #ffe8d4 0%, #fff0e6 100%);
    color: #8a5a3a;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
    box-shadow: 0 2px 8px rgba(255, 150, 150, 0.1);
}

.search button:hover {
    background: linear-gradient(135deg, #ffb88a 0%, #ffc9a8 100%);
    border-color: #ff9955;
    box-shadow: 0 4px 16px rgba(255, 150, 150, 0.2);
}
