/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: none !important;
    animation: none !important;
    box-shadow: none !important;
    font-weight: 900 !important;
    border-radius: 0 !important;
}

body {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Source Code Pro', 'Menlo', 'Consolas', monospace;
    background: #ffffff;
    min-height: 100vh;
    padding: 20px;
    line-height: 1.2;
    color: #000000;
    font-weight: 900;
}

/* ===== MAIN CONTAINER ===== */
.container {
    max-width: 420px;
    margin: 0 auto;
    background: #ffffff;
    border: 4px solid #000000;
    padding: 20px;
    color: #000000;
}

/* ===== TYPOGRAPHY ===== */
h1 {
    text-align: center;
    color: #000000;
    margin-bottom: 20px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.1;
    white-space: nowrap;
    font-size: clamp(1rem, 4.5vw, 1.8rem);
}

label {
    display: block;
    margin-bottom: 8px;
    color: #000000;
    font-weight: 900;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== INPUT GROUPS & LAYOUT ===== */
.input-group {
    margin-bottom: 16px;
}

.period-select-group {
    display: flex;
    width: 100%;
}

/* ===== FORM INPUTS ===== */
select,
.period-select {
    width: 100%;
    padding: 12px;
    border: 4px solid #000000;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 900;
    background: #ffffff;
    color: #000000;
    text-transform: uppercase;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23000000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

select:focus,
.period-select:focus {
    outline: none;
    border-color: #ff0000;
    background: #ffff00;
}

/* ===== BUTTONS ===== */
button {
    font-family: inherit;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

button:focus-visible {
    outline: 4px solid #ff0000;
    outline-offset: 4px;
}

/* ===== ACTIVITY BUTTONS ===== */
.activity-buttons {
    display: flex;
    gap: 8px;
    width: 100%;
}

.activity-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    background: #ffffff;
    border: 4px solid #000000;
    cursor: pointer;
    font-family: inherit;
    color: #000000;
}

.activity-btn:hover,
.activity-btn.active {
    background: #ffff00;
    color: #000000;
}

.activity-emoji {
    font-size: 2rem;
    margin-bottom: 8px;
    display: block;
}

.activity-label {
    font-size: 0.9rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== NESH BUTTONS ===== */
.nesh-group {
    margin-bottom: 16px;
    margin-top: 24px;
    border-top: 4px solid #000000;
    padding-top: 24px;
}

.nesh-buttons {
    display: flex;
    gap: 8px;
    width: 100%;
}

.nesh-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    background: #ffffff;
    border: 4px solid #000000;
    cursor: pointer;
    font-family: inherit;
    color: #000000;
}

.nesh-btn:hover,
.nesh-btn.active {
    background: #ffff00;
    color: #000000;
}

.nesh-btn-text {
    font-size: 0.9rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nesh-help-text {
    color: #666666;
    font-size: 0.7rem;
    margin-top: 12px;
    display: block;
    line-height: 1.4;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
}

/* ===== RECOMMENDATIONS SECTION ===== */
#recommendations {
    background: #ffffff;
    padding: 12px;
    margin-top: 16px;
    border: 4px solid #000000;
}

#recommendations h3 {
    color: #000000;
    margin-bottom: 4px;
    font-size: 0.9rem;
    font-weight: 900;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: inherit;
    line-height: 1.1;
}

.weather-emoji {
    font-size: 1.3em;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.clothing-item {
    background: #ffffff;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    font-size: 0.9rem;
    font-weight: 900;
    color: #000000;
    text-transform: uppercase;
    font-family: inherit;
    letter-spacing: 1px;
    line-height: 1.3;
    display: block !important;
    margin-left: 16px !important;
}


/* ===== PLACEHOLDER ===== */
.placeholder {
    background: #ffffff;
    border: 4px solid #000000;
    padding: 48px 32px;
    margin-top: 32px;
    text-align: center;
}

.placeholder.hidden {
    display: none;
}

.placeholder-content {
    color: #000000;
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 24px;
}

.placeholder h3 {
    color: #000000;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: inherit;
}

.placeholder p {
    font-size: 1rem;
    line-height: 1.4;
    max-width: 400px;
    margin: 0 auto;
    font-weight: 700;
    text-transform: uppercase;
    font-family: inherit;
    color: #666666;
}

/* ===== FOOTER ===== */
.footer {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 2px solid #000000;
    text-align: center;
}

.footer p {
    font-size: 0.7rem;
    color: #666666;
    line-height: 1.3;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer p:last-child {
    margin-bottom: 0;
}

.footer a {
    color: #000000;
    text-decoration: none;
    font-weight: 900;
}

.footer a:hover {
    color: #ff0000;
}

.nesh-highlight {
    color: #ff00ff;
    font-weight: 900;
}

/* ===== LOCATION PICKER ===== */
.location-group {
    display: flex;
    width: 100%;
}

.location-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: #ffffff;
    border: 4px solid #000000;
    cursor: pointer;
    font-family: inherit;
    color: #000000;
    font-size: 0.9rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.location-btn:hover {
    background: #ffff00;
    color: #000000;
}

.location-text {
    flex: 1;
    text-align: left;
}

.location-icon {
    font-size: 1.2em;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

/* ===== LOCATION MODAL ===== */
.location-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 10px;
}

.location-modal.hidden {
    display: none;
}

.location-modal-content {
    background: #ffffff;
    border: 4px solid #000000;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.location-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 4px solid #000000;
}

.location-modal-header h2 {
    font-size: 1.2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000000;
    margin: 0;
}

.close-btn {
    background: #ffffff;
    border: 4px solid #000000;
    color: #000000;
    font-size: 2rem;
    font-weight: 900;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-family: inherit;
}

.close-btn:hover {
    background: #ff0000;
    color: #ffffff;
}

.location-search {
    display: flex;
    padding: 10px;
    gap: 8px;
    border-bottom: 4px solid #000000;
}

.location-search-input {
    flex: 1;
    padding: 12px;
    border: 4px solid #000000;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 900;
    background: #ffffff;
    color: #000000;
    text-transform: uppercase;
}

.location-search-input:focus {
    outline: none;
    border-color: #ff0000;
    background: #ffff00;
}

.search-btn {
    padding: 12px 16px;
    background: #000000;
    border: 4px solid #000000;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
}

.search-btn:hover {
    background: #ffff00;
    color: #000000;
}

.map-container {
    height: 400px;
    border-bottom: 4px solid #000000;
}

.location-modal-footer {
    display: flex;
    gap: 8px;
    padding: 10px;
}

.location-action-btn {
    flex: 1;
    padding: 12px 16px;
    border: 4px solid #000000;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
}

.location-action-btn {
    background: #ffffff;
    color: #000000;
}

.location-action-btn.primary {
    background: #000000;
    color: #ffffff;
}

.location-action-btn:hover {
    background: #ffff00;
    color: #000000;
}

.location-action-btn.primary:hover {
    background: #ffff00;
    color: #000000;
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 768px) {
    body {
        padding: 16px;
    }
    
    .container {
        padding: 24px;
    }
    
    .input-group {
        margin-bottom: 24px;
    }
    
    #recommendations {
        padding: 24px;
        margin-top: 24px;
    }
    
    .clothing-item {
        padding: 14px 20px;
        font-size: 0.95rem;
    }
    
    .activity-btn {
        padding: 14px 10px;
    }
    
    .activity-emoji {
        font-size: 1.6rem;
        margin-bottom: 4px;
    }
    
    .activity-label {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px;
        margin: 8px;
    }
    
    h1 {
        font-size: 1.4rem;
    }
    
    select,
    .period-select {
        padding: 14px 16px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* ===== ACCESSIBILITY ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}