/* 뷰빈LIFE 럭셔리 플랫폼 전용 CSS 스타일시트 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

:root {
    --primary: #dcfedf; /* Mint Green Accent */
    --accent-gold: #ffd700; /* Bright Gold */
    --luxury-gold: #dfb76c; /* Champagne Gold */
    --bg-dark: #030712; /* Deep Black-Navy */
    --bg-slate: #0b0f19; /* Secondary Slate */
    --glass-bg: rgba(11, 15, 25, 0.45);
    --glass-border: rgba(223, 183, 108, 0.08); /* Gold-tinted border */
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--bg-dark);
    font-family: 'Outfit', sans-serif;
    color: #f1f5f9;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--luxury-gold);
}

/* Conductor Background for Hero Section */
.hero-conductor-bg {
    position: relative;
    background-image: 
        radial-gradient(circle at top right, rgba(220, 254, 223, 0.05) 0%, transparent 50%),
        radial-gradient(circle at bottom left, rgba(255, 215, 0, 0.05) 0%, transparent 60%),
        linear-gradient(to bottom, rgba(3, 7, 18, 0.15) 0%, rgba(3, 7, 18, 0.8) 70%, rgba(3, 7, 18, 1) 100%),
        url('bg_conductor.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
    border-color: rgba(223, 183, 108, 0.25);
    box-shadow: 0 15px 40px -15px rgba(223, 183, 108, 0.12);
}

/* High-End Perfume Card Hover effect */
.perfume-card {
    position: relative;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.4) 0%, rgba(3, 7, 18, 0.6) 100%);
    border: 1px solid rgba(223, 183, 108, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.perfume-card:hover {
    transform: translateY(-6px);
    border-color: rgba(223, 183, 108, 0.3);
    box-shadow: 
        0 20px 40px -20px rgba(0, 0, 0, 0.7),
        0 0 25px rgba(223, 183, 108, 0.05);
}

/* Premium Typography */
.serif-title {
    font-family: 'Playfair Display', serif;
}

/* Shiny Gold Text */
.gold-text-gradient {
    background: linear-gradient(135deg, #f59e0b 0%, #fef08a 50%, #d97706 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Gold Button */
.gold-button {
    background: linear-gradient(135deg, #dfb76c 0%, #b88e3c 100%);
    box-shadow: 0 4px 20px rgba(184, 142, 60, 0.15);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gold-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(184, 142, 60, 0.35);
    filter: brightness(1.1);
}

.gold-button:active {
    transform: translateY(0);
}

/* Custom Glass Inputs */
.glass-input {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(223, 183, 108, 0.12);
    color: #f8fafc;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.glass-input:focus {
    outline: none;
    border-color: rgba(223, 183, 108, 0.5);
    box-shadow: 0 0 15px rgba(223, 183, 108, 0.15);
    background: rgba(15, 23, 42, 0.7);
}

/* Sidebar Styling & Transitions */
.sidebar {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Smooth Fade animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ==========================================
   CSS CLASSES EXTRACTED FROM index.html
   ========================================== */

/* 3D Orbit Gizmo repositioned to right-bottom corner to cover Gemini mark */
#orbit-gizmo-container {
    position: absolute !important;
    bottom: 64px !important; /* Moved up by another 10px (54px + 10px) */
    right: 10px !important;  /* Kept right position at 10px */
    z-index: 30 !important;
    background: rgba(5, 10, 6, 0.65) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1.5px solid rgba(223, 183, 108, 0.45) !important;
    border-radius: 50% !important;
    box-shadow: 0 0 25px rgba(223, 183, 108, 0.3) !important;
    padding: 6px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
#orbit-gizmo-container:hover {
    background: rgba(5, 10, 6, 0.8) !important;
    border-color: rgba(223, 183, 108, 0.7) !important;
    box-shadow: 0 0 35px rgba(223, 183, 108, 0.45) !important;
    transform: scale(1.05) !important;
}
@media (max-width: 768px) {
    #orbit-gizmo-container {
        width: 60px !important;
        height: 60px !important;
        bottom: 56px !important; /* Moved up by another 10px (46px + 10px) */
        right: 4px !important;   
        padding: 4px !important;
    }
}

/* Golden Flame Button with Animated Glassmorphism */
.btn-golden-flame {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.4) 0%, rgba(223, 183, 108, 0.7) 50%, rgba(234, 179, 8, 0.4) 100%);
    background-size: 200% 200%;
    border: 1px solid rgba(223, 183, 108, 0.6);
    color: #ffffff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 0 15px rgba(223, 183, 108, 0.4), inset 0 1px 0px rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    animation: flame-shimmer 3s ease infinite;
}

.btn-golden-flame:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.6) 0%, rgba(223, 183, 108, 0.9) 50%, rgba(234, 179, 8, 0.6) 100%);
    background-size: 200% 200%;
    border-color: rgba(223, 183, 108, 0.9);
    box-shadow: 0 0 25px rgba(223, 183, 108, 0.6), 0 0 12px rgba(245, 158, 11, 0.4);
    transform: translateY(-1px);
}

@keyframes flame-shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Premium active state for dark sidebar */
.nav-link-active {
    color: #dfb76c !important;
    border-left: 2px solid #dfb76c !important;
    background: rgba(223, 183, 108, 0.08) !important;
    font-weight: 600 !important;
}

/* 3D Conductor Play Button Styles */
.video-btn-pulse {
    animation: btn-breathing-pulse 2s infinite alternate ease-in-out;
}
@keyframes btn-breathing-pulse {
    0% {
        box-shadow: 0 0 5px rgba(223, 183, 108, 0.2), inset 0 0 5px rgba(223, 183, 108, 0.1);
        border-color: rgba(223, 183, 108, 0.3);
    }
    100% {
        box-shadow: 0 0 20px rgba(223, 183, 108, 0.6), inset 0 0 10px rgba(223, 183, 108, 0.3);
        border-color: rgba(223, 183, 108, 0.7);
    }
}
.pulse-ring-glow {
    position: absolute;
    inset: -4px;
    border-radius: 9999px;
    border: 2px solid rgba(223, 183, 108, 0.4);
    animation: ring-pulse-grow 2s infinite cubic-bezier(0.24, 0, 0.38, 1);
    pointer-events: none;
    display: none; /* Only show when playing */
}
.playing .pulse-ring-glow {
    display: block;
}
@keyframes ring-pulse-grow {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

.toast-item {
    background: rgba(7, 11, 19, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(223, 183, 108, 0.3);
    color: #fff;
    padding: 1.25rem 1.75rem;
    border-radius: 1.25rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
    max-width: 320px;
}
.toast-item.show {
    transform: translateX(0);
    opacity: 1;
}

/* Luxurious Golden Aurora Glass Panel Spotlight Effect (2nd design idea) */
.glass-panel {
    position: relative !important;
    overflow: hidden !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Spotlight inner background golden auroral glow */
.glass-panel::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: radial-gradient(
        220px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
        rgba(223, 183, 108, 0.11),
        transparent 80%
    ) !important;
    z-index: 1 !important;
    opacity: 0 !important;
    transition: opacity 0.5s ease-out !important;
    pointer-events: none !important;
}

/* Spotlight outer border golden glow */
.glass-panel::after {
    content: '' !important;
    position: absolute !important;
    inset: -1px !important;
    border-radius: inherit !important;
    background: radial-gradient(
        150px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
        rgba(223, 183, 108, 0.45),
        transparent 65%
    ) !important;
    z-index: 0 !important;
    opacity: 0 !important;
    transition: opacity 0.5s ease-out !important;
    pointer-events: none !important;
    
    /* Perfect thin border masking technique */
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0) !important;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0) !important;
    mask-composite: exclude !important;
    -webkit-mask-composite: xor !important;
    padding: 1px !important;
}

/* Ensure contents stay on top of the spotlight effect layers */
.glass-panel > * {
    position: relative !important;
    z-index: 2 !important;
}

.glass-panel:hover::before,
.glass-panel:hover::after {
    opacity: 1 !important;
}

/* Premium Golden Glassmorphism Button */
.btn-golden-glass {
    background: linear-gradient(135deg, rgba(223, 183, 108, 0.08) 0%, rgba(223, 183, 108, 0.18) 50%, rgba(197, 160, 89, 0.08) 100%) !important;
    border: 1px solid rgba(223, 183, 108, 0.35) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35), 0 0 10px rgba(223, 183, 108, 0.1), inset 0 1px 1px rgba(255, 255, 255, 0.15) !important;
    color: #dfb76c !important; /* Premium gold text color */
    font-weight: 800 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: pointer !important;
}

.btn-golden-glass:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(223, 183, 108, 0.3) 50%, rgba(234, 179, 8, 0.15) 100%) !important;
    border-color: rgba(223, 183, 108, 0.7) !important;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.45), 0 0 20px rgba(223, 183, 108, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important; /* Changes to pure white on hover for high contrast and glow */
    transform: scale(1.05) translateY(-2px) !important;
    text-shadow: 0 0 8px rgba(223, 183, 108, 0.6) !important;
}

.btn-golden-glass:active {
    transform: scale(0.97) translateY(0px) !important;
}

/* ============================================================
   🎛️ "이거해줘" 모달 & 인터랙티브 마인드맵 CSS 효과 (NEW)
   ============================================================ */

/* 마인드맵 전선 전류 흐름 키프레임 */
@keyframes glowFlow {
    0% {
        stroke-dashoffset: 20;
        stroke: rgba(223, 183, 108, 0.4);
    }
    50% {
        stroke: rgba(223, 183, 108, 1);
        filter: drop-shadow(0 0 5px rgba(223, 183, 108, 0.8));
    }
    100% {
        stroke-dashoffset: 0;
        stroke: rgba(223, 183, 108, 0.4);
    }
}

/* 전선 활성 시 전류 효과 */
.mindmap-line.active-glow {
    stroke: #dfb76c !important;
    stroke-dasharray: 6, 4;
    animation: glowFlow 1.5s infinite linear;
    filter: drop-shadow(0 0 3px rgba(223, 183, 108, 0.5));
}

/* 노드 활성 시 펄스 반짝임 키프레임 */
@keyframes nodePulse {
    0% {
        stroke: rgba(223, 183, 108, 0.4);
        stroke-width: 1.5;
    }
    50% {
        stroke: #dfb76c;
        stroke-width: 3.5;
        fill: #0f2b17; /* Dark green-gold glow fill */
        filter: drop-shadow(0 0 8px rgba(223, 183, 108, 0.9));
    }
    100% {
        stroke: rgba(223, 183, 108, 0.4);
        stroke-width: 1.5;
    }
}

/* 노드 활성 효과 */
.mindmap-node.active-glow rect {
    animation: nodePulse 1.2s infinite ease-in-out;
    stroke: #dfb76c !important;
    stroke-width: 2.5px !important;
    fill: #14351c !important;
    transition: all 0.3s ease;
}

/* 아코디언 메뉴 스타일 */
.accordion-header {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(223, 183, 108, 0.15);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-header:hover {
    background: rgba(223, 183, 108, 0.07);
    border-color: rgba(223, 183, 108, 0.35);
}

.accordion-header.active {
    background: rgba(223, 183, 108, 0.1);
    border-color: rgba(223, 183, 108, 0.5);
    color: #dfb76c;
}

/* 아코디언 서랍이 슥 펼쳐지는 트랜지션 */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease-out;
    opacity: 0;
}

.accordion-content.open {
    max-height: 500px;
    opacity: 1;
}

/* 하위 프롬프트 버튼 스타일 */
.prompt-list-item {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.25s ease;
}

.prompt-list-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(223, 183, 108, 0.2);
    color: #ffffff;
    transform: translateX(3px);
}

.prompt-list-item.selected {
    background: rgba(223, 183, 108, 0.08);
    border-color: rgba(223, 183, 108, 0.45);
    color: #dfb76c;
    font-weight: 600;
}

/* 대화형 프리뷰 컴포넌트 텍스트 복사 펄스 효과 */
@keyframes copyFeedback {
    0% { transform: scale(1); }
    50% { transform: scale(0.97); background-color: rgba(223, 183, 108, 0.2); }
    100% { transform: scale(1); }
}

.copy-pulse {
    animation: copyFeedback 0.3s ease-in-out;
}

/* 마인드맵 노드 호버 및 텍스트 스타일링 보완 */
.mindmap-node rect {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.mindmap-node:hover rect {
    stroke: #dfb76c !important;
    stroke-width: 2px !important;
    fill: #0c1a11 !important;
    filter: drop-shadow(0 0 10px rgba(223, 183, 108, 0.4));
}

.mindmap-node text {
    pointer-events: none;
    font-family: 'Outfit', sans-serif;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    transition: fill 0.3s ease;
}

.mindmap-node:hover text {
    fill: #ffffff !important;
}

/* SVG 연결선 스무스 트랜지션 */
.mindmap-line {
    transition: stroke 0.4s ease, stroke-width 0.4s ease, stroke-dasharray 0.4s ease, filter 0.4s ease;
}

/* 🌟 황금빛 펄스 오라 (Gold Glow Pulse) - 로고 클릭 유도 애니메이션 */
@keyframes logoGlowPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(223, 183, 108, 0.4), 0 8px 25px rgba(0, 0, 0, 0.5);
        border-color: rgba(223, 183, 108, 0.3);
    }
    50% {
        box-shadow: 0 0 25px 6px rgba(223, 183, 108, 0.5), 0 0 45px 12px rgba(255, 215, 0, 0.25);
        border-color: rgba(223, 183, 108, 0.85);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(223, 183, 108, 0), 0 8px 25px rgba(0, 0, 0, 0.5);
        border-color: rgba(223, 183, 108, 0.3);
    }
}

@keyframes textGlowPulse {
    0% {
        filter: drop-shadow(0 0 2px rgba(223, 183, 108, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8)) drop-shadow(0 0 20px rgba(223, 183, 108, 0.5));
    }
    100% {
        filter: drop-shadow(0 0 2px rgba(223, 183, 108, 0.3));
    }
}

.logo-glow-pulse {
    position: relative;
    animation: logoGlowPulse 2.8s infinite ease-in-out;
}

.logo-text-glow-pulse {
    animation: textGlowPulse 2.8s infinite ease-in-out;
}
