/* PetMind Train - Shared site styles */

/* Base */
html {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
}

img,
video,
iframe,
svg {
    max-width: 100%;
}

iframe {
    margin: 0 auto;
}

/* Utilities */
.content-auto {
    content-visibility: auto;
}

.clip-path-wave {
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Navigation underline */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #FF6B35;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu — avoid w-screen/100vw horizontal overflow */
#mobile-menu {
    transition: transform 0.3s ease;
    width: 100% !important;
    max-width: 100%;
    left: 0;
    right: 0;
}

/* Ad slots: allow shrink on small screens without forcing min-width:0 on GPT divs */
#petmind-ad-banner-mount {
    max-width: 100%;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

#petmind-ad-banner-mount > div,
[id^="div-gpt-ad"] {
    max-width: 100%;
    box-sizing: border-box;
}

body.mobile-menu-open {
    overflow: hidden;
}

body.mobile-menu-open #mobile-menu,
.mobile-menu-open #mobile-menu {
    transform: translateX(0);
}

body.mobile-menu-open .menu-icon-open {
    display: none;
}

body.mobile-menu-open .menu-icon-close {
    display: inline-block;
}

.mobile-accordion.active i {
    transform: rotate(180deg);
}

/* Topic chips */
.topic-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    backdrop-filter: blur(4px);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.topic-btn:hover {
    background: rgba(249, 115, 22, 0.85);
    border-color: rgba(249, 115, 22, 0.9);
    transform: translateY(-1px);
}

.topic-btn.active {
    background: #f97316;
    border-color: #f97316;
}

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

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out;
}

/* Forms */
.form-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* FAQ (contact page) */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item.active {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}
