/**
 * O2H - Base Stylesheet
 * Tailwind CSS CDN을 보완하는 기본 스타일
 * @since 2026-04-09
 */

/* ─── Base Resets ─────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg {
    display: block;
    max-width: 100%;
}

/* ─── Focus Styles ────────────────────────────── */
:focus-visible {
    outline: 2px solid #4D6FFF;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ─── Horizontal Scroll Container ─────────────── */
.scroll-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.scroll-container::-webkit-scrollbar {
    display: none;
}

/* ─── Line Clamp ──────────────────────────────── */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse-soft {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 0.5s ease-out forwards;
}

/* Staggered animation delays */
.stagger-1 { animation-delay: 0.1s; opacity: 0; }
.stagger-2 { animation-delay: 0.2s; opacity: 0; }
.stagger-3 { animation-delay: 0.3s; opacity: 0; }
.stagger-4 { animation-delay: 0.4s; opacity: 0; }

/* ─── Category Card Hover ─────────────────────── */
.category-card-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.05) 100%);
    transition: background 0.3s ease;
}
.category-card:hover .category-card-overlay {
    background: linear-gradient(to top, rgba(77,111,255,0.7) 0%, rgba(77,111,255,0.2) 50%, rgba(0,0,0,0.05) 100%);
}

/* ─── Newsletter Input ────────────────────────── */
.newsletter-input::placeholder {
    color: rgba(255,255,255,0.6);
}

/* ─── Print Styles ────────────────────────────── */
@media print {
    header, footer, .kakao-float, [x-data] button {
        display: none !important;
    }
}
