/* Custom styles for My Dad Reads homepage improvements */

/* Hero section gradient background */
.hero-section {
    background: linear-gradient(135deg, var(--mdr-primary, #8B9DE0) 0%, var(--mdr-secondary, #FDBA74) 100%);
    min-height: 70vh;
    display: flex;
    align-items: center;
    color: var(--mdr-btn-text, #FFFFFF);
}

/* Gradient backgrounds for sections */
.bg-gradient-dark {
    background: var(--mdr-bg-section, #F1F5F9);
    color: var(--mdr-text-primary, #2D2D2D);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--mdr-primary, #8B9DE0) 0%, var(--mdr-secondary, #FDBA74) 100%);
    color: var(--mdr-btn-text, #FFFFFF);
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Feature cards hover effects */
.card:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

/* Testimonial cards enhanced styling */
.testimonial {
    background: var(--mdr-bg-card, #FFFFFF);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid var(--mdr-border, #E5E7EB);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    color: var(--mdr-text-primary, #2D2D2D);
}

/* Enhanced button styling */
.btn-bedtime {
    background: var(--mdr-primary, #8B9DE0);
    border: none;
    color: var(--mdr-btn-text, #FFFFFF);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-bedtime:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 157, 224, 0.3);
    color: var(--mdr-btn-text, #FFFFFF);
    background: #7B8DD8;
}

/* Responsive text sizing */
@media (max-width: 768px) {
    .display-3 {
        font-size: 2.5rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    .hero-section {
        min-height: 60vh;
    }
    
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

/* Enhanced carousel styling */
.carousel-item img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Accordion improvements */
.accordion-button:not(.collapsed) {
    background-color: rgba(139, 157, 224, 0.1);
    color: var(--mdr-primary, #8B9DE0);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(139, 157, 224, 0.25);
}

.accordion-button {
    background-color: var(--mdr-bg-card, #FFFFFF);
    color: var(--mdr-text-primary, #2D2D2D);
}

.accordion-item {
    border: 1px solid var(--mdr-border, #E5E7EB);
    background-color: var(--mdr-bg-card, #FFFFFF);
}

/* Star rating improvements */
.text-warning svg {
    filter: drop-shadow(0 0 3px rgba(255, 193, 7, 0.5));
}

/* Section spacing improvements */
section {
    position: relative;
    z-index: 1;
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img:not([src]) {
    opacity: 0;
}

/* Badge enhancements */
.badge {
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Enhanced feature icons */
.feature-icon {
    transition: transform 0.3s ease;
}

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

/* Improved spacing for mobile */
@media (max-width: 576px) {
    .gap-4 {
        gap: 1rem !important;
    }
    
    .px-5 {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
    
    .py-3 {
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }
}

/* Smooth animations */
* {
    transition: color 0.3s ease, background-color 0.3s ease;
}

/* Enhanced focus states for accessibility */
.btn:focus,
.accordion-button:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}