/* Modern Luxury Redesign Variables */
:root {
    --bg-primary: rgba(20, 20, 20, 0.6);
    --bg-secondary: rgba(30, 30, 30, 0.4);
    --bg-tertiary: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --text-tertiary: rgba(255, 255, 255, 0.6);
    --border-color: rgba(255, 255, 255, 0.15);
    --primary-color: #5599ff;
    /* Brighter blue for dark mode */
    --primary-hover: #77b3ff;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.3);
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-backdrop: blur(16px) saturate(180%);
}

body {
    background-color: #0a0a0a;
    background-image: url('../images/bg_main.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #ffffff;
}

.home-content {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    /* Background handled by body */
    margin-top: 0;
}

/* Background Image Applied to Body (via common.css or inline, but here for specificity if needed on home page) */
/* Note: Since we can't easily target body from here only for home, we assume the user adds the class or we style the wrapper. 
   However, simpler to style .home-content-wrapper or imply global change. 
   Let's disable the default background of home-content and let the body bg show through. */

.home-content-wrapper {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 32px 24px;
}

/* 인사말 및 소개 섹션 */
/* 인사말 및 소개 섹션 (Premium Styling) */
.intro-section {
    padding: 120px 0 100px;
    border-bottom: none;
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Background Flare Effect */
.intro-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 0;
    pointer-events: none;
}

.intro-content {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.intro-title {
    font-size: 64px;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
    /* Modern Font if available, else standard */
    background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #ffffff;
    margin-bottom: 24px;
    letter-spacing: -2px;
    line-height: 1.1;
    filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.3));
    text-transform: uppercase;
}

.intro-subtitle {
    font-size: 22px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.highlight-text {
    font-weight: 700;
    color: #fff;
    border-bottom: 2px solid var(--primary-color);
}

.intro-description {
    font-size: 15px;
    color: var(--text-tertiary);
    margin-bottom: 50px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.intro-description span {
    position: relative;
}

/* Main Search Form */
.main-search-form {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    /* Pill Shape */
    padding: 8px 8px 8px 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-input-wrapper:hover,
.search-input-wrapper:focus-within {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 16px 48px rgba(37, 99, 235, 0.25);
    transform: translateY(-2px);
}

.search-icon {
    font-size: 20px;
    color: var(--text-tertiary);
    margin-right: 12px;
}

.main-search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    padding: 12px 0;
}

.main-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
}

.main-search-input:focus {
    outline: none;
}

.search-submit-btn {
    padding: 14px 32px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.search-submit-btn:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.hero-search-hint {
    margin-top: 20px;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    opacity: 0.8;
}

/* Glassmorphism Cards */
.why-item,
.feature-card,
.trending-brand-item,
.platform-tab,
.popular-item,
.product-preview-card {
    background: var(--glass-bg);
    border: var(--glass-border);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
}

/* Feature Accordion Section (Premium Redesign) */
.feature-accordion-section {
    padding: 120px 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.feature-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    padding: 0 0px;
}

/* Left: Visual Stats/Icon */
.feature-visual-col {
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-visual-card {
    width: 400px;
    height: 500px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.feature-visual-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    transform: scale(1.1);
}

.feature-visual-img.active-img {
    opacity: 1;
    transform: scale(1);
}

/* Feature Visual Card styling updated */
/* Icon styles removed */

.visual-circle-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--primary-color);
    filter: blur(80px);
    /* Intense glow */
    opacity: 0.2;
    z-index: 0;
    animation: pulseGlow 4s infinite alternate;
}

@keyframes pulseGlow {
    0% {
        opacity: 0.15;
        transform: translate(-50%, -50%) scale(0.9);
    }

    100% {
        opacity: 0.25;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Right: Content List */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.feature-item {
    padding: 36px 0;
    /* Increased padding */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    opacity: 0.4;
    transition: all 0.4s ease;
    position: relative;
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-item.active {
    opacity: 1;
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 24px;
    /* Increased gap */
    margin-bottom: 0;
}

.feature-number {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    /* Increased from 14px */
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.feature-title {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    /* Increased from 28px */
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: -0.5px;
}

.feature-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-item.active .feature-body {
    max-height: 500px;
    /* Increased from 200px to fit more content */
    margin-top: 24px;
}

.feature-desc {
    font-size: 17px;
    /* Increased from 16px */
    line-height: 1.8;
    color: #e2e8f0;
    padding-left: 45px;
    /* Align with title */
    word-break: keep-all;
}

/* Progress Bar */
.feature-progress-bar {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0s;
    /* Reset instantly by default */
}

.feature-item.active .feature-progress-bar {
    width: 100%;
    transition: width 5s linear;
    /* Animate over 5s */
}

@media (max-width: 991px) {
    .feature-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
        text-align: center;
        /* Center active text */
    }

    .feature-visual-col {
        display: none;
        /* Hide visual on mobile to simplify as per request? Or stack? */
        /* User asked for One-by-One. Let's keep visual but smaller or hide if too tall. */
        /* Let's hide it for mobile to focus on text content */
    }

    .feature-desc {
        padding-left: 0;
    }

    .feature-header {
        justify-content: left;
        /* Keep left align like accordion */
    }
}

/* Scroll Animation Classes */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 991px) {
    .why-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section-title-large {
        font-size: 36px;
    }
}

/* 섹션 공통 스타일 */
.popular-searches-section,
.trending-brands-section,
.platform-products-section,
.features-section {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

.features-section {
    border-bottom: none;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.section-title i {
    color: var(--primary-color);
    filter: drop-shadow(0 0 8px rgba(37, 99, 235, 0.5));
}

/* 인기 검색어 */
.popular-searches-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.popular-item {
    padding: 12px 20px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.popular-item:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

/* 최근 뜨는 브랜드 */
.trending-brands-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.trending-brand-item {
    border-radius: var(--radius-md);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.trending-brand-item:hover {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
    transform: translateX(4px);
}

.brand-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.brand-growth {
    font-size: 14px;
    font-weight: 700;
    color: #4ade80;
    /* Brighter green */
    margin-left: auto;
    margin-right: 16px;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.3);
}

.brand-count {
    font-size: 13px;
    color: var(--text-tertiary);
}

/* 플랫폼별 인기상품 */
.platform-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 32px;
    margin-top: 8px;
    flex-wrap: wrap;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    background: transparent;
    backdrop-filter: none;
    border: none;
}

.platform-tab {
    padding: 12px 24px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.platform-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.platform-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 16px rgba(37, 99, 235, 0.4);
}

.platform-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.product-preview-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-preview-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-6px);
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.product-preview-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-preview-image {
    width: 100%;
    padding-bottom: 100%;
    background-size: cover;
    background-position: center;
    background-color: rgba(0, 0, 0, 0.2);
}

.product-preview-info {
    padding: 16px;
}

.product-preview-info h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.5;
    height: 42px;
    opacity: 0.9;
}

.product-preview-price {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.product-preview-platform {
    font-size: 12px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 주요 기능 소개 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 16px;
}

.feature-card {
    padding: 40px 32px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
    transform: translateY(-6px);
}

.feature-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.2) 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #60a5fa;
    margin: 0 auto 24px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.1);
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.feature-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Trending Brands Revamp Styles */
.trending-brands-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* Use 1fr 1fr for desktop, auto-fit for response. For 10 items, 2 cols is good. */
    gap: 20px;
}

@media (min-width: 768px) {
    .trending-brands-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.trending-brand-item {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--glass-bg);
    border: var(--glass-border);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.trending-brand-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-rank-badge {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    font-style: italic;
    min-width: 30px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.brand-info-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.brand-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: #fff;
}

.brand-name-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-stats {
    font-size: 13px;
    color: var(--text-tertiary);
    font-weight: 500;
}

.brand-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.brand-product-thumb {
    aspect-ratio: 1/1;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    position: relative;
}

.brand-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.brand-product-thumb:hover img {
    transform: scale(1.1);
}