/* =============================================================================
   Mingo - base.css
   Reset, CSS variables, typography, layout, auth screen
   ============================================================================= */

/* -----------------------------------------------------------------------------
   Reset and Base Styles
   ----------------------------------------------------------------------------- */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* -----------------------------------------------------------------------------
   CSS Variables - Design System
   ----------------------------------------------------------------------------- */
:root {
    /* Colors */
    --primary-color: #007AFF;
    --primary-hover: #1557b0;
    --secondary-color: #5f6368;
    --success-color: #34C759;
    --warning-color: #FF9500;
    --danger-color: #FF3B30;
    
    /* iOS Native Colors */
    --ios-blue: #007AFF;
    --ios-green: #34C759;
    --ios-orange: #FF9500;
    --ios-red: #FF3B30;
    --ios-purple: #AF52DE;
    --ios-pink: #FF2D92;
    --ios-teal: #5AC8FA;
    --ios-indigo: #5856D6;
    
    /* Surfaces */
    --background-color: #F2F2F7;
    --surface-color: #FFFFFF;
    --surface-secondary: #F1F3F4;
    --surface-hover: #e8f0fe;
    --ios-background: #F2F2F7;
    --ios-secondary-background: #FFFFFF;
    --ios-tertiary-background: #F2F2F7;
    
    /* Text */
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --text-muted: #9aa0a6;
    
    /* Borders */
    --border-color: #e8eaed;
    --border-hover: #dadce0;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
    --shadow-md: 0 1px 2px 0 rgba(60,64,67,0.3), 0 2px 6px 2px rgba(60,64,67,0.15);
    --shadow-lg: 0 4px 8px 3px rgba(60,64,67,0.15), 0 1px 3px rgba(60,64,67,0.3);
    --ios-shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
    --ios-shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.15);
    --ios-shadow-heavy: 0 8px 25px rgba(0, 0, 0, 0.2);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --ios-radius-small: 8px;
    --ios-radius-medium: 12px;
    --ios-radius-large: 16px;
    --ios-radius-xlarge: 20px;
    
    /* Blur Effects */
    --ios-blur-light: rgba(255, 255, 255, 0.8);
    --ios-blur-dark: rgba(0, 0, 0, 0.4);
}

/* -----------------------------------------------------------------------------
   Typography and Base Elements
   ----------------------------------------------------------------------------- */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', system-ui, sans-serif;
    background: var(--ios-background);
    color: var(--text-primary);
    line-height: 1.47;
    font-size: 17px;
    letter-spacing: -0.41px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* -----------------------------------------------------------------------------
   Layout Components
   ----------------------------------------------------------------------------- */

/* Container */
.container {
    max-width: 100%;
    margin: 0;
    background: var(--ios-background);
    min-height: 100vh;
}

/* Content Area - FIXED */
.content {
    padding: 2rem;
    padding-bottom: 120px;
    background: #f5f5f5;
    width: 100%;
    box-sizing: border-box;
}

/* Mobile content adjustments */
@media (max-width: 768px) and (hover: none) and (pointer: coarse) {
    .content {
        padding: 12px;
        padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px));
    }
}

/* Hidden Utility */
.hidden {
    display: none !important;
}

/* -----------------------------------------------------------------------------
   Authentication Screen
   ----------------------------------------------------------------------------- */
.auth-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
}

.auth-header {
    text-align: center;
    margin-bottom: 3rem;
    color: white;
}

.auth-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.auth-header p {
    font-size: 1.125rem;
    opacity: 0.9;
    font-weight: 300;
}

.auth-content {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    max-width: 480px;
    width: 100%;
}

.auth-description {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.features-list {
    list-style: none;
    margin-bottom: 2rem;
}

.features-list li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.features-list li:before {
    content: "✓";
    color: var(--success-color);
    font-weight: bold;
    margin-right: 0.75rem;
    font-size: 1rem;
}

.google-signin-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: white;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 1.5rem;
}

.google-signin-btn:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.google-icon {
    width: 20px;
    height: 20px;
}

.security-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    padding: 1rem;
    background: var(--surface-secondary);
    border-radius: var(--radius-md);
}