@import 'reset.css';

:root {
    /* Colors */
    --color-primary: #7CB342;
    /* Avocado Green (slightly muted) */
    --color-primary-light: #DDECC6;
    --color-secondary: #FF8A80;
    /* Cute Pink */
    --color-secondary-light: #FFE1E5;
    --color-bg: #F5F5F7;
    /* Softer off-white background */
    --color-text: #333333;
    --color-text-light: #757575;
    --color-white: #FFFFFF;
    --color-border: #E0E0E0;

    /* Typography */
    --font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    --font-size-base: 16px;
    --font-size-sm: 14px;
    --font-size-lg: 20px;
    --font-size-xl: 24px;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 40px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
}

body {
    font-family: var(--font-family);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    font-size: var(--font-size-base);
}

/* Layout */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

header {
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-xs) 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Hero */
.hero-section {
    background: radial-gradient(circle at top left, rgba(140, 195, 74, 0.15), transparent 55%),
        radial-gradient(circle at bottom right, rgba(255, 205, 213, 0.35), transparent 55%),
        var(--color-bg);
    padding: 32px 0 32px;
}

.hero-inner {
    position: relative;
}

.hero-swiper {
    width: 100%;
    max-width: 840px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background-color: var(--color-white);
}

.hero-slide {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(20px);
    transform: scale(1.1);
    z-index: 0;
    opacity: 0.7;
}

.hero-slide-image {
    width: 100%;
    height: auto;
    max-height: 360px;
    display: block;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(6px);
}

.hero-swiper .swiper-button-prev::after,
.hero-swiper .swiper-button-next::after {
    font-size: 18px;
}

.hero-swiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(0, 0, 0, 0.25);
    opacity: 1;
}

.hero-swiper .swiper-pagination-bullet-active {
    background: var(--color-primary);
    width: 18px;
    border-radius: 999px;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 20px 0 28px;
    }

    .hero-swiper {
        border-radius: var(--radius-md);
    }

    .hero-slide-image {
        max-height: 260px;
    }
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.logo {
    display: inline-flex;
    align-items: center;
}

.logo-image-wrap {
    height: 130px;
    width: auto;
    max-width: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-image {
    height: 100%;
    width: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
    object-position: left center;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

nav ul {
    display: flex;
    gap: var(--spacing-md);
}

nav a {
    font-weight: bold;
    color: var(--color-text);
    transition: color 0.2s;
}

nav a:hover,
nav a.active {
    color: var(--color-primary);
}

footer {
    text-align: center;
    padding: var(--spacing-lg) 0;
    color: var(--color-text-light);
    font-size: var(--font-size-sm);
    margin-top: var(--spacing-xl);
}

/* Components */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius-lg);
    font-weight: bold;
    transition: transform 0.1s, background-color 0.2s;
    text-align: center;
}

.btn:hover {
    background-color: #7cb342;
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: var(--color-secondary);
}

.btn-secondary:hover {
    background-color: #e57373;
}

.card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
    text-decoration: none;
    color: inherit;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    /* Square for now */
    object-fit: contain;
    background-color: #f9f9f9;
}

.card-content {
    padding: var(--spacing-md);
}

.card-title {
    font-weight: bold;
    margin-bottom: var(--spacing-xs);
    line-height: 1.4;
}

.card-cast {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
    margin-bottom: var(--spacing-sm);
}

.tag {
    display: inline-block;
    background-color: var(--color-primary-light);
    color: #33691e;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-right: 4px;
    margin-bottom: 4px;
}

.price {
    font-weight: bold;
    color: var(--color-secondary);
    font-size: var(--font-size-lg);
    margin-top: var(--spacing-sm);
}

/* Section Headings */
.section-title {
    text-align: center;
    font-size: var(--font-size-xl);
    color: var(--color-primary);
    margin-bottom: var(--spacing-lg);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 100%;
    height: 4px;
    background-color: var(--color-secondary-light);
    border-radius: 2px;
    margin-top: 5px;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: var(--spacing-md);
}

.mt-8 {
    margin-top: var(--spacing-xl);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

/* Mobile Nav */
.burger {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .burger {
        display: block;
    }

    .header-inner {
        flex-wrap: wrap;
    }

    nav {
        display: none;
        /* Hidden by default on mobile */
        width: 100%;
        margin-top: var(--spacing-md);
        border-top: 1px solid var(--color-border);
        padding-top: var(--spacing-md);
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        text-align: center;
    }

    nav li {
        border-bottom: 1px solid #f0f0f0;
    }

    nav li:last-child {
        border-bottom: none;
    }

    nav a {
        display: block;
        padding: 10px 0;
    }

    .logo-image-wrap {
        height: 110px;
        width: 100%;
        max-width: 480px;
        padding-right: 20px;
        justify-content: flex-start;
    }
}