/* Google Material Design System for PetHealthTracker */
/* Landing Page Styles Applied to All Pages */

:root {
    /* Primary Colors - Google Material Design */
    --google-blue: #667eea;
    --google-purple: #764ba2;
    --google-blue-50: #e8f0fe;
    --google-blue-100: #d2e3fc;
    --google-blue-500: #1a73e8;
    --google-blue-600: #1557b8;
    --google-blue-700: #1f4788;

    /* Surface Colors */
    --google-surface: #ffffff;
    --google-surface-variant: #f8f9fa;
    --google-surface-container: #f1f3f4;
    --google-surface-container-high: #e8eaed;

    /* Text Colors */
    --google-on-surface: #202124;
    --google-on-surface-variant: #5f6368;
    --google-on-surface-secondary: #80868b;

    /* Semantic Colors */
    --google-success: #137333;
    --google-success-container: #e6f4ea;
    --google-warning: #f29900;
    --google-warning-container: #fef7e0;
    --google-error: #d93025;
    --google-error-container: #fce8e6;

    /* Spacing Scale */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;

    /* Typography */
    --font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-body-large: 16px;
    --font-size-body-medium: 14px;
    --font-size-body-small: 12px;
    --font-size-title-large: 22px;
    --font-size-title-medium: 16px;
    --font-size-headline: 24px;

    /* Border Radius */
    --border-radius-small: 4px;
    --border-radius-medium: 8px;
    --border-radius-large: 16px;
    --border-radius-xl: 24px;

    /* Shadows & Elevation */
    --shadow-1: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
    --shadow-2: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 2px 6px 2px rgba(60, 64, 67, 0.15);
    --shadow-3: 0 4px 8px 3px rgba(60, 64, 67, 0.15), 0 1px 3px rgba(60, 64, 67, 0.3);
    --elevation-1: 0 2px 8px rgba(0, 0, 0, 0.08);
    --elevation-2: 0 8px 24px rgba(0, 0, 0, 0.12);
    --elevation-3: 0 16px 48px rgba(0, 0, 0, 0.16);
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

html, body {
    font-family: var(--font-family);
    color: var(--google-on-surface);
    background-color: var(--google-surface-variant);
    margin: 0;
    padding: 0;
    line-height: 1.5;
    font-size: var(--font-size-body-medium);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family);
    font-weight: 600;
    margin: 0 0 var(--space-4) 0;
    line-height: 1.25;
}

h1 {
    font-size: 32px;
    font-weight: 700;
}

h2 {
    font-size: var(--font-size-headline);
    font-weight: 700;
}

h3 {
    font-size: var(--font-size-title-large);
    font-weight: 600;
}

/* Gradient Text Effect */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass Morphism Effects */
.glass-effect {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Hero Section - Apply to any page */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 60vh;
    position: relative;
    overflow: hidden;
    padding: var(--space-16) 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.12) 0%, transparent 25%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 30%);
    opacity: 1;
    animation: backgroundShift 20s ease-in-out infinite;
    z-index: 1;
}

/* Cards with Landing Page Style */
.modern-card {
    background: var(--google-surface);
    border-radius: var(--border-radius-large);
    box-shadow: var(--elevation-1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.modern-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--elevation-3);
}

/* MudBlazor Card Overrides */
.mud-card {
    border-radius: var(--border-radius-large) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.mud-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15) !important;
}

/* Paper with Modern Style */
.mud-paper {
    border-radius: var(--border-radius-large) !important;
}

/* Buttons with Landing Style */
.mud-button-root {
    border-radius: 50px !important;
    text-transform: none !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.mud-button-filled:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2) !important;
}

.cta-button {
    border-radius: 50px !important;
    padding: 12px 32px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    text-transform: none !important;
    transition: all 0.3s ease !important;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3) !important;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(102, 126, 234, 0);
    }
}

@keyframes backgroundShift {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.1) rotate(5deg);
        opacity: 0.8;
    }
}

/* Animation Classes - Apply to any element */
.animate-slide-up {
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.floating {
    animation: float 4s ease-in-out infinite;
}

.pulsing {
    animation: pulse 3s ease-in-out infinite;
}

/* Animation Delays */
.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* Page Headers with Gradient */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: var(--space-12) 0;
    border-radius: 0 0 var(--border-radius-xl) var(--border-radius-xl);
    margin-bottom: var(--space-8);
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-2);
}

.page-subtitle {
    font-size: var(--font-size-body-large);
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Feature Cards Style */
.feature-card {
    height: 100%;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--border-radius-large);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
}

/* Stats and Metrics */
.stat-item {
    transition: transform 0.3s ease;
    text-align: center;
}

.stat-item:hover {
    transform: scale(1.1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--google-surface-variant);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Basic cursor management for better UX */
button,
.mud-button,
.mud-icon-button,
.mud-nav-link,
.mud-menu-item,
.mud-list-item,
.mud-table-row {
    cursor: pointer !important;
}

input:not([type="button"]):not([type="submit"]):not([type="reset"]),
textarea,
select,
.mud-input,
.mud-select,
.mud-textarea {
    cursor: text !important;
}

input[type="checkbox"],
input[type="radio"],
.mud-checkbox,
.mud-radio {
    cursor: pointer !important;
}

button:disabled,
.mud-button:disabled,
.mud-button.mud-disabled,
input:disabled,
select:disabled,
textarea:disabled,
.mud-disabled {
    cursor: not-allowed !important;
}

/* Focus Styles */
*:focus {
    outline: 2px solid var(--google-blue);
    outline-offset: 2px;
}

/* Text Utilities */
.text-center {
    text-align: center;
}

.text-secondary {
    color: var(--google-on-surface-variant);
}

/* Spacing Utilities */
.mb-8 {
    margin-bottom: var(--space-8);
}

.mt-4 {
    margin-top: var(--space-4);
}

.mt-6 {
    margin-top: var(--space-6);
}

.py-16 {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
}

.h-100 {
    height: 100%;
}

/* Responsive Design */
@media (max-width: 960px) {
    .hero-section {
        min-height: auto;
        padding: var(--space-12) 0;
    }
    
    h1, .page-title {
        font-size: 28px;
    }
    
    .feature-card:hover {
        transform: translateY(-8px) scale(1.01);
    }
}

@media (max-width: 600px) {
    .modern-card:hover {
        transform: translateY(-4px) scale(1.01);
    }
}
