/* 
 * ProHub Sourcing Start - Premium Glassmorphism Design System V2.5
 * Fully Responsive & Cross-Platform (Mobile & Desktop)
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;900&display=swap');
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.min.css');

:root {
    --p-emerald: #10b981;
    --p-emerald-light: rgba(16, 185, 129, 0.1);
    --p-indigo: #6366f1;
    --p-indigo-light: rgba(99, 102, 241, 0.1);
    --p-dark-bg: #0b0f1a;
    --p-card-bg: rgba(30, 41, 59, 0.65);
    --p-card-border: rgba(255, 255, 255, 0.1);
    --p-text-main: #f1f5f9;
    --p-text-muted: #94a3b8;
    --p-glass-bg: rgba(255, 255, 255, 0.03);
    --p-glass-border: rgba(255, 255, 255, 0.08);
    --p-glow: 0 0 25px rgba(16, 185, 129, 0.3);
    --p-indigo-glow: 0 0 25px rgba(99, 102, 241, 0.3);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', 'Pretendard Variable', -apple-system, BlinkMacSystemFont, sans-serif;
}

html, body { 
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    background: radial-gradient(circle at 0% 0%, #1e293b 0%, #0f172a 50%, #0b0f1a 100%);
    color: var(--p-text-main);
    line-height: 1.6;
    min-height: 100vh;
}

/* Glassmorphism Common */
.glass {
    background: var(--p-card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--p-card-border);
}

.animate-up { animation: slideUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Header & GNB */
.header {
    position: fixed; top: 0; left: 0; width: 100%; height: 70px;
    background: rgba(11, 15, 26, 0.9); backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--p-glass-border); z-index: 2000;
}
.header-inner {
    max-width: 1600px; margin: 0 auto; padding: 0 1.5rem; height: 100%;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo { font-size: 1.4rem; font-weight: 900; color: #fff; text-decoration: none; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo span { color: var(--p-emerald); background: linear-gradient(135deg, #10b981, #34d399); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.gnb { display: flex; gap: 1.5rem; align-items: center; }
.gnb a { 
    text-decoration: none; color: var(--p-text-muted); font-weight: 700; font-size: 0.9rem; 
    transition: 0.25s; position: relative; white-space: nowrap;
}
.gnb a:hover, .gnb a.active { color: #fff; }
.gnb a.active::after {
    content: ''; position: absolute; left: 50%; bottom: -6px; width: 24px; height: 2.5px;
    background: var(--p-emerald); border-radius: 50px; transform: translateX(-50%);
}

.util .btn-primary { padding: 8px 18px; font-size: 0.85rem; }

/* Hero Section */
.hero {
    position: relative; 
    padding: 130px 1.5rem 60px; 
    text-align: center;
    background: radial-gradient(circle at 50% 20%, rgba(16, 185, 129, 0.12), transparent 70%), #0b0f1a;
    overflow: hidden;
}
.hero-content { position: relative; z-index: 10; max-width: 1100px; margin: 0 auto; }
.hero h1 { 
    font-size: clamp(1.8rem, 5vw, 3.8rem); 
    font-weight: 900; 
    letter-spacing: -1px; 
    margin-bottom: 1.2rem; 
    line-height: 1.2; 
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
    word-break: keep-all;
}
.hero h1 span { 
    color: var(--p-emerald); 
    background: linear-gradient(135deg, #10b981, #34d399); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
}
.hero p { 
    font-size: clamp(0.92rem, 2vw, 1.2rem); 
    color: var(--p-text-muted); 
    margin-bottom: 2rem; 
    font-weight: 600; 
    max-width: 800px; 
    margin-left: auto; 
    margin-right: auto;
    word-break: keep-all;
    line-height: 1.6;
}

/* Search Box Wrap */
.hero-search-wrap {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 26px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 850px;
    margin: 0 auto 1.5rem;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    transition: border-color 0.25s, box-shadow 0.25s;
}
.hero-search-wrap:focus-within {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.2);
}
.hero-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    padding: 0.6rem 1rem;
    font-weight: 600;
    min-width: 0;
}
.hero-search-input::placeholder { color: #64748b; }
.hero-search-btn {
    padding: 0.85rem 2rem;
    border-radius: 18px;
    font-size: 1rem;
    font-weight: 800;
    flex-shrink: 0;
}

/* AI Sourcing Linked Badge */
#aiSourcingNotice {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 14px;
    padding: 0.8rem 1.2rem;
    max-width: 850px;
    margin: 0 auto 2rem;
    font-size: 0.88rem;
    color: #34d399;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

/* Category Matrix */
.cate-matrix { 
    display: grid; 
    grid-template-columns: repeat(8, 1fr); 
    gap: 0.6rem; 
    margin-top: 2rem; 
    max-width: 1400px; 
    margin-left: auto; 
    margin-right: auto; 
}
.cate-box {
    background: var(--p-glass-bg); 
    border: 1px solid var(--p-glass-border);
    border-radius: 14px; 
    padding: 0.9rem 0.5rem; 
    text-align: center; 
    text-decoration: none;
    transition: 0.25s;
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center;
}
.cate-box:hover, .cate-box.active { 
    background: rgba(16, 185, 129, 0.15); 
    transform: translateY(-3px); 
    border-color: var(--p-emerald); 
    box-shadow: var(--p-glow);
}
.cate-box .icon { font-size: 1.4rem; margin-bottom: 0.3rem; }
.cate-box .label { color: #fff; font-weight: 700; font-size: 0.78rem; white-space: nowrap; }

/* Partner Hub Section */
.partner-hub { margin-top: 3.5rem; }
.partner-grid { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }
.partner-tag {
    background: rgba(255,255,255,0.03); 
    border: 1px solid var(--p-glass-border);
    padding: 8px 18px; 
    border-radius: 30px; 
    color: var(--p-text-muted);
    font-weight: 700; 
    text-decoration: none; 
    font-size: 0.82rem;
    transition: 0.2s;
}
.partner-tag:hover { background: #fff; color: var(--p-dark-bg); }

/* Dashboard Grid */
.dash-grid { 
    display: grid; 
    grid-template-columns: 2.2fr 1fr; 
    gap: 2rem; 
    max-width: 1600px; 
    margin: 2rem auto 80px; 
    padding: 0 1.5rem; 
}
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.section-head h2 { font-size: 1.4rem; font-weight: 900; display: flex; align-items: center; gap: 10px; }

/* Stat Cards */
.stat-mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2rem; }
.stat-mini-card { padding: 1.2rem 1rem; border-radius: 18px; text-align: center; }
.stat-mini-card .val { font-size: 1.5rem; font-weight: 900; color: #fff; display: block; }
.stat-mini-card .lab { font-size: 0.75rem; color: var(--p-text-muted); font-weight: 700; margin-top: 4px; }

/* Card Glass */
.card-glass { border-radius: 24px; padding: 1.8rem; }

/* Product Cards Grid */
.hot-products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.p-card-premium {
    background: rgba(255, 255, 255, 0.02); 
    border: 1px solid var(--p-glass-border);
    border-radius: 20px; 
    overflow: hidden; 
    transition: 0.3s; 
    display: flex; 
    flex-direction: column; 
    height: 100%;
}
.p-card-premium:hover { 
    border-color: rgba(16, 185, 129, 0.4); 
    transform: translateY(-4px); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

/* Manufacturers Grid */
.manufacturers-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.m-card-item {
    background: rgba(255,255,255,0.02); 
    padding: 1.4rem; 
    border-radius: 18px; 
    border: 1px solid var(--p-glass-border); 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    gap: 1rem;
    transition: border-color 0.2s;
}
.m-card-item:hover { border-color: rgba(16, 185, 129, 0.4); }

/* Ticker Card */
.ticker-card { height: 420px; overflow: hidden; position: relative; border-radius: 24px; }
.ticker-item { padding: 1.2rem; border-bottom: 1px solid var(--p-glass-border); }

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--p-emerald), #059669);
    color: #fff; padding: 12px 24px; border-radius: 12px; font-weight: 800;
    text-decoration: none; box-shadow: var(--p-glow); transition: 0.25s;
    border: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.1); }

/* ── RESPONSIVE MOBILE MEDIA QUERIES (Zero Overflow Guarantee) ── */
@media (max-width: 1200px) {
    .cate-matrix { grid-template-columns: repeat(4, 1fr); }
    .dash-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .header { height: 60px; }
    .header-inner { padding: 0 1rem; }
    .logo { font-size: 1.1rem; }
    .gnb { 
        gap: 0.6rem; 
        overflow-x: auto; 
        max-width: 60vw; 
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .gnb::-webkit-scrollbar { display: none; }
    .gnb a { font-size: 0.78rem; padding: 0.25rem 0.5rem; }
    .util { display: none; }

    .hero { padding: 85px 1rem 40px; }
    .hero h1 { font-size: 1.85rem; line-height: 1.25; margin-bottom: 0.8rem; }
    .hero p { font-size: 0.88rem; margin-bottom: 1.5rem; }

    .hero-search-wrap {
        flex-direction: column;
        padding: 10px;
        border-radius: 18px;
        gap: 8px;
        width: 100%;
    }
    .hero-search-input {
        width: 100%;
        text-align: center;
        padding: 0.5rem;
        font-size: 0.95rem;
    }
    .hero-search-btn {
        width: 100%;
        padding: 0.85rem;
        font-size: 0.95rem;
        border-radius: 14px;
    }

    #aiSourcingNotice {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.8rem;
        font-size: 0.82rem;
    }

    .cate-matrix { 
        grid-template-columns: repeat(4, 1fr); 
        gap: 0.4rem; 
        margin-top: 1.5rem; 
    }
    .cate-box { padding: 0.7rem 0.3rem; border-radius: 10px; }
    .cate-box .icon { font-size: 1.15rem; margin-bottom: 2px; }
    .cate-box .label { font-size: 0.7rem; }

    .dash-grid { padding: 0 1rem; gap: 1.5rem; margin-top: 1rem; }
    .stat-mini-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
    .card-glass { padding: 1.2rem 1rem; border-radius: 18px; }

    .hot-products-grid { grid-template-columns: 1fr; gap: 1rem; }
    .manufacturers-grid { grid-template-columns: 1fr; gap: 0.8rem; }
    .m-card-item { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
    .m-card-item button { width: 100%; }
}

@media (max-width: 480px) {
    .cate-matrix { grid-template-columns: repeat(3, 1fr); }
    .hero h1 { font-size: 1.6rem; }
    .section-head h2 { font-size: 1.15rem; }
}
