/* Custom Animations */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 1s ease-out;
}

.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.dark ::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Hero Section Background Pattern */
.hero-pattern {
    background-image: 
        radial-gradient(circle at 20% 80%, transparent 50%, rgba(255, 255, 255, 0.1) 50.5%),
        radial-gradient(circle at 80% 20%, transparent 50%, rgba(255, 255, 255, 0.1) 50.5%),
        radial-gradient(circle at 40% 40%, transparent 50%, rgba(255, 255, 255, 0.1) 50.5%);
    background-size: 100px 100px;
}

/* DISH Hero Background */
.dish-hero-bg {
    background-image: url('../images/Dish_header.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
}

/* Mobile-specific hero adjustments */
@media (max-width: 640px) {
    .dish-hero-bg {
        background-size: 380px auto;
        background-position: center 25%;
        background-repeat: no-repeat;
    }
    
    /* Ensure hero content doesn't overlap with header on mobile */
    .hero-content-mobile {
        margin-top: auto;
        padding-bottom: 2rem;
    }
    
    /* Mobile spacing adjustments */
    .mobile-condensed {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
    
    .mobile-hero-spacing {
        height: 50vh !important;
        min-height: 50vh !important;
    }
    
    /* Reduce spacing between hero and packages section on mobile */
    #packages {
        padding-top: 0.5rem !important;
        margin-top: -3rem !important;
    }
    
    /* Lower the gray guarantee bar on mobile to avoid dish_header overlap */
    .dish-hero-bg .max-w-2xl {
        margin-top: 10rem !important;
    }
    
    /* Mobile-specific positioning for channel pages content */
    .mobile-hero-spacing .absolute {
        position: static !important;
        transform: none !important;
        padding-top: 38vh !important;
        width: 100% !important;
        left: auto !important;
        bottom: auto !important;
    }
    
    /* Move title above dish_header image on mobile */
    .mobile-hero-spacing .absolute.top-0 {
        position: absolute !important;
        top: 1rem !important;
        padding-top: 0 !important;
        z-index: 10;
    }
    
    /* Adjust hero section height on channel pages for mobile */
    .mobile-hero-spacing {
        height: auto !important;
        min-height: 65vh !important;
        padding-bottom: 1rem !important;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .dish-hero-bg {
        background-size: contain;
        background-position: center 30%;
    }
}

/* Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark .glass {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Service Card Hover Effects */
.service-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.service-card:hover::before {
    left: 100%;
}

/* Smooth Transitions */
* {
    transition-property: background-color, border-color, color, fill, stroke;
    transition-duration: 200ms;
}

/* Focus Styles */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

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

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

/* Responsive Typography */
@media (max-width: 640px) {
    html {
        font-size: 14px;
    }
    
    /* Make quick action button text bigger on mobile */
    .quick-action-buttons a {
        font-size: 1.375rem !important; /* 22px - much bigger */
        padding: 1rem 1.75rem !important; /* Larger padding to match bigger text */
        font-weight: 600 !important;
        line-height: 1.3 !important; /* Better line height for readability */
    }
    
    /* Bigger text for office hours banner on mobile */
    .office-hours-banner span {
        font-size: 1.25rem !important; /* 20px */
        line-height: 1.4 !important;
    }
    
    /* Service cards styling for mobile - make them fully clickable */
    a.service-card {
        text-decoration: none !important;
        color: inherit !important;
        display: block !important;
    }
    
    a.service-card h3 {
        color: #1e293b !important; /* Maintain heading color */
    }
    
    a.service-card p {
        color: #6b7280 !important; /* Maintain paragraph color */
    }
    
    a.service-card span {
        text-decoration: underline !important;
    }
}

/* Print Styles */
@media print {
    nav, footer {
        display: none;
    }
    
    .no-print {
        display: none;
    }
} 