@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;700;800&display=swap');

:root {
    --primary-bg: #fbffa5;
    --accent-color: #ff9b16;
    --text-color: #333333;
    --dark-bg: #ffb6df71;
    --color-white: #ffffff;

    /* Using old var names mapped to new colors to minimize HTML changes */
    --color-bg-light: #fbffa5;
    --color-bg-dark: #fbffa5;
    --color-primary: #ff9b16;
    --color-accent: #ffb6df;
    --color-text: #333333;

    --radius-card: 20px;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 50px rgba(255, 155, 22, 0.2);
    --nav-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hanken Grotesk', sans-serif;
    background-color: var(--dark-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    padding: 2vw;
    color: var(--color-text);
    margin: 0;
}

/* The Main Wrapper mimicking the card-like behavior in the image */
.landing-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1440px;
    height: 90vh;
    max-height: 900px;
    background-color: var(--primary-bg);
    border-radius: 30px;
    overflow-y: auto;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    transition: scrollbar-color 0.3s ease;
}

.landing-container:hover {
    scrollbar-color: rgba(255, 155, 22, 0.4) transparent;
}

/* Webkit (Chrome/Safari) */
.landing-container::-webkit-scrollbar {
    width: 6px;
}

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

.landing-container::-webkit-scrollbar-thumb {
    background-color: transparent;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

.landing-container:hover::-webkit-scrollbar-thumb {
    background-color: rgba(255, 155, 22, 0.4);
}

.landing-container::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 155, 22, 0.7);
}

/* Layouts */
main {
    flex-grow: 1;
    padding: 40px 60px 60px 60px;
    width: 100%;
}

.section-title {
    text-align: center;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 15px;
    line-height: 1.1;
    letter-spacing: -2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-text);
    font-weight: 500;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

/* Base Card */
.card {
    background-color: var(--color-white);
    border-radius: var(--radius-card);
    box-shadow: none;
    padding: 40px;
    position: relative;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    color: var(--color-white);
    border: none;
    border-radius: 40px;
    padding: 15px 35px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--color-primary);
    border-radius: 40px;
    z-index: -1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 38px;
    background-image: url('assets/dog-svgrepo-com.svg'), url('assets/cat-svgrepo-com.svg');
    background-size: 34px 34px, 34px 34px;
    background-position: right 40px bottom 0, right 8px bottom 0;
    background-repeat: no-repeat;
    z-index: -2;
    opacity: 0;
    transition: top 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.2s ease;
    pointer-events: none;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(255, 155, 22, 0.3);
}

.btn-primary:hover::before {
    top: -28px;
    opacity: 1;
}



/* Navigation - matching homepage structure */
.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    background-color: var(--color-primary);
    border-radius: 50px;
    padding: 10px 40px;
    z-index: 1000;
    margin: 20px;
    position: sticky;
    top: 20px;
}

.nav-left {
    font-weight: 800;
    font-size: 1.4rem;
    color: #ffffff;
    text-transform: lowercase;
    letter-spacing: -0.5px;
    text-decoration: none;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.nav-right a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.25s ease, background-color 0.25s ease;
    padding: 8px 16px;
    /* Tightened padding to shrink the clickable box for the capsule */
    border-radius: 50px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.nav-right a:hover {
    opacity: 0.8;
}

.nav-right a.active {
    background-color: #ffffff;
    color: var(--color-primary);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: #ffffff;
    cursor: pointer;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .nav-left {
        order: 1;
    }

    .hamburger {
        order: 2;
        display: block;
        background: none;
        border: none;
        color: #ffffff;
        font-size: 2rem;
        padding: 0;
        outline: none;
        -webkit-tap-highlight-color: transparent;
    }

    .nav-right {
        order: 3;
        display: flex;
        flex-direction: column;
        width: 100%;
        background-color: transparent;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        margin-top: 0;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.4s ease, padding 0.4s ease, visibility 0.4s;
    }

    .nav-right.active {
        max-height: 400px;
        opacity: 1;
        visibility: visible;
        padding: 15px 0 5px 0;
        margin-top: 15px;
        z-index: 1000;
    }

    .nav-right a {
        width: auto;
        display: inline-block;
        text-align: center;
        margin: 4px auto;
        padding: 10px 24px;
    }

    body {
        padding: 0;
    }

    .landing-container {
        height: 100vh;
        max-height: none;
        border-radius: 0;
    }

    main {
        padding: 20px 30px;
    }
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Ripple effect container */
.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-anim 600ms linear;
    background-color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

@keyframes ripple-anim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Footer */
footer {
    padding: 28px 5% 16px;
    margin-top: 24px;
    text-align: center;
}

footer p {
    color: var(--color-text);
    font-size: 0.9rem;
}

/* --- UPLOAD UI INTEGRATION --- */
.preview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    width: 60px;
    height: 60px;
    box-shadow: var(--shadow-soft);
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-item .remove-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(255, 255, 255, 0.9);
    color: #d9534f;
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

#drop-zone.dragover {
    transform: scale(1.05) translateY(-4px);
    box-shadow: 0 10px 20px rgba(255, 155, 22, 0.5);
}

/* --- COMPACT UPLOAD WIDGET --- */
.upload-box {
    width: 140px;
    height: 48px;
    border: 1px solid var(--accent-color);
    border-radius: 24px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
    background-color: transparent;
    transition: all 0.3s ease;
    overflow: hidden;
}

.upload-box:hover,
.upload-box.dragover {
    background-color: rgba(255, 155, 22, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 155, 22, 0.15);
}

.upload-paw-icon {
    width: 22px;
    height: 22px;
    max-width: 22px;
    max-height: 22px;
    object-fit: contain;
    /* Turns the black SVG into orange (#ff9b16) */
    filter: invert(58%) sepia(89%) saturate(1000%) hue-rotate(360deg) brightness(103%) contrast(101%);
}