/* Valentine's Scavenger Hunt - Mobile First Styles */

:root {
    --primary: #e91e63;
    --primary-dark: #c2185b;
    --primary-light: #f8bbd9;
    --bg: #fff5f7;
    --text: #333;
    --text-light: #666;
    --white: #fff;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --radius: 12px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 24px;
}

.progress {
    font-size: 14px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

h1 {
    font-size: 28px;
    color: var(--primary);
    margin: 0;
}

/* Main content */
main {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

/* Image */
.image-container {
    margin-bottom: 24px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.stop-image, .final-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Clue box */
.clue-box {
    background: linear-gradient(135deg, var(--primary-light), var(--bg));
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
    border-left: 4px solid var(--primary);
}

.clue-box h2 {
    font-size: 18px;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.clue-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text);
    font-style: italic;
}

/* Action area */
.action-area {
    text-align: center;
}

.status-message {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 16px;
    min-height: 24px;
}

.status-message.success {
    color: #4caf50;
}

.status-message.error {
    color: #f44336;
}

.continue-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 18px 36px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
}

.continue-btn:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.4);
}

.continue-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

.distance-info {
    margin-top: 16px;
    font-size: 16px;
    color: var(--text-light);
    min-height: 24px;
}

.distance-info.close {
    color: #4caf50;
    font-weight: 600;
}

/* Footer */
footer {
    text-align: center;
}

.hint {
    font-size: 14px;
    color: var(--text-light);
    background: rgba(255,255,255,0.8);
    padding: 12px;
    border-radius: 8px;
}

/* Final page */
.final-page {
    background: linear-gradient(135deg, #fff5f7, #ffe4ed);
}

.final-message {
    text-align: center;
}

.final-message h1 {
    font-size: 32px;
    margin-bottom: 24px;
}

.message-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    margin: 24px 0;
    box-shadow: var(--shadow);
}

.message-text {
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text);
}

.signature {
    font-size: 18px;
    color: var(--primary);
    font-style: italic;
}

.hearts {
    font-size: 32px;
    margin-top: 24px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(233, 30, 99, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
    vertical-align: middle;
}

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

/* Responsive */
@media (max-width: 400px) {
    .container {
        padding: 12px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .clue-text, .message-text {
        font-size: 16px;
    }
    
    .continue-btn {
        font-size: 16px;
        padding: 16px 24px;
    }
}
