@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Playfair+Display:wght@600;700&display=swap');
@import './variables.css';

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

body {
    background-color: var(--color-bg-dark);
    color: var(--color-text-white);
    font-family: var(--font-sans);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    /* Soft decorative background blobs */
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(227, 27, 35, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 117, 140, 0.1) 0%, transparent 40%);
}

#app {
    width: 100%;
    max-width: 480px; /* Mobile first feel */
     /* Allow flex centering from body to work by not forcing full height */
    /* min-height: 100vh; */
    padding: 20px; /* Add some breathing room on mobile */
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Glassmorphism Card */
.glass-panel {
    background: var(--gradient-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    padding: var(--spacing-lg);
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 700;
}

h1 { font-size: 2.5rem; margin-bottom: var(--spacing-sm); }
p.subtitle { color: var(--color-text-gray); font-size: 1rem; margin-bottom: var(--spacing-xl); }

/* Forms */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.input-field {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px;
    border-radius: var(--border-radius-md);
    color: var(--color-text-white);
    font-size: 1rem;
    font-family: var(--font-sans);
    transition: all 0.3s ease;
    text-align: center;
}

.input-field:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.1);
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 18px;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--border-radius-lg); /* Rounded buttons as requested */
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(227, 27, 35, 0.4);
}

.btn-primary:active {
    transform: scale(0.95); /* Tactile feedback */
}

/* Views */
.view {
    display: none;
    height: 100%;
    flex-direction: column;
    justify-content: center;
    animation: fadeIn 0.5s ease;
}

.view.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Utilities */
.text-center { text-align: center; }
.hidden { display: none; }
