/* ===========================
   Modern MedFetch CSS
   Mobile-First Responsive Design
   =========================== */

/* CSS Variables for easy theming */
:root {
    --primary-color: #0066cc;
    --primary-hover: #0052a3;
    --secondary-color: #00a8cc;
    --accent-color: #ff6b35;
    --success-color: #28a745;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e1e4e8;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Hero Section */
.hero {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-md);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-image {
    width: 150px;
    height: auto;
    align-self: center;
}

.hero-description h1 {
    margin-bottom: 1.5rem;
}

.hero-description p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Features Card */
.features-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.features-card h2 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

.features-list {
    list-style: none;
}

.features-list > li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    transition: var(--transition);
}

.features-list > li:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.features-list i {
    font-size: 1.25rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.features-list span {
    flex: 1;
}

.sub-features {
    list-style: none;
    margin-top: 0.5rem;
    margin-left: 0;
    padding-left: 1rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.sub-features li {
    margin-bottom: 0.25rem;
}

.sub-features li:before {
 ";
    margin-right: 0.5rem;
}

.feature-highlight {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* App Links Section */
.app-links {
    background: var(--bg-white);
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.app-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.app-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    background: var(--bg-light);
    transition: var(--transition);
    min-width: 120px;
}

.app-link:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background: white;
}

.app-link img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.app-link span {
    font-weight: 500;
    color: var(--text-dark);
}

/* Disclaimer */
.disclaimer {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-color);
}

.disclaimer p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Tablet and up */
@media (min-width: 768px) {
    .container {
        padding: 3rem 2rem;
    }

    .hero-content {
        grid-template-columns: 2fr 1fr;
    }

    .hero-text {
        flex-direction: row;
        gap: 2rem;
    }

    .hero-image {
        width: 180px;
        align-self: flex-start;
    }

    h1 {
        font-size: 3rem;
    }

    .app-buttons {
        gap: 3rem;
    }
}

/* Desktop and up */
@media (min-width: 1024px) {
    .hero {
        padding: 4rem 3rem;
    }

    h1 {
        font-size: 3.5rem;
    }

    .features-card {
        padding: 2.5rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Print Styles */
@media print {
    .app-links,
    .btn {
        display: none;
    }
}

