/* ============================================
   PetFuel.ai - Main Stylesheet
   ============================================ */

/* --------------------------------------------
   Base Styles
   -------------------------------------------- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Serif font for headings */
.font-serif {
    font-family: 'Libre Baskerville', Georgia, serif;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 600px;
}

.hero-image-container {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 50%;
    overflow: hidden;
}

.hero-image {
    min-height: 80%;
    width: auto;
    max-width: none;
    object-fit: cover;
    object-position: left top;
}

/* Tablet */
@media (max-width: 1023px) {
    .hero-section {
        min-height: auto;
    }
    
    .hero-image-container {
        position: relative;
        width: 100%;
        height: 350px;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        margin-top: 0;
        padding-top: 0;
    }
    
    .hero-image {
        position: relative;
        height: 100%;
        width: auto;
        max-width: none;
        object-fit: cover;
        object-position: center top;
        margin-top: 0;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .hero-image-container {
        height: auto;
        overflow: visible;
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    
    .hero-image {
        height: auto;
        width: 100%;
        max-width: 350px;
        object-fit: contain;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

/* --------------------------------------------
   Line Icon Style (for SVG illustrations)
   -------------------------------------------- */
.line-icon {
    stroke: #4C5D4C;
    stroke-width: 1.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}



/* --------------------------------------------
   Chat Page Styles
   -------------------------------------------- */

/* Chat message animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message {
    animation: fadeInUp 0.3s ease-out;
}

/* Typing indicator animation */
@keyframes bounce {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-4px);
    }
}

.typing-dot {
    animation: bounce 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

/* Chat container scrollbar */
.chat-container::-webkit-scrollbar {
    width: 6px;
}

.chat-container::-webkit-scrollbar-track {
    background: transparent;
}

.chat-container::-webkit-scrollbar-thumb {
    background: #c9d3c9;
    border-radius: 3px;
}

.chat-container::-webkit-scrollbar-thumb:hover {
    background: #a3b5a3;
}

/* --------------------------------------------
   Account Page Styles
   -------------------------------------------- */
.tab-active {
    border-bottom: 2px solid #4C5D4C;
    color: #4C5D4C;
}

/* --------------------------------------------
   Form Styles
   -------------------------------------------- */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* Custom checkbox styling */
input[type="checkbox"] {
    accent-color: #4C5D4C;
}

/* --------------------------------------------
   Button Hover Effects
   -------------------------------------------- */
.btn-primary {
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
}

/* --------------------------------------------
   Card Hover Effects
   -------------------------------------------- */
.article-card {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.article-card:hover {
    transform: translateY(-2px);
}

/* --------------------------------------------
   FAQ Accordion
   -------------------------------------------- */
details summary {
    cursor: pointer;
    list-style: none;
}

details summary::-webkit-details-marker {
    display: none;
}

details[open] summary svg {
    transform: rotate(180deg);
}

details summary svg {
    transition: transform 0.2s ease;
}

/* --------------------------------------------
   Responsive Utilities
   -------------------------------------------- */
@media (max-width: 768px) {
    .hero-image {
        max-width: 280px;
    }
}

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