/* Us Here Now - Minimal Meditative Styles with Accessibility */

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



/* High contrast and large readable typography */
body {
    background-color: #000000;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 20px; /* Increased from 18px for better readability */
    line-height: 1.7; /* Increased from 1.6 for better readability */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    /* Ensure high contrast ratio (21:1) */
    background: #000000;
    color: #ffffff;
}

/* Enhanced contrast for users with high contrast preferences */
@media (prefers-contrast: high) {
    body {
        background-color: #000000;
        color: #ffffff;
    }
    
    * {
        border-color: #ffffff !important;
    }
}

#app {
    width: 100%;
    max-width: 800px;
    padding: 2rem;
    text-align: center;
}

#dialogue-container {
    position: relative;
    min-height: 200px;
}

.phase {
    opacity: 1;
    transition: opacity 600ms ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.phase.fade-out {
    opacity: 0;
}

.phase.fade-in {
    opacity: 1;
}

.phase.hidden {
    display: none;
}

/* Enhanced Typography for Accessibility */
h1, h2, h3 {
    font-weight: 400; /* Increased from 300 for better readability */
    margin-bottom: 1.2rem; /* Increased spacing */
    line-height: 1.3; /* Better line height for headings */
}

h1 {
    font-size: 2.5rem; /* Large, readable heading */
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.2rem; /* Increased spacing */
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7; /* Improved readability */
}

/* Ensure text remains readable at high zoom levels */
@media (min-resolution: 2dppx) {
    body {
        font-size: 22px;
    }
}

/* Enhanced Interactive Elements for Accessibility */
button, input[type="text"], input[type="search"] {
    background: transparent;
    border: 2px solid #666; /* Increased border width and contrast */
    color: #ffffff;
    padding: 1rem 1.75rem; /* Increased padding for better touch targets */
    font-size: 18px; /* Increased font size */
    border-radius: 4px; /* Slight radius for better visual distinction */
    cursor: pointer;
    transition: all 300ms ease;
    min-height: 44px; /* Ensure minimum touch target size */
    font-family: inherit; /* Ensure consistent font */
}

/* Enhanced focus indicators for keyboard navigation */
button:focus, input:focus {
    outline: 3px solid #ffffff;
    outline-offset: 2px;
    border-color: #999;
    background: rgba(255, 255, 255, 0.1);
}

button:hover, input:hover {
    border-color: #999;
    background: rgba(255, 255, 255, 0.05);
}

button:active {
    border-color: #ccc;
    background: rgba(255, 255, 255, 0.15);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    border-color: #444;
}

input[type="text"], input[type="search"] {
    cursor: text;
    margin: 0.5rem;
    min-width: 220px; /* Increased minimum width */
}

/* High contrast mode enhancements */
@media (prefers-contrast: high) {
    button, input[type="text"], input[type="search"] {
        border-color: #ffffff;
        border-width: 3px;
    }
    
    button:focus, input:focus {
        outline: 4px solid #ffffff;
        background: rgba(255, 255, 255, 0.2);
    }
    
    button:hover, input:hover {
        background: rgba(255, 255, 255, 0.3);
    }
}

/* Button variants */
.primary-button {
    border: 2px solid #666;
    padding: 1rem 2rem;
    font-weight: 300;
    margin: 1rem 0.5rem;
}

.primary-button:hover:not(:disabled) {
    border-color: #999;
    background: rgba(255, 255, 255, 0.05);
}

.secondary-button {
    border: 1px solid #444;
    padding: 0.75rem 1.5rem;
    font-size: 14px;
    margin: 0.5rem;
}

.secondary-button:hover {
    border-color: #666;
}

/* Location display */
.location-display {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    font-size: 14px;
    opacity: 0.6;
    transition: opacity 300ms ease;
    cursor: pointer;
    padding: 0.5rem;
    border: 1px solid transparent;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.location-display:hover {
    opacity: 1;
    border-color: #333;
    background: rgba(0, 0, 0, 0.6);
}

.location-text {
    display: block;
    margin-bottom: 0.2rem;
}

.location-edit-hint {
    font-size: 12px;
    opacity: 0.7;
    font-style: italic;
}

/* Location edit interface */
.location-edit-interface {
    position: fixed;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid #333;
    border-radius: 8px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
}

.location-edit-content {
    padding: 1.5rem;
    min-width: 300px;
    position: relative;
}

.location-edit-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 200ms ease;
}

.location-edit-close:hover {
    opacity: 1;
}

.current-location {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #333;
    font-size: 14px;
    opacity: 0.8;
}

.location-edit-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.location-edit-btn {
    background: transparent;
    border: 1px solid #444;
    color: #ffffff;
    padding: 0.5rem 1rem;
    font-size: 14px;
    cursor: pointer;
    transition: all 200ms ease;
    border-radius: 4px;
}

.location-edit-btn:hover {
    border-color: #666;
    background: rgba(255, 255, 255, 0.05);
}

.location-edit-btn.primary {
    border-color: #666;
    background: rgba(255, 255, 255, 0.1);
}

.location-edit-btn.primary:hover {
    border-color: #999;
    background: rgba(255, 255, 255, 0.15);
}

#location-edit-search {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #444;
    color: #ffffff;
    padding: 0.5rem;
    font-size: 14px;
    border-radius: 4px;
    width: 100%;
}

#location-edit-search:focus {
    outline: none;
    border-color: #666;
    background: rgba(0, 0, 0, 0.7);
}

#location-edit-search::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.location-edit-result {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #333;
    border-radius: 4px;
    font-size: 14px;
}

.location-edit-result.hidden {
    display: none;
}

.location-edit-confirmation {
    text-align: center;
}

.location-edit-confirmation .location-coords {
    font-size: 12px;
    opacity: 0.7;
    margin-bottom: 1rem;
}

.location-edit-confirmation .location-edit-btn {
    margin: 0 0.25rem;
}

.location-edit-error {
    color: #ff6b6b;
    text-align: center;
}

.location-coords {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 0.25rem;
}

/* Cosmic dials container */
.cosmic-dials {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: flex-start;
}

.dial {
    width: 240px;
    height: 240px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dial-label {
    font-size: 12px;
    color: #ffffff;
    opacity: 0.7;
    margin-bottom: 0.5rem;
    text-align: center;
    font-weight: 300;
}

.dial-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.dial svg {
    display: block;
}

/* Loading States and Transitions */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    min-height: 120px;
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid #333;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 16px;
    opacity: 0.8;
    text-align: center;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .loading-spinner {
        animation: none;
        border: 2px solid #666;
    }
    
    .phase {
        transition: none;
    }
    
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* Error States */
.error-container {
    padding: 2rem;
    text-align: center;
    border: 1px solid #444;
    border-radius: 8px;
    background: rgba(255, 0, 0, 0.05);
    margin: 1rem 0;
}

.error-message {
    color: #ff6b6b;
    margin-bottom: 1rem;
    font-size: 16px;
}

.retry-button {
    background: transparent;
    border: 1px solid #ff6b6b;
    color: #ff6b6b;
    padding: 0.75rem 1.5rem;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 200ms ease;
}

.retry-button:hover {
    background: rgba(255, 107, 107, 0.1);
    border-color: #ff8a8a;
}

.retry-button:focus {
    outline: 2px solid #ff6b6b;
    outline-offset: 2px;
}

/* API Status Indicators */
.api-status {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 14px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 300ms ease;
    pointer-events: none;
}

.api-status.show {
    opacity: 1;
}

.api-status.loading {
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid #333;
    color: #ffffff;
}

.api-status.success {
    background: rgba(0, 128, 0, 0.9);
    border: 1px solid #4CAF50;
    color: #ffffff;
}

.api-status.error {
    background: rgba(255, 0, 0, 0.9);
    border: 1px solid #ff6b6b;
    color: #ffffff;
}

.connection-status {
    position: fixed;
    top: 4rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 12px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 300ms ease;
    pointer-events: none;
}

.connection-status.show {
    opacity: 1;
}

.connection-status.online {
    background: rgba(0, 128, 0, 0.9);
    border: 1px solid #4CAF50;
    color: #ffffff;
}

.connection-status.offline {
    background: rgba(255, 165, 0, 0.9);
    border: 1px solid #FFA500;
    color: #000000;
}

/* Graceful Degradation Notice */
.degradation-notice {
    background: rgba(255, 165, 0, 0.1);
    border: 1px solid #FFA500;
    color: #FFA500;
    padding: 0.5rem 1rem;
    margin: 0.5rem 0;
    border-radius: 4px;
    font-size: 12px;
    text-align: center;
}

/* Button Loading States */
.button-loading {
    position: relative;
    color: transparent !important;
}

.button-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.button-loading .button-text {
    opacity: 0;
}

/* Data Placeholders */
.data-placeholder {
    background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin: 0.5rem 0;
}

.data-placeholder.wide {
    height: 20px;
    width: 100%;
}

.data-placeholder.narrow {
    height: 16px;
    width: 60%;
}

.data-placeholder.small {
    height: 12px;
    width: 40%;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Timeout Message */
.timeout-message {
    text-align: center;
    padding: 2rem;
    border: 1px solid #444;
    border-radius: 8px;
    background: rgba(255, 165, 0, 0.05);
    margin: 1rem 0;
}

.timeout-message .icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.timeout-message p {
    color: #FFA500;
    margin-bottom: 1.5rem;
}

.retry-options {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.retry-options button {
    padding: 0.5rem 1rem;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 200ms ease;
}

.retry-options .primary {
    background: transparent;
    border: 1px solid #FFA500;
    color: #FFA500;
}

.retry-options .primary:hover {
    background: rgba(255, 165, 0, 0.1);
}

.retry-options button:not(.primary) {
    background: transparent;
    border: 1px solid #666;
    color: #ffffff;
}

.retry-options button:not(.primary):hover {
    border-color: #999;
    background: rgba(255, 255, 255, 0.05);
}

/* Journal Modal Styles */
.journal-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(10px);
}

.journal-modal {
    background: #000000;
    border: 1px solid #333;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.journal-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #333;
    position: relative;
}

.journal-modal-header h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.journal-microseason {
    font-size: 14px;
    opacity: 0.7;
    margin: 0;
}

.journal-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 200ms ease;
}

.journal-modal-close:hover {
    opacity: 1;
}

.journal-modal-close:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.journal-modal-body {
    padding: 1.5rem;
}

#journal-content {
    width: 100%;
    min-height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    color: #ffffff;
    padding: 1rem;
    font-size: 16px;
    line-height: 1.6;
    border-radius: 4px;
    resize: vertical;
    font-family: inherit;
}

#journal-content:focus {
    outline: none;
    border-color: #666;
    background: rgba(255, 255, 255, 0.08);
}

#journal-content::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.journal-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #333;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.journal-modal-footer .primary-button {
    margin: 0;
}

.journal-modal-footer .secondary-button {
    margin: 0;
}

/* Weather overlay styles */
.weather-overlay {
    width: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1rem;
}

.weather-label {
    font-size: 12px;
    color: #ffffff;
    opacity: 0.7;
    margin-bottom: 0.5rem;
    text-align: center;
    font-weight: 300;
}

.weather-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    border-radius: 4px;
    min-width: 80px;
}

.weather-icon {
    font-size: 24px;
    line-height: 1;
}

.weather-temp {
    font-size: 14px;
    color: #ffffff;
    font-weight: 300;
}

.weather-desc {
    font-size: 10px;
    color: #ffffff;
    opacity: 0.7;
    text-align: center;
    max-width: 100px;
    line-height: 1.2;
}

/* Mood check-in modal */
.mood-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.mood-modal {
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
}

.mood-modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mood-modal-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #333;
    position: relative;
}

.mood-modal-header h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 300;
}

.mood-modal-header p {
    margin: 0;
    opacity: 0.8;
    font-size: 0.9rem;
}

.mood-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 200ms ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mood-modal-close:hover {
    opacity: 1;
}

.mood-modal-body {
    padding: 1.5rem 2rem;
    flex: 1;
}

.mood-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.mood-option {
    padding: 1rem;
    border: 1px solid #333;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    transition: all 300ms ease;
    text-align: left;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mood-option:hover {
    border-color: #666;
    background: rgba(255, 255, 255, 0.05);
}

.mood-option:focus {
    outline: 2px solid #666;
    outline-offset: 2px;
}

.mood-option.selected {
    border-color: #999;
    background: rgba(255, 255, 255, 0.1);
}

.mood-label {
    font-weight: 500;
    font-size: 1rem;
}

.mood-description {
    font-size: 0.8rem;
    opacity: 0.7;
    line-height: 1.3;
}

.mood-modal-footer {
    padding: 1rem 2rem 2rem;
    border-top: 1px solid #333;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.mood-modal-footer .primary-button {
    margin: 0;
}

.mood-modal-footer .secondary-button {
    margin: 0;
}

/* Loading states */
.loading {
    opacity: 0.6;
}

.loading::after {
    content: '...';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: '...'; }
    40% { content: '..'; }
    60% { content: '.'; }
    80%, 100% { content: ''; }
}

/* Responsive design */
@media (max-width: 600px) {
    body {
        font-size: 16px;
        padding: 1rem;
    }
    
    .cosmic-dials {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }
    
    .dial {
        width: 200px;
        height: 200px;
    }
    
    .weather-overlay {
        width: 200px;
        margin-top: 0.5rem;
    }
    
    .weather-display {
        min-width: 70px;
    }
    
    .location-display {
        position: static;
        margin-top: 2rem;
        text-align: center;
        background: rgba(0, 0, 0, 0.5);
        border: 1px solid #333;
    }
    
    .location-edit-interface {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 350px;
    }
    
    .location-edit-content {
        padding: 1rem;
        min-width: auto;
    }
    
    .location-edit-options {
        gap: 0.5rem;
    }
}

/* Dialogue phase styles */
.hello-phase, .name-phase, .location-phase, .cosmos-phase, 
.microseason-phase, .mood-phase, .sharing-phase {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.name-meaning {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    font-style: italic;
    opacity: 0.9;
}

.name-meaning.hidden {
    display: none;
}

.location-alternative {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

.location-result {
    margin-top: 1.5rem;
    padding: 1rem;
}

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

.location-confirmation {
    text-align: center;
}

.location-error {
    color: #ff6b6b;
    text-align: center;
}

.cosmic-data {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.cosmic-data > div {
    padding: 1rem;
    border: 1px solid #333;
    background: rgba(255, 255, 255, 0.03);
    min-width: 150px;
}

.cosmic-data h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.astro-summary {
    margin: 1.5rem 0;
    font-style: italic;
    opacity: 0.9;
}

.microseason-display {
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem;
}

.microseason-display h3 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.microseason-dates {
    text-align: center;
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 1.5rem;
}

.factual-summary {
    line-height: 1.7;
    margin: 1.5rem 0;
}

.poetic-line {
    text-align: center;
    font-style: italic;
    margin: 1.5rem 0;
    padding: 1rem;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    opacity: 0.9;
}

.mood-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.mood-option {
    padding: 1rem;
    border: 1px solid #333;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    transition: all 300ms ease;
    font-size: 14px;
}

.mood-option:hover {
    border-color: #666;
    background: rgba(255, 255, 255, 0.05);
}

.mood-option.selected {
    border-color: #999;
    background: rgba(255, 255, 255, 0.1);
}

.mood-response {
    margin: 2rem 0;
    padding: 1.5rem;
    text-align: left;
}

.mood-response.hidden {
    display: none;
}

.mood-acknowledgment p {
    margin-bottom: 1rem;
}

.mood-acknowledgment .supportive-message {
    font-style: italic;
    opacity: 0.9;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid #666;
    margin-top: 1rem;
}

.sharing-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 2rem auto;
}

.sharing-button {
    padding: 1rem 2rem;
    border: 1px solid #444;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    transition: all 300ms ease;
}

.sharing-button:hover {
    border-color: #666;
    background: rgba(255, 255, 255, 0.05);
}

.sharing-result {
    margin: 2rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #333;
}

.sharing-result.hidden {
    display: none;
}

.error {
    color: #ff6b6b;
    text-align: center;
    padding: 1rem;
    border: 1px solid #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.hidden {
    display: none !important;
}

/* Enhanced Accessibility Features */

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .phase {
        transition: none;
    }
    
    button, input {
        transition: none;
    }
    
    .cosmic-dials * {
        animation: none !important;
        transition: none !important;
    }
}

/* Screen reader only content */
.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;
}



/* Focus management for sequential dialogue */
.phase:focus-within {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 4px;
    border-radius: 8px;
}

/* Enhanced keyboard navigation indicators */
*:focus {
    outline: 3px solid #ffffff;
    outline-offset: 2px;
}

/* Ensure interactive elements are clearly distinguishable */
button, input, [role="button"], [tabindex="0"] {
    position: relative;
}

button:focus-visible, input:focus-visible, [role="button"]:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
    box-shadow: 0 0 0 1px #000000, 0 0 0 4px #ffffff;
}

/* High contrast mode for better visibility */
@media (prefers-contrast: high) {
    .phase {
        border: 2px solid #ffffff;
        padding: 1rem;
        margin: 0.5rem;
    }
    
    .cosmic-dials .dial {
        border: 2px solid #ffffff;
        background: #000000;
    }
    
    .mood-option {
        border: 3px solid #ffffff !important;
    }
    
    .mood-option:hover, .mood-option:focus {
        background: #ffffff !important;
        color: #000000 !important;
    }
}

/* Large text support */
@media (min-width: 1200px) {
    body {
        font-size: 22px;
    }
    
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    h3 {
        font-size: 2rem;
    }
}

/* Ensure sufficient color contrast for all text */
.dial-label, .weather-label {
    color: #ffffff;
    font-weight: 500;
    text-shadow: 1px 1px 2px #000000;
}

/* Enhanced visibility for important UI elements */
.location-display {
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.8);
}

.location-display:hover, .location-display:focus {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.9);
}

/* Responsive adjustments for dialogue phases */
@media (max-width: 600px) {
    .cosmic-data {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cosmic-data > div {
        min-width: auto;
    }
    
    .mood-options {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.75rem;
    }
    
    .sharing-options {
        max-width: 100%;
    }
    
    .microseason-display {
        padding: 1.5rem;
    }
    
    /* Mood modal responsive */
    .mood-modal {
        width: 95%;
        max-height: 95vh;
    }
    
    .mood-modal-header,
    .mood-modal-body,
    .mood-modal-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .mood-options-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .mood-modal-footer {
        flex-direction: column;
    }
    
    .mood-modal-footer .primary-button,
    .mood-modal-footer .secondary-button {
        width: 100%;
    }
}

/* Seasonal transition window styles */
.seasonal-transition-window {
    margin: 2rem 0;
    padding: 1.5rem;
    border: 1px solid #333;
    background: rgba(255, 255, 255, 0.02);
}

.seasonal-button {
    background: transparent;
    border: 2px solid #666;
    color: #ffffff;
    padding: 1rem 2rem;
    font-size: 18px;
    font-weight: 300;
    cursor: pointer;
    transition: all 400ms ease;
    margin: 1rem 0;
    display: block;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.seasonal-button:hover {
    border-color: #999;
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

.seasonal-button:active {
    transform: translateY(0);
    border-color: #ccc;
}

.seasonal-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.transition-description {
    font-size: 16px;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.transition-window-info {
    font-size: 14px;
    opacity: 0.6;
    margin-top: 0.5rem;
}

.seasonal-info {
    margin: 2rem 0;
    padding: 1rem;
    opacity: 0.7;
}

.seasonal-info .progress {
    font-size: 14px;
    opacity: 0.8;
}

.seasonal-info .next-transition {
    font-size: 14px;
    margin-top: 0.5rem;
}

.seasonal-info .seasonal-note {
    font-size: 12px;
    opacity: 0.6;
    margin-top: 1rem;
    font-style: italic;
}

/* Seasonal content display */
.seasonal-content {
    margin: 2rem 0;
    padding: 2rem;
    border: 1px solid #444;
    background: rgba(255, 255, 255, 0.03);
    text-align: left;
}

.seasonal-content h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 24px;
    font-weight: 300;
}

.seasonal-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 1rem auto;
    display: block;
    border: 1px solid #333;
}

.seasonal-summary {
    line-height: 1.7;
    margin: 1.5rem 0;
    font-size: 16px;
}

.poetic-line {
    text-align: center;
    font-style: italic;
    margin: 1.5rem 0;
    padding: 1rem;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    opacity: 0.9;
}

.seasonal-meta {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #333;
    font-size: 14px;
    opacity: 0.7;
}

.seasonal-meta p {
    margin-bottom: 0.5rem;
}

.cache-status {
    font-size: 12px;
    opacity: 0.5;
}

.return-button {
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid #666;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    transition: all 300ms ease;
}

.return-button:hover {
    border-color: #999;
    background: rgba(255, 255, 255, 0.05);
}

.seasonal-error {
    margin: 2rem 0;
    padding: 1rem;
    border: 1px solid #666;
    background: rgba(255, 100, 100, 0.1);
    text-align: center;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    button, input {
        border-color: #ffffff;
    }
    
    button:hover, input:hover {
        background: #ffffff;
        color: #000000;
    }
    
    .seasonal-button {
        border-color: #ffffff;
    }
    
    .seasonal-button:hover {
        background: #ffffff;
        color: #000000;
    }
}/* Jour
nal Interface Styles */
.journal-container {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.journal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.journal-header h3 {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 300;
    margin: 0;
}

.journal-actions {
    display: flex;
    gap: 0.5rem;
}

.journal-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 200ms ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.journal-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.journal-btn.secondary {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.3);
}

.journal-btn .icon {
    font-size: 0.8rem;
}

.journal-content {
    margin-bottom: 1rem;
}

#journal-textarea {
    width: 100%;
    min-height: 200px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #ffffff;
    padding: 1rem;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 200ms ease;
}

#journal-textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.4);
}

#journal-textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.journal-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.journal-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#journal-save-status {
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-ready {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.status-editing {
    background: rgba(255, 193, 7, 0.2);
    color: #FFC107;
}

.status-saving {
    background: rgba(33, 150, 243, 0.2);
    color: #2196F3;
}

.status-saved {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.status-error, .status-exportfailed {
    background: rgba(244, 67, 54, 0.2);
    color: #F44336;
}

.status-loaded, .status-pdfready {
    background: rgba(156, 39, 176, 0.2);
    color: #9C27B0;
}

.status-generatingpdf {
    background: rgba(255, 152, 0, 0.2);
    color: #FF9800;
}

.journal-format {
    display: flex;
    gap: 1rem;
}

.journal-format label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    font-size: 0.8rem;
}

.journal-format input[type="radio"] {
    margin: 0;
}

.journal-sharing {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sharing-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.sharing-note {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-style: italic;
}

.journal-message {
    padding: 0.8rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: none;
}

.journal-message.success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4CAF50;
}

.journal-message.error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #F44336;
}

.journal-message.info {
    background: rgba(33, 150, 243, 0.2);
    border: 1px solid rgba(33, 150, 243, 0.3);
    color: #2196F3;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .journal-container {
        margin-top: 2rem;
        padding: 1.5rem;
    }
    
    .journal-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .journal-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .journal-meta {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .journal-format {
        gap: 1.5rem;
    }
}

/* Print styles for PDF export */
@media print {
    .journal-container {
        background: white;
        color: black;
        border: none;
        box-shadow: none;
        margin: 0;
        padding: 0;
    }
    
    .journal-header,
    .journal-actions,
    .journal-meta,
    .journal-sharing {
        display: none;
    }
    
    #journal-textarea {
        background: white;
        border: none;
        color: black;
        padding: 0;
    }
}

/* Enhanced Loading States and Error Handling */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    opacity: 0.7;
    font-style: italic;
}

.loading-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    min-height: 100px;
}

.error-container {
    padding: 1.5rem;
    border: 1px solid #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 4px;
    text-align: center;
    margin: 1rem 0;
}

.error-message {
    color: #ff6b6b;
    margin-bottom: 1rem;
}

.retry-button {
    background: transparent;
    border: 1px solid #ff6b6b;
    color: #ff6b6b;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 200ms ease;
}

.retry-button:hover {
    background: rgba(255, 107, 107, 0.1);
    border-color: #ff8a8a;
}

/* API Call Status Indicators */
.api-status {
    position: fixed;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    z-index: 1001;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 300ms ease;
}

.api-status.show {
    opacity: 1;
    transform: translateY(0);
}

.api-status.loading {
    background: rgba(33, 150, 243, 0.2);
    border: 1px solid rgba(33, 150, 243, 0.3);
    color: #2196F3;
}

.api-status.success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4CAF50;
}

.api-status.error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #F44336;
}

/* Transition States */
.phase-transition {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 600ms ease-in-out, transform 600ms ease-in-out;
}

.phase-transition.active {
    opacity: 1;
    transform: translateY(0);
}

/* Data Loading Placeholders */
.data-placeholder {
    background: linear-gradient(90deg, rgba(255,255,255,0.1) 25%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.1) 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    border-radius: 4px;
    height: 1.2em;
    margin: 0.5rem 0;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.data-placeholder.wide {
    width: 80%;
}

.data-placeholder.medium {
    width: 60%;
}

.data-placeholder.narrow {
    width: 40%;
}

/* Connection Status */
.connection-status {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    z-index: 1001;
    opacity: 0;
    transform: translateY(10px);
    transition: all 300ms ease;
}

.connection-status.show {
    opacity: 1;
    transform: translateY(0);
}

.connection-status.offline {
    background: rgba(255, 152, 0, 0.2);
    border: 1px solid rgba(255, 152, 0, 0.3);
    color: #FF9800;
}

.connection-status.online {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4CAF50;
}

/* Enhanced Button States */
.button-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.button-loading::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 1s linear infinite;
}

.button-loading .button-text {
    opacity: 0;
}

/* Graceful Degradation Messages */
.degradation-notice {
    padding: 1rem;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 4px;
    color: #FFC107;
    font-size: 0.9rem;
    margin: 1rem 0;
    text-align: center;
}

.fallback-data {
    opacity: 0.8;
    font-style: italic;
}

.fallback-data::before {
    content: '⚠️ ';
    opacity: 0.7;
}

/* Timeout and Retry States */
.timeout-message {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.7);
}

.timeout-message .icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.retry-options {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.retry-options button {
    padding: 0.75rem 1.5rem;
    border: 1px solid #666;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    border-radius: 4px;
    transition: all 200ms ease;
}

.retry-options button:hover {
    border-color: #999;
    background: rgba(255, 255, 255, 0.05);
}

.retry-options .primary {
    border-color: #999;
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile Responsive Enhancements */
@media (max-width: 600px) {
    .api-status {
        top: 0.5rem;
        right: 0.5rem;
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }
    
    .connection-status {
        bottom: 0.5rem;
        left: 0.5rem;
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }
    
    .retry-options {
        flex-direction: column;
        align-items: center;
    }
    
    .retry-options button {
        width: 100%;
        max-width: 200px;
    }
}

/* Accessibility Enhancements for Loading States */
@media (prefers-reduced-motion: reduce) {
    .loading-spinner,
    .data-placeholder,
    .button-loading::before {
        animation: none;
    }
    
    .loading-spinner {
        border: 2px solid #ffffff;
        border-top-color: transparent;
    }
    
    .data-placeholder {
        background: rgba(255, 255, 255, 0.15);
    }
}

/* High Contrast Mode for Loading States */
@media (prefers-contrast: high) {
    .loading-spinner {
        border-color: #ffffff;
        border-top-color: #000000;
    }
    
    .error-container {
        border-color: #ffffff;
        background: #000000;
        color: #ffffff;
    }
    
    .api-status, .connection-status {
        border-color: #ffffff !important;
        background: #000000 !important;
        color: #ffffff !important;
    }
}

/* Hidden Navigation System */
.nav-trigger {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 300ms ease;
    border-radius: 50%;
    opacity: 0.7;
}

.nav-trigger:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.05);
}

.nav-trigger:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
    opacity: 1;
}

/* Star shape using CSS */
.nav-star {
    position: relative;
    width: 24px;
    height: 24px;
    transform: rotate(0deg);
    transition: all 400ms ease;
}

.nav-star::before,
.nav-star::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    background: #ffffff;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    transition: all 400ms ease;
}

.nav-star::after {
    opacity: 0;
    transform: rotate(180deg) scale(0.8);
}

/* Navigation panel */
.nav-panel {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1.5rem;
    min-width: 200px;
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 300ms ease;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
}

.nav-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.nav-panel h3 {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    font-weight: 300;
    color: #ffffff;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-link {
    background: transparent;
    border: 1px solid #444;
    color: #ffffff;
    padding: 0.75rem 1rem;
    text-align: left;
    cursor: pointer;
    transition: all 200ms ease;
    border-radius: 4px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover {
    border-color: #666;
    background: rgba(255, 255, 255, 0.05);
}

.nav-link:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.nav-link.current {
    border-color: #999;
    background: rgba(255, 255, 255, 0.1);
}

.nav-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #333;
}

.nav-link.disabled:hover {
    border-color: #333;
    background: transparent;
}

.nav-link-icon {
    font-size: 12px;
    opacity: 0.7;
}

/* Star flip animation when nav is active */
.nav-trigger.active .nav-star {
    transform: rotate(180deg);
}

.nav-trigger.active .nav-star::before {
    opacity: 0;
    transform: rotate(-180deg) scale(0.8);
}

.nav-trigger.active .nav-star::after {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Mobile responsive navigation */
@media (max-width: 600px) {
    .nav-trigger {
        top: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
    }
    
    .nav-star {
        width: 20px;
        height: 20px;
    }
    
    .nav-star::before,
    .nav-star::after {
        width: 20px;
        height: 20px;
    }
    
    .nav-panel {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        min-width: auto;
        max-width: none;
    }
}

/* High contrast mode for navigation */
@media (prefers-contrast: high) {
    .nav-trigger {
        border: 2px solid #ffffff;
    }
    
    .nav-panel {
        border-color: #ffffff;
        background: #000000;
    }
    
    .nav-link {
        border-color: #ffffff;
    }
    
    .nav-link:hover, .nav-link.current {
        background: #ffffff;
        color: #000000;
    }
}

/* Reduced motion support for navigation */
@media (prefers-reduced-motion: reduce) {
    .nav-trigger,
    .nav-star,
    .nav-star::before,
    .nav-star::after,
    .nav-panel {
        transition: none;
    }
}

/* Location Search Autocomplete */
.location-search-container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.location-autocomplete {
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

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

.location-autocomplete-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 200ms ease;
    color: #ffffff;
    font-size: 14px;
}

.location-autocomplete-item:hover,
.location-autocomplete-item.highlighted {
    background: rgba(255, 255, 255, 0.1);
}

.location-autocomplete-item:focus {
    outline: 1px solid rgba(255, 255, 255, 0.5);
    outline-offset: -1px;
    background: rgba(255, 255, 255, 0.15);
}

.location-autocomplete-item .location-name {
    font-weight: 300;
}

.location-autocomplete-item .location-coords {
    font-size: 12px;
    opacity: 0.6;
    margin-top: 0.25rem;
}

/* Mobile responsive autocomplete */
@media (max-width: 600px) {
    .location-search-container {
        max-width: 100%;
    }
    
    .location-autocomplete {
        max-height: 150px;
    }
    
    .location-autocomplete-item {
        padding: 0.5rem 0.75rem;
        font-size: 13px;
    }
}

/* High contrast mode for autocomplete */
@media (prefers-contrast: high) {
    .location-autocomplete {
        background: #000000;
    }
    
    .location-autocomplete-item:hover,
    .location-autocomplete-item.highlighted {
        background: #ffffff;
        color: #000000;
    }
}

/* Weather Forecast Styles */
.weather-forecast {
    margin: 2rem 0;
    text-align: center;
}

.weather-forecast h4 {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
}

.forecast-days {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.forecast-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    min-width: 80px;
    padding: 0.75rem 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
}

.forecast-date {
    font-size: 12px;
    opacity: 0.7;
    font-weight: 500;
}

.forecast-icon {
    font-size: 24px;
    line-height: 1;
}

.forecast-temps {
    font-size: 14px;
    font-weight: 500;
}

.forecast-condition {
    font-size: 10px;
    opacity: 0.6;
    text-align: center;
    line-height: 1.2;
}

/* Mobile responsive forecast */
@media (max-width: 600px) {
    .forecast-days {
        gap: 0.5rem;
    }
    
    .forecast-day {
        min-width: 70px;
        padding: 0.5rem 0.25rem;
    }
    
    .forecast-icon {
        font-size: 20px;
    }
    
    .forecast-temps {
        font-size: 12px;
    }
}

/* Hello Button Styles */
.hello-button {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 4rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 300ms ease;
    padding: 2rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.hello-button:hover {
    opacity: 0.7;
    transform: scale(1.05);
}

.hello-button:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 1rem;
}

.hello-button:active {
    transform: scale(0.95);
}

/* Mobile responsive hello button */
@media (max-width: 600px) {
    .hello-button {
        font-size: 3rem;
        padding: 1.5rem;
    }
}