/* CSS Variables for a modern Pantone 2026 Cloud Dancer theme */
:root {
    --primary: #497AB7; /* Pantone Regatta */
    --primary-hover: #3A6293; 
    --secondary: #5CC6C3; /* Pantone Rinsing Rivulet */
    --background: #F0EEE9; /* Pantone 2026 Color of the Year: Cloud Dancer */
    --surface: #FFFFFF;
    --surface-light: #E6E3DD;
    --text: #2C3539;
    --text-muted: #756F6B; /* Pantone Hematite */
    --danger: #E4455E; /* Pantone Paradise Pink */
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

#app {
    width: 100%;
    max-width: 480px; /* Mobile first constraint */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 1.5rem;
}

header {
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 1rem;
}

header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Views */
.view {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: fadeIn 0.4s ease-out forwards;
    width: 100%;
}

.view.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Typography elements */
h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: var(--surface);
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: var(--shadow);
}

/* Buttons */
button {
    font-family: inherit;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.primary-btn {
    background-color: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    font-size: 1.1rem;
    width: 100%;
    box-shadow: 0 4px 6px rgba(73, 122, 183, 0.3);
}

.primary-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(73, 122, 183, 0.4);
}

.primary-btn:active {
    transform: translateY(0);
}

.secondary-btn {
    background-color: var(--surface-light);
    color: var(--text);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.secondary-btn:hover {
    background-color: var(--surface);
}

/* Loading Spinner */
.spinner {
    width: 64px;
    height: 64px;
    border: 4px solid var(--surface-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Results Screen */
#results-screen {
    align-items: stretch;
    text-align: left;
}

.location-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.location-header h2 {
    margin-bottom: 0;
    font-size: 1.25rem;
}

#trivia-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-bottom: 2rem;
}

/* Trivia Cards */
.trivia-card {
    background-color: var(--surface);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    animation: slideUp 0.5s ease-out forwards;
    opacity: 0;
}

.trivia-card:nth-child(1) { animation-delay: 0.1s; }
.trivia-card:nth-child(2) { animation-delay: 0.2s; }
.trivia-card:nth-child(3) { animation-delay: 0.3s; }
.trivia-card:nth-child(4) { animation-delay: 0.4s; }
.trivia-card:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.trivia-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--secondary);
}

.poi-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.poi-name a, #user-location-name a {
    transition: color 0.2s ease;
}

.poi-name a:hover, #user-location-name a:hover {
    color: var(--primary) !important;
}

.poi-type {
    font-size: 0.8rem;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 800;
    margin-bottom: 1rem;
    display: inline-block;
}

.trivia-fact {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--surface);
    padding: 2rem;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 400px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--surface-light);
    background-color: var(--background);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(73, 122, 183, 0.2);
}
