/*
  쿨화이트(명품 세탁/컨시어지) - 프리미엄 UI 테마

  목표
  - 헤더/푸터 “내용”은 유지하면서, 전체 색상/타이포/여백/카드 톤을
    백화점 명품 매장 수준으로 고급스럽게 정리합니다.
  - Tailwind(output.css)는 그대로 유지하고, 커스텀 CSS(style.css)로 “테마 레이어”를 얹는 방식입니다.

  디자인 컨셉
  - 베이스: Warm Ivory(아이보리)
  - 헤더/푸터: Deep Black(딥 블랙)
  - 포인트: Champagne Gold(샴페인 골드)
  - 타이포: 본문 Sans, 제목 Serif
*/

@import url('https://cdn.rawgit.com/moonspam/NanumSquare/master/nanumsquare.css');

:root {
    /* Color System */
    --lux-black: #0b0b0b;
    --lux-ivory: #f7f2ea;
    --lux-ivory-2: #fbf8f3;
    --lux-surface: rgba(255, 255, 255, 0.92);
    --lux-surface-solid: #ffffff;

    --lux-text: #121212;
    --lux-muted: rgba(18, 18, 18, 0.62);
    --lux-muted-2: rgba(18, 18, 18, 0.48);

    --lux-border: rgba(18, 18, 18, 0.10);
    --lux-border-strong: rgba(18, 18, 18, 0.16);

    --lux-gold: #b08d57;
    --lux-gold-2: #d7c09a;
    --lux-gold-3: #8f6b3e;

    /* Elevation */
    --lux-shadow-sm: 0 12px 28px rgba(11, 11, 11, 0.10);
    --lux-shadow: 0 18px 45px rgba(11, 11, 11, 0.12);
}

html {
    font-family: "NanumSquare", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    text-rendering: geometricPrecision;
    -webkit-text-size-adjust: 100%;
}

/* =========================
   Global Theme Wrapper
   ========================= */

/*
  layout/default.html 의 body 에 theme-luxury 클래스를 부여해서
  전체 테마를 안전하게 한정합니다.
*/
.theme-luxury {
    background-color: var(--lux-ivory);
    color: var(--lux-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    /* 은은한 배경 (과하지 않게) */
    background-image: radial-gradient(900px circle at 12% 6%, rgba(176, 141, 87, 0.14), transparent 40%),
    radial-gradient(850px circle at 88% 26%, rgba(11, 11, 11, 0.06), transparent 45%),
    linear-gradient(180deg, rgba(251, 248, 243, 0.80), rgba(247, 242, 234, 1));
}

/* 메인 영역 여백을 “여유롭게” */
.theme-luxury .site-main {
    padding-top: 2.25rem;
    padding-bottom: 3.25rem;
}

@media (min-width: 640px) {
    .theme-luxury .site-main {
        padding-top: 3.0rem;
        padding-bottom: 4.0rem;
    }
}

/* =========================
   Typography
   ========================= */

.theme-luxury main h1,
.theme-luxury main h2,
.theme-luxury main h3,
.theme-luxury main h4 {
    font-family: "NanumSquare", serif;
    letter-spacing: -0.02em;
}

.theme-luxury ::selection {
    background: rgba(176, 141, 87, 0.30);
}

/* =========================
   Surface / Card Tone
   ========================= */

/*
  메인 컨텐츠에서만 “화이트 카드”의 톤을 고급스럽게 조정합니다.
  (헤더/푸터에는 영향이 없도록 main 스코프를 포함)
*/
.theme-luxury main .bg-white {
    background-color: var(--lux-surface);
    border-color: var(--lux-border);
}

.theme-luxury main .bg-gray-50 {
    background-color: rgba(251, 248, 243, 0.92);
    border-color: var(--lux-border);
}

.theme-luxury main .border-gray-100,
.theme-luxury main .border-gray-200,
.theme-luxury main .border-slate-200,
.theme-luxury main .border-slate-100 {
    border-color: var(--lux-border);
}

.theme-luxury main div.shadow-sm,
.theme-luxury main section.shadow-sm,
.theme-luxury main article.shadow-sm {
    box-shadow: var(--lux-shadow-sm);
}

.theme-luxury main div.shadow-xl,
.theme-luxury main section.shadow-xl,
.theme-luxury main article.shadow-xl {
    box-shadow: var(--lux-shadow);
}

/* =========================
   Primary Color Override (Blue -> Gold)
   ========================= */

.theme-luxury main .text-primary {
    color: var(--lux-gold);
}

.theme-luxury main .border-primary {
    border-color: rgba(176, 141, 87, 0.60);
}

.theme-luxury main .focus\:border-primary:focus {
    border-color: rgba(176, 141, 87, 0.85);
}

.theme-luxury main .focus\:ring-primary:focus {
    --tw-ring-color: rgba(176, 141, 87, 0.34);
}

/* =========================
   Form Controls
   ========================= */

.theme-luxury main input[type="text"],
.theme-luxury main input[type="email"],
.theme-luxury main input[type="password"],
.theme-luxury main input[type="tel"],
.theme-luxury main input[type="search"],
.theme-luxury main textarea,
.theme-luxury main select {
    background-color: rgba(255, 255, 255, 0.86);
    border-color: var(--lux-border);
}

.theme-luxury main input::placeholder,
.theme-luxury main textarea::placeholder {
    color: var(--lux-muted-2);
}

.theme-luxury main input:focus,
.theme-luxury main textarea:focus,
.theme-luxury main select:focus {
    outline: none;
    border-color: rgba(176, 141, 87, 0.85);
    box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.18);
}

.theme-luxury main input[type="checkbox"],
.theme-luxury main input[type="radio"] {
    accent-color: var(--lux-gold);
}

/* =========================
   Gold CTA Tone (Amber -> Luxury Gold)
   ========================= */

.theme-luxury .bg-amber-400 {
    background-color: var(--lux-gold);
}

.theme-luxury .hover\:bg-amber-300:hover {
    background-color: var(--lux-gold-2);
}

.theme-luxury .text-amber-700 {
    color: var(--lux-gold-3);
}

.theme-luxury .text-amber-300 {
    color: var(--lux-gold-2);
}

/* =========================
   Header / Footer
   ========================= */

.site-header {
    position: relative;
    background: linear-gradient(180deg, rgba(11, 11, 11, 0.98) 0%, rgba(11, 11, 11, 0.92) 100%);
    backdrop-filter: blur(12px);
}

/* 헤더 로고가 너무 작게 보이는 문제 개선 */
.site-header .site-header-logo {
    height: 60px;
    width: auto;
}

@media (min-width: 1024px) {
    .site-header .site-header-logo {
        height: 68px;
    }
}

.site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(176, 141, 87, 0.55) 50%, transparent 100%);
    opacity: 0.9;
    pointer-events: none;
}

.site-footer {
    position: relative;
    background: linear-gradient(180deg, rgba(7, 7, 7, 1) 0%, rgba(11, 11, 11, 1) 65%, rgba(7, 7, 7, 1) 100%);
}

.site-footer::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(176, 141, 87, 0.45) 50%, transparent 100%);
    opacity: 0.75;
    pointer-events: none;
}

/* =========================
   Luxury Helper Components
   ========================= */

.theme-luxury .lux-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: rgba(176, 141, 87, 0.90);
}

.theme-luxury .lux-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(176, 141, 87, 0.55) 50%, transparent 100%);
}

.theme-luxury .lux-surface {
    background-color: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--lux-border);
    border-radius: 1.75rem;
    box-shadow: var(--lux-shadow-sm);
}

.theme-luxury .lux-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.75rem;
    width: 2.75rem;
    border-radius: 0.9rem;
    background: rgba(176, 141, 87, 0.12);
    border: 1px solid rgba(176, 141, 87, 0.22);
    color: rgba(176, 141, 87, 0.95);
}

.theme-luxury .lux-card {
    background-color: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--lux-border);
    border-radius: 1.5rem;
    box-shadow: var(--lux-shadow-sm);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.theme-luxury .lux-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--lux-shadow);
    border-color: var(--lux-border-strong);
}

@media (prefers-reduced-motion: reduce) {
    .theme-luxury .lux-card {
        transition: none;
    }

    .theme-luxury .lux-card:hover {
        transform: none;
    }
}

.theme-luxury .lux-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid rgba(176, 141, 87, 0.35);
    background: rgba(176, 141, 87, 0.10);
    color: rgba(176, 141, 87, 0.92);
    font-weight: 600;
    font-size: 0.75rem;
}

.theme-luxury .lux-frame {
    border-radius: 1.75rem;
    overflow: hidden;
}

/* =========================
   Accessibility / Focus
   ========================= */

.theme-luxury a:focus-visible,
.theme-luxury button:focus-visible {
    outline: 2px solid rgba(176, 141, 87, 0.55);
    outline-offset: 3px;
}

/* Alpine.js */
[x-cloak] {
    display: none !important;
}

/* =========================
   Tabs (Index)
   ========================= */

.theme-luxury .lux-tab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.95rem;
    border-radius: 9999px;

    border: 1px solid rgba(18, 18, 18, 0.14);
    background: rgba(255, 255, 255, 0.90);
    color: rgba(18, 18, 18, 0.70);

    font-size: 0.85rem;
    font-weight: 700;

    transition: background 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.theme-luxury .lux-tab-btn:hover {
    background: rgba(255, 255, 255, 1);
    color: rgba(18, 18, 18, 0.92);
    border-color: rgba(18, 18, 18, 0.22);
}

.theme-luxury .lux-tab-btn.is-active {
    background: rgba(176, 141, 87, 0.12);
    border-color: rgba(176, 141, 87, 0.38);
    color: rgba(176, 141, 87, 0.95);
    box-shadow: 0 14px 32px rgba(11, 11, 11, 0.10);
}

@media (prefers-reduced-motion: reduce) {
    .theme-luxury .lux-tab-btn {
        transition: none;
    }
}

/* =========================
   Showcase Card (Index)
   - 사진 1장 + 브랜드명 + 한줄소개
   - Hover(마우스 오버) 시 상세설명 오버레이
   ========================= */

.theme-luxury .showcase-tab {
    position: relative;
    display: block;
    overflow: hidden;

    border-radius: 1.5rem;
    border: 1px solid var(--lux-border);
    background-color: rgba(255, 255, 255, 0.88);
    box-shadow: var(--lux-shadow-sm);

    text-decoration: none;
    color: inherit;

    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.theme-luxury .showcase-tab:hover {
    transform: translateY(-2px);
    box-shadow: var(--lux-shadow);
    border-color: var(--lux-border-strong);
}

@media (prefers-reduced-motion: reduce) {
    .theme-luxury .showcase-tab {
        transition: none;
    }

    .theme-luxury .showcase-tab:hover {
        transform: none;
    }
}

.theme-luxury .showcase-tab__media {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: rgba(11, 11, 11, 0.04);
}

.theme-luxury .showcase-tab__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

    transform: scale(1);
    transition: transform 260ms ease;
}

.theme-luxury .showcase-tab:hover .showcase-tab__media img {
    transform: scale(1.03);
}

@media (prefers-reduced-motion: reduce) {
    .theme-luxury .showcase-tab__media img {
        transition: none;
    }

    .theme-luxury .showcase-tab:hover .showcase-tab__media img {
        transform: none;
    }
}

.theme-luxury .showcase-tab__tag {
    position: absolute;
    top: 0.9rem;
    left: 0.9rem;
    z-index: 2;

    display: inline-flex;
    align-items: center;
    gap: 0.45rem;

    padding: 0.35rem 0.65rem;
    border-radius: 9999px;

    background: rgba(11, 11, 11, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);

    color: rgba(255, 255, 255, 0.94);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.theme-luxury .showcase-tab__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.55rem;

    padding: 1.25rem;

    background: linear-gradient(
            180deg,
            rgba(11, 11, 11, 0.00) 0%,
            rgba(11, 11, 11, 0.66) 60%,
            rgba(11, 11, 11, 0.88) 100%
    );

    opacity: 0;
    transform: translateY(6px);
    transition: opacity 200ms ease, transform 200ms ease;

    pointer-events: none;
}

.theme-luxury .showcase-tab:hover .showcase-tab__overlay,
.theme-luxury .showcase-tab:focus-within .showcase-tab__overlay {
    opacity: 1;
    transform: translateY(0);
}

.theme-luxury .showcase-tab__overlay-title {
    font-weight: 800;
    font-size: 0.95rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.98);
}

.theme-luxury .showcase-tab__overlay-desc {
    margin-top: 0.1rem;
    font-size: 0.8rem;
    line-height: 1.25rem;
    color: rgba(255, 255, 255, 0.78);
}

.theme-luxury .showcase-tab__cta {
    margin-top: 0.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;

    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
}

.theme-luxury .showcase-tab__cta i {
    color: rgba(176, 141, 87, 0.95);
}

.theme-luxury .showcase-tab__body {
    padding: 1rem 1.125rem 1.125rem;
}

.theme-luxury .showcase-tab__brand {
    font-family: "NanumSquare", serif;
    font-weight: 800;
    font-size: 1.05rem;
    line-height: 1.35;
    color: var(--lux-text);
}

.theme-luxury .showcase-tab__one {
    margin-top: 0.25rem;
    font-size: 0.85rem;
    line-height: 1.4rem;
    color: var(--lux-muted);
}

/* 터치 디바이스(hover 없음)에서는 상세설명 영역을 기본으로 노출 */
@media (hover: none) {
    .theme-luxury .showcase-tab__overlay {
        opacity: 1;
        transform: none;
    }
}
