/* ===== VET PAGE SPECIFIC STYLES ===== */
/* Container styles are now in scrollable-container.css */

/* ===== MODERN REDESIGN ENHANCEMENTS ===== */
/* Veterinary Services with Interactive Cards */

/* Service Card Enhancement */
.service-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1)) !important;
    transform-style: preserve-3d;
}

.service-card::before {
    background: var(--gradient-primary, linear-gradient(135deg, #E63946, #00F5D4)) !important;
}

.service-card:hover {
    transform: translateY(-10px) rotateX(2deg) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15) !important;
}

/* Service Icon Animation */
.service-icon {
    transition: all 0.4s var(--ease-elastic, cubic-bezier(0.68, -0.55, 0.265, 1.55));
    display: inline-block;
}

.service-card:hover .service-icon {
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 5px 15px rgba(230, 57, 70, 0.3));
}

/* Animal Card Enhancement */
.animal-card {
    transition: all 0.3s var(--ease-out, ease-out) !important;
    position: relative;
    overflow: hidden;
}

.animal-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary, linear-gradient(135deg, #E63946, #00F5D4));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.animal-card:hover::before {
    opacity: 0.1;
}

.animal-card:hover {
    transform: translateY(-5px) scale(1.05) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Animal Icon Animation */
.animal-icon {
    transition: all 0.4s var(--ease-elastic, cubic-bezier(0.68, -0.55, 0.265, 1.55));
    display: inline-block;
}

.animal-card:hover .animal-icon {
    transform: scale(1.2) rotate(-5deg);
}

/* Emergency Vet Section */
.emergency-vet {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.1), rgba(255, 46, 99, 0.05)) !important;
    border: 2px solid rgba(230, 57, 70, 0.3) !important;
    position: relative;
    overflow: hidden;
}

.emergency-vet::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.1) 0%, transparent 50%);
    animation: emergencyPulse 5s ease infinite;
}

@keyframes emergencyPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.5; }
}

/* Emergency Button Enhancement */
.emergency-button {
    background: var(--gradient-emergency, linear-gradient(135deg, #E63946, #C62828)) !important;
    position: relative;
    overflow: hidden;
    animation: emergencyGlow 2s ease-in-out infinite;
}

@keyframes emergencyGlow {
    0%, 100% { box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3); }
    50% { box-shadow: 0 4px 30px rgba(230, 57, 70, 0.6); }
}

.emergency-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: buttonShine 3s ease infinite;
}

@keyframes buttonShine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

/* Service Button Enhancement */
.service-button {
    background: var(--gradient-primary, linear-gradient(135deg, #E63946, #00F5D4)) !important;
    position: relative;
    overflow: hidden;
}

.service-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.service-button:hover::after {
    width: 300%;
    height: 300%;
}

/* Staggered Animation for Service Cards */
.services-grid .service-card {
    opacity: 0;
    animation: serviceCardIn 0.5s var(--ease-out, ease-out) forwards;
}

.services-grid .service-card:nth-child(1) { animation-delay: 0ms; }
.services-grid .service-card:nth-child(2) { animation-delay: 100ms; }
.services-grid .service-card:nth-child(3) { animation-delay: 200ms; }
.services-grid .service-card:nth-child(4) { animation-delay: 300ms; }

@keyframes serviceCardIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===== HEADER POSITIONING ===== */
.header-section {
    position: static;
    flex-shrink: 0;
}

/* Override mobile-specific sticky positioning */
@media (max-width: 768px) {
    .header-section {
        position: static !important;
        top: auto !important;
        bottom: auto !important;
        z-index: auto !important;
        overflow-y: visible !important;
        margin-bottom: 0 !important;
        padding: clamp(0.2rem, 1vh, 0.6rem) clamp(0.2rem, 1.2vw, 0.6rem) !important;
    }
}

@media (max-width: 480px) {
    .container .header-section {
        position: static !important;
        top: auto !important;
        bottom: auto !important;
        z-index: auto !important;
        overflow-y: visible !important;
    }
    
    body .container .header-section {
        position: static !important;
        top: auto !important;
        bottom: auto !important;
        z-index: auto !important;
        overflow-y: visible !important;
    }
}

/* ===== RESPONSIVE TYPOGRAPHY ===== */
.page-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.page-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    padding: 20px 40px;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* ===== VET SERVICES ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.service-card {
    background: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.service-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-content {
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-button,
a.service-button,
.service-card .service-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    color: white !important; /* Force white text for better contrast */
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none !important;
    display: inline-block;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.service-button:hover,
a.service-button:hover,
.service-card .service-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: white !important; /* Ensure white text on hover */
    text-decoration: none !important;
}

/* ===== ANIMAL TYPES SECTION ===== */
.animal-types {
    background: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-top: 30px;
}

.animal-types-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-align: center;
}

.animal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.animal-card {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.animal-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.animal-icon {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 10px;
    display: block;
}

.animal-name {
    font-weight: 600;
    color: var(--text-primary);
}

/* ===== EMERGENCY VET SECTION ===== */
.emergency-vet {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(239, 68, 68, 0.05));
    border: 2px solid rgba(220, 38, 38, 0.2);
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    text-align: center;
    max-width: 800px;
}

.emergency-vet h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.emergency-vet p {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.emergency-contact {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.emergency-button {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
    text-decoration: none;
    display: inline-block;
}

.emergency-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
    color: white;
}

/* ===== DARK MODE STYLES ===== */
body.dark-mode .service-card {
    background: rgba(40, 40, 40, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .service-button,
body.dark-mode a.service-button,
body.dark-mode .service-card .service-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    color: white !important; /* Force white text in dark mode */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none !important;
}

body.dark-mode .service-button:hover,
body.dark-mode a.service-button:hover,
body.dark-mode .service-card .service-button:hover {
    color: white !important; /* Ensure white text on hover in dark mode */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
    text-decoration: none !important;
}

body.dark-mode .emergency-vet {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.2), rgba(239, 68, 68, 0.1));
    border: 2px solid rgba(220, 38, 38, 0.4);
}

body.dark-mode .page-title {
    color: var(--primary-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

body.dark-mode .page-subtitle {
    color: #d0d0d0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .main-content {
        padding: 15px 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 25px;
    }

    .animal-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    .emergency-contact {
        flex-direction: column;
        align-items: center;
    }

    .emergency-button {
        width: 100%;
        max-width: 300px;
    }

    .menu-container-left,
    .menu-container {
        display: none;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 10px 15px;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .service-card {
        padding: 20px;
    }

    .emergency-vet {
        padding: 20px;
        margin: 20px 0;
        max-width: 100%;
    }

    .animal-types {
        padding: 20px;
    }

    .animal-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }
}

/* ===== FORCE WHITE TEXT ON SERVICE BUTTONS ===== */
/* High specificity override to ensure white text */
.services-grid .service-card .service-button,
.services-grid .service-card a.service-button,
main .service-button,
main a.service-button {
    color: white !important;
    text-decoration: none !important;
}

.services-grid .service-card .service-button:hover,
.services-grid .service-card a.service-button:hover,
main .service-button:hover,
main a.service-button:hover {
    color: white !important;
    text-decoration: none !important;
}

/* Dark mode override */
body.dark-mode .services-grid .service-card .service-button,
body.dark-mode .services-grid .service-card a.service-button,
body.dark-mode main .service-button,
body.dark-mode main a.service-button {
    color: white !important;
    text-decoration: none !important;
}

body.dark-mode .services-grid .service-card .service-button:hover,
body.dark-mode .services-grid .service-card a.service-button:hover,
body.dark-mode main .service-button:hover,
body.dark-mode main a.service-button:hover {
    color: white !important;
    text-decoration: none !important;
}
