@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    font-size: 16px;
    --color-primary: #007AFF; /* Apple Blue */
    --color-secondary: #5856D6; /* Apple Indigo */
    --color-success: #34C759;
    --color-error: #FF3B30;
    --color-warning: #FF9500;
    --color-background: #F2F2F7; /* iOS System Gray 6 */
    --color-card: #FFFFFF;
    --color-text: #000000;
    --color-text-muted: #8E8E93;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-blur: blur(25px);
    --glass-border: 1px solid rgba(255, 255, 255, 0.4);
    
    --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.1);
    --shadow-inner: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

html, body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

html {
    height: 100%;
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--color-background);
    color: var(--color-text);
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
}

/* Glass Navbar */
.navbar-apple {
    position: sticky;
    top: 15px;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: var(--radius-xl);
    margin: 0 15px 30px 15px;
    box-shadow: var(--shadow-soft);
    padding: 10px 20px;
}

/* Container Refinement */
.container {
    flex: 1 0 auto;
    max-width: 1200px !important;
}

/* Card Style */
.card-apple {
    background: var(--color-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0,0,0,0.05); /* Apple-like subtle border */
    box-shadow: var(--shadow-soft);
    transition: all 500ms cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.card-apple:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-md);
    border-color: rgba(0,0,0,0.1);
}

/* Button Style */
.btn-apple {
    background: var(--color-primary);
    color: white;
    padding: 14px 28px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    border: none;
    transition: all 300ms ease;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.btn-apple:hover {
    opacity: 0.9;
    transform: scale(0.98);
}

.btn-apple-secondary {
    background: rgba(0, 122, 255, 0.1);
    color: var(--color-primary);
    padding: 14px 28px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    border: none;
    transition: all 300ms ease;
    text-decoration: none;
    display: inline-block;
}

@media (max-width: 768px) {
    .navbar-apple .navbar-nav { display: none; }
}

@supports (min-height: 100dvh) {
    body, body.min-vh-100 {
        min-height: 100dvh !important;
    }
}

/* Footer Section */
.footer {
    background: transparent;
    padding: 40px 0;
    margin-top: auto;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Animations */
.animate-slide-up {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes slideUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Typography Overrides */
h1 { font-weight: 800; letter-spacing: -0.5px; }
h2 { font-weight: 700; letter-spacing: -0.3px; }

/* Styles from _Layout.cshtml.css integrated */
a { color: var(--color-primary); text-decoration: none; }
a:hover { opacity: 0.7; }
