/* Custom Styles for Dr. Jorge Vasquez Website */

:root {
    --primary-color: #2c5aa0;
    --secondary-color: #28a745;
    --accent-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    padding-top: 76px; /* Account for fixed navbar */
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.doctor-image-placeholder {
    position: relative;
    z-index: 1;
}

/* Navigation */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.25rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-color) !important;
}

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 12px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-lg {
    padding: 0.75rem 2rem;
}

/* Feature Icons */
.feature-icon i {
    transition: transform 0.3s ease;
}

.feature-icon:hover i {
    transform: scale(1.1);
}

/* Application Cards */
.card .btn {
    margin-top: auto;
}

/* Social Links */
.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-color);
    color: var(--dark-color) !important;
    transform: translateY(-2px);
}

/* Form Styles */
.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.25);
}

/* Calculator Styles */
.calculator-container {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
}

.risk-result {
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1rem;
    border-left: 5px solid;
}

.risk-low {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.risk-medium {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.risk-high {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

/* Fertility Calendar */
.fertility-calendar {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.calendar-day {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calendar-day:hover {
    background: #e9ecef;
}

.calendar-day.fertile {
    background: #28a745;
    color: white;
}

.calendar-day.ovulation {
    background: #dc3545;
    color: white;
}

.calendar-day.today {
    background: var(--primary-color);
    color: white;
}

/* Blog Styles */
.blog-card {
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-3px);
}

.blog-meta {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Contact Section */
.contact-info {
    background: var(--light-color);
    border-radius: 10px;
    padding: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .doctor-image-placeholder i {
        font-size: 120px !important;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Alert Styles */
.alert {
    border-radius: 10px;
    border: none;
    padding: 1rem 1.5rem;
}

/* Print Styles */
@media print {
    .navbar, .btn, .social-links {
        display: none !important;
    }
    
    body {
        padding-top: 0;
    }
    
    .hero-section {
        background: white !important;
        color: black !important;
        min-height: auto;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus States */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Medical Disclaimer */
.medical-disclaimer {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.medical-disclaimer .fas {
    color: #856404;
}

/* Privacy Notice */
.privacy-notice {
    background: #e7f3ff;
    border: 1px solid #b3d7ff;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.privacy-notice .fas {
    color: #0066cc;
}
