/* style.css - Dengle Premium Landing UI */

:root {
    /* Primary Colors */
    --navy: #111111;
    --navy-light: #2A2A2A;
    --orange: #E91E63;
    --orange-light: #D81B60;
    --blue: #1976D2;
    --blue-light: #1E88E5;
    
    /* Secondary & Accents */
    --indigo: #3F51B5;
    --green: #4CAF50;
    --teal: #009688;
    --red: #E53935;
    --purple: #9C27B0;
    --yellow: #FFC107;
    --gold: #FFD700;
    
    /* Neutrals */
    --gray-900: #212121;
    --gray-700: #616161;
    --gray-400: #BDBDBD;
    --gray-200: #EEEEEE;
    --gray-100: #F5F5F5;
    --white: #FFFFFF;
    
    /* Typo */
    --font-main: 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    
    /* Shadow */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 24px rgba(0,0,0,0.12);
    --shadow-glass: 0 8px 32px rgba(31, 38, 135, 0.15);
}

/* Reset */
* {
    margin: 0; padding: 0; box-sizing: border-box;
}
body {
    font-family: var(--font-main);
    color: var(--gray-900);
    line-height: 1.5;
    background-color: var(--white);
    overflow-x: hidden;
}
input, button, select, textarea {
    font-family: inherit;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: transparent; }
img { max-width: 100%; display: block; }

/* Utilities */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.pt-40 { padding-top: 40px; } .pb-40 { padding-bottom: 40px; }
.pt-60 { padding-top: 60px; } .pb-60 { padding-bottom: 60px; }
.mt-10 { margin-top: 10px; } .mt-15 { margin-top: 15px; } .mb-15 { margin-bottom: 15px; } .mb-30 { margin-bottom: 30px; }
.text-white { color: var(--white); }
.text-orange { color: var(--orange-light); }
.text-yellow { color: var(--yellow); }
.text-indigo { color: var(--indigo); }
.text-gold { color: var(--gold); }
.text-red { color: var(--red); }
.bg-navy { background-color: var(--navy); }
.section-gray { background-color: var(--gray-100); }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.highlight { color: var(--orange); font-weight: 800; }
.opacity-80 { opacity: 0.8; }

/* Section Titles */
.section-title { margin-bottom: 30px; }
.section-title h3 { font-size: 28px; font-weight: 800; color: var(--navy); letter-spacing: -0.5px; margin-bottom: 8px;}
.section-title p { font-size: 16px; color: var(--gray-700); }

/* --- Top Bar (Target Switch) --- */
.top-bar {
    background-color: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
    height: 48px;
}
.top-bar .container {
    display: flex; justify-content: space-between; align-items: center; height: 100%;
}
.target-switch {
    display: flex; gap: 4px; background: var(--gray-200); padding: 4px; border-radius: 8px;
}
.switch-btn {
    padding: 6px 16px; font-size: 13px; font-weight: 600; color: var(--gray-700);
    border-radius: 6px; transition: all 0.2s;
}
.switch-btn.active {
    background: var(--white); color: var(--navy); box-shadow: var(--shadow-sm);
}
.top-links { display: flex; gap: 16px; font-size: 13px; color: var(--gray-700); }
.top-links a:hover { color: var(--navy); font-weight: 600; }

/* --- Main Header --- */
.main-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky; top: 0; z-index: 100;
}
.header-inner {
    display: flex; justify-content: space-between; align-items: center; height: 72px;
}
.logo h1 { font-size: 26px; font-weight: 900; letter-spacing: -1px; color: var(--navy); }
.logo .dot { color: var(--orange); }

.gnb ul { display: flex; gap: 32px; }
.gnb a { font-size: 17px; font-weight: 700; color: var(--gray-900); transition: color 0.2s; }
.gnb a:hover { color: var(--orange); }

.header-actions { display: flex; align-items: center; gap: 20px; }
.search-box {
    display: flex; align-items: center; background: var(--gray-100);
    border-radius: 20px; padding: 6px 16px; width: 200px;
}
.search-box input {
    border: none; background: transparent; outline: none; flex: 1; font-size: 14px;
}
.icon-link {
    font-size: 22px; color: var(--gray-900); position: relative;
}
.icon-link .badge {
    position: absolute; top: -5px; right: -8px; background: var(--orange); color: var(--white);
    font-size: 10px; font-weight: 700; width: 16px; height: 16px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white); padding: 80px 0; overflow: hidden; position: relative;
}
.hero-content { display: flex; justify-content: space-between; align-items: center; }
.hero-text { flex: 1; z-index: 2; }
.badge-new {
    display: inline-block; background: var(--orange); color: var(--white);
    font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 20px; margin-bottom: 16px;
}
.hero-text h2 { font-size: 46px; font-weight: 900; line-height: 1.3; margin-bottom: 20px; letter-spacing: -1px; }
.hero-text p { font-size: 18px; opacity: 0.9; margin-bottom: 40px; font-weight: 300; }

.hero-buttons button {
    padding: 16px 32px; font-size: 16px; font-weight: 700; border-radius: 8px;
    margin-right: 12px; transition: transform 0.2s;
}
.hero-buttons button:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: var(--white); box-shadow: 0 4px 12px rgba(245, 124, 0, 0.4); }
.btn-secondary { background: rgba(255,255,255,0.1); color: var(--white); border: 1px solid rgba(255,255,255,0.3); }

/* Hero Visual & Glassmorphism */
.hero-visual {
    position: relative; width: 450px; height: 350px;
}
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px; padding: 24px; box-shadow: var(--shadow-glass);
}
.main-glass {
    position: absolute; right: 0; top: 40px; width: 320px; z-index: 2;
}
.glass-header { display: flex; align-items: center; gap: 10px; font-size: 14px; opacity: 0.9; margin-bottom: 20px; }
.glass-body strong { font-size: 28px; display: block; margin-bottom: 4px; }
.glass-body p { font-size: 14px; opacity: 0.8; margin-bottom: 16px; }
.progress-bar-wrap { width: 100%; height: 8px; background: rgba(255,255,255,0.2); border-radius: 4px; overflow: hidden;}
.progress-fill { height: 100%; background: var(--orange-light); border-radius: 4px;}

.sub-glass.floating {
    position: absolute; left: 0; bottom: 40px; display: flex; align-items: center; gap: 12px;
    padding: 16px 24px; z-index: 3; font-weight: 600;
    animation: float 4s ease-in-out infinite;
}
@keyframes float {
    0% { transform: translateY(0px); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0px); }
}

/* --- Quick Menu Grid --- */
.quick-menu { padding: 40px 0; border-bottom: 1px solid var(--gray-200); }
.icon-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 16px; text-align: center; }
.grid-item { display: flex; flex-direction: column; align-items: center; gap: 12px; transition: transform 0.2s; }
.grid-item:hover { transform: translateY(-5px); }
.icon-circle {
    width: 64px; height: 64px; border-radius: 24px; display: flex; justify-content: center; align-items: center;
    font-size: 24px; color: var(--white); box-shadow: var(--shadow-sm);
}
.grid-item span { font-size: 14px; font-weight: 600; color: var(--gray-900); }
.bg-blue { background: #E3F2FD; color: #1976D2; }
.bg-indigo { background: #E8EAF6; color: #3F51B5; }
.bg-orange { background: #FFF3E0; color: #F57C00; }
.bg-green { background: #E8F5E9; color: #388E3C; }
.bg-purple { background: #F3E5F5; color: #8E24AA; }
.bg-red { background: #FFEBEE; color: #D32F2F; }
.bg-teal { background: #E0F2F1; color: #00796B; }
.bg-gray { background: #EEEEEE; color: #616161; }

/* --- Data & Curation Dashboard --- */
.data-dashboard { padding: 60px 0; }
.dashboard-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; }
.dash-card {
    background: var(--white); border-radius: 16px; padding: 24px; box-shadow: var(--shadow-sm);
}
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; border-bottom: 1px solid var(--gray-100); padding-bottom: 16px;}
.card-header h4 { font-size: 18px; font-weight: 800; color: var(--navy); }
.link-small { font-size: 13px; color: var(--gray-700); }
.update-time { font-size: 12px; color: var(--gray-400); }

/* Donut Chart */
.chart-row { display: flex; align-items: center; gap: 24px; }
.donut-container { width: 100px; height: 100px; position: relative; }
.circular-chart { display: block; margin: 0 auto; max-width: 80%; max-height: 250px; }
.circle-bg { fill: none; stroke: var(--gray-200); stroke-width: 3.8; }
.circle { fill: none; stroke-width: 3.8; stroke-linecap: round; animation: progress 1s ease-out forwards; }
@keyframes progress { 0% { stroke-dasharray: 0 100; } }
.circular-chart.orange .circle { stroke: var(--orange); }
.percentage-title { fill: var(--gray-700); font-size: 5px; text-anchor: middle; font-family: var(--font-main); }
.percentage-val { fill: var(--navy); font-size: 7px; font-weight: bold; text-anchor: middle; font-family: var(--font-main); }

.chart-text .highlight-text { font-size: 16px; margin-bottom: 4px; color: var(--gray-900); }
.chart-text .highlight-text strong { color: var(--orange); }
.chart-text .sub-text { font-size: 13px; color: var(--gray-700); margin-bottom: 12px; }
.weakness-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.weakness-tags li { font-size: 12px; background: #FFEBEE; color: #D32F2F; padding: 4px 10px; border-radius: 4px; font-weight: 600; }

/* Recommend List */
.rec-list { display: flex; flex-direction: column; gap: 16px; }
.rec-item {
    display: flex; align-items: center; padding: 16px; border: 1px solid var(--gray-200);
    border-radius: 12px; transition: border-color 0.2s, box-shadow 0.2s; background: var(--white);
}
.rec-item:hover { border-color: var(--blue-light); box-shadow: var(--shadow-sm); }
.rec-icon { width: 50px; height: 50px; border-radius: 12px; display: flex; justify-content: center; align-items: center; font-size: 20px; color: var(--white); margin-right: 16px;}
.rec-icon.vod { background: var(--indigo); }
.rec-icon.book { background: var(--green); }
.rec-content { flex: 1; }
.badge-tag { font-size: 11px; font-weight: 700; color: var(--gray-700); background: var(--gray-100); padding: 2px 6px; border-radius: 4px; }
.rec-content h5 { font-size: 15px; font-weight: 700; margin: 4px 0; color: var(--navy); }
.rec-content p { font-size: 13px; color: var(--gray-700); }
.btn-icon { width: 32px; height: 32px; border-radius: 50%; background: var(--gray-100); color: var(--gray-700); transition: all 0.2s; }
.rec-item:hover .btn-icon { background: var(--blue-light); color: var(--white); }

/* --- Commerce Store --- */
.commerce-store { background: var(--white); }


.btn-text { font-size: 14px; font-weight: 600; color: var(--gray-700); }
.store-scroll-container { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 20px; scrollbar-width: none; }
.store-scroll-container::-webkit-scrollbar { display: none; }
.product-card { min-width: 260px; }
.product-thumb {
    width: 100%; height: 280px; border-radius: 12px; position: relative; overflow: hidden; margin-bottom: 16px;
    background: var(--gray-100); box-shadow: inset 0 0 10px rgba(0,0,0,0.05); display: flex; justify-content: center; align-items: center;
}
.badge-hot, .badge-new { position: absolute; top: 12px; left: 12px; padding: 4px 8px; font-size: 11px; font-weight: 800; border-radius: 4px; color: var(--white); z-index: 2; }
.badge-hot { background: var(--orange); }
.badge-new.bg-teal { background: var(--teal); }

.thumb-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5);
    display: flex; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s; z-index: 10;
}
.product-card:hover .thumb-overlay { opacity: 1; }
.btn-cart { background: var(--white); color: var(--navy); padding: 8px 16px; border-radius: 20px; font-weight: 700; font-size: 13px; transform: translateY(10px); transition: transform 0.3s;}
.product-card:hover .btn-cart { transform: translateY(0); }

/* Dummy Covers for visuals */
.dummy-book-cover { width: 180px; height: 240px; border-radius: 4px 12px 12px 4px; padding: 20px; display: flex; flex-direction: column; justify-content: center; box-shadow: -4px 0 10px rgba(0,0,0,0.1); color: var(--white); text-align: left; }
.dummy-book-cover.color-1 { background: linear-gradient(to bottom right, #3F51B5, #1A237E); }
.dummy-book-cover.color-2 { background: linear-gradient(to bottom right, #009688, #004D40); }
.dummy-book-cover strong { font-size: 24px; font-weight: 900; line-height: 1.1; margin-bottom: 8px; }
.dummy-book-cover span { font-size: 12px; opacity: 0.8; }

.dummy-vod-cover { width: 100%; height: 100%; background: url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?ixlib=rb-4.0.3&auto=format&fit=crop&w=500&q=80') center/cover; position: relative; color: white; display:flex; flex-direction: column; justify-content:center; align-items:center; text-align:center;}
.dummy-vod-cover::before { content: ''; position:absolute; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.6); }
.dummy-vod-cover > * { position: relative; z-index: 1; }
.vod-icon { font-size: 40px; color: var(--orange); margin-bottom: 12px; }
.dummy-vod-cover strong { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.dummy-vod-cover span { font-size: 13px; }

.dummy-package-cover { width: 220px; height: 200px; background: linear-gradient(135deg, #F44336, #B71C1C); border-radius: 12px; padding: 20px; display:flex; flex-direction: column; justify-content:center; color: white; text-align:center; box-shadow: 0 10px 20px rgba(0,0,0,0.2);}
.dummy-package-cover strong { font-size: 26px; font-weight: 900; margin-bottom: 8px; }

.product-info .cat { font-size: 12px; color: var(--gray-700); }
.product-info h4 { font-size: 15px; font-weight: 600; line-height: 1.4; margin: 4px 0 8px; color: var(--gray-900); }
.rating { font-size: 13px; color: var(--gray-700); margin-bottom: 8px; }
.color-yellow { color: var(--orange); }
.price-wrap { display: flex; align-items: baseline; gap: 8px; }
.discount { color: var(--red); font-size: 16px; font-weight: 800; }
.price { font-size: 18px; font-weight: 800; color: var(--navy); }
.price small { font-size: 14px; font-weight: 600; }

/* --- VIP Lounge --- */
.lounge-header { text-align: center; margin-bottom: 40px; }
.lounge-header h3 { font-size: 28px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.lounge-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.lounge-box { background: var(--white); border-radius: 16px; padding: 30px; border: 1px solid var(--gray-200); }
.box-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--gray-100);}
.box-head h4 { font-size: 18px; font-weight: 700; color: var(--gray-900); }
.more-btn { color: var(--gray-400); }

/* Board */
.board-list li a { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--gray-200); transition: color 0.2s;}
.board-list li:last-child a { border-bottom: none; }
.board-list li a:hover { color: var(--orange); }
.bd-title { font-size: 15px; display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag { font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.tag-red { background: #FFEBEE; color: #D32F2F; }
.tag-blue { background: #E3F2FD; color: #1976D2; }
.tag-gray { background: var(--gray-200); color: var(--gray-700); }
.bd-date { font-size: 13px; color: var(--gray-400); min-width: 40px; text-align: right;}

/* Live Card */
.live-card { background: #F8BBD0; background: linear-gradient(135deg, rgba(63, 81, 181, 0.1) 0%, rgba(26, 35, 126, 0.05) 100%); border-radius: 12px; padding: 24px; border: 1px solid rgba(63, 81, 181, 0.2); }
.live-status { display: inline-flex; align-items: center; gap: 6px; background: rgba(229, 57, 53, 0.1); color: var(--red); font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 20px; margin-bottom: 12px; }
.pulse { width: 8px; height: 8px; background: var(--red); border-radius: 50%; box-shadow: 0 0 0 rgba(229,57,53, 0.4); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(229,57,53, 0.4); } 70% { box-shadow: 0 0 0 6px rgba(229,57,53, 0); } 100% { box-shadow: 0 0 0 0 rgba(229,57,53, 0); } }
.live-card h5 { font-size: 18px; font-weight: 800; color: var(--navy); line-height: 1.4; margin-bottom: 8px; }
.live-card p { font-size: 14px; color: var(--gray-700); }
.btn-full { width: 100%; padding: 12px; border-radius: 8px; font-weight: 700; font-size: 14px; }
.btn-outline-indigo { border: 1px solid var(--indigo); color: var(--indigo); transition: background 0.2s; }
.btn-outline-indigo:hover { background: var(--indigo); color: var(--white); }

/* --- B2B Dashboard View --- */
.b2b-stat-grid.row { display: flex; gap: 20px; }
.col { flex: 1; }
.stat-card { background: rgba(255,255,255,0.1); padding: 24px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.2); backdrop-filter: blur(10px); }
.stat-label { display: block; font-size: 14px; opacity: 0.8; margin-bottom: 8px; }
.stat-value { font-size: 16px; }
.stat-value strong { font-size: 32px; font-weight: 900; color: var(--orange-light); }
.trend.up { color: #4CAF50; font-size: 14px; font-weight: 700; margin-left: 8px; }
.btn-lg { padding: 12px 24px; font-size: 16px; border-radius: 8px; }

/* B2B Problem Bank */
.bank-layout { display: grid; grid-template-columns: 240px 1fr 300px; gap: 24px; }
.filter-box { margin-bottom: 24px; }
.filter-box h5 { font-size: 15px; font-weight: 700; margin-bottom: 12px; color: var(--navy); border-bottom: 1px solid var(--gray-200); padding-bottom: 8px;}
.filter-box label { display: block; font-size: 14px; margin-bottom: 8px; cursor: pointer; color: var(--gray-700); }
.filter-box input[type="checkbox"] { margin-right: 8px; accent-color: var(--indigo); }
.btn-indigo { background: var(--indigo); color: var(--white); }

.list-tools select { padding: 6px 12px; border: 1px solid var(--gray-200); border-radius: 6px; outline: none; }
.prob-item { background: var(--white); border: 1px solid var(--gray-200); border-radius: 12px; padding: 20px; margin-bottom: 16px; transition: border-color 0.2s; }
.prob-item:hover { border-color: var(--indigo); }
.prob-meta { margin-bottom: 12px; font-size: 12px; font-weight: 700; }
.diff { padding: 2px 8px; border-radius: 4px; }
.diff-hard { background: #FFEBEE; color: #D32F2F; }
.diff-mid { background: #FFF3E0; color: #F57C00; }
.prob-content p { font-size: 14px; color: var(--gray-900); margin-bottom: 8px; font-weight: 600; }
.prob-content .prob-eng { font-weight: 400; color: var(--gray-700); line-height: 1.6; }
.prob-actions { margin-top: 16px; border-top: 1px dashed var(--gray-200); padding-top: 16px; }
.btn-sm { padding: 8px 16px; font-size: 13px; font-weight: 600; border-radius: 6px; margin-left: 8px; }
.btn-outline-gray { border: 1px solid var(--gray-400); color: var(--gray-700); }
.btn-outline-gray:hover { background: var(--gray-100); }

.bank-cart { background: var(--gray-100); border-radius: 12px; padding: 20px; position: sticky; top: 90px; height: fit-content; }
.cart-head h4 { font-size: 16px; font-weight: 700; color: var(--navy); }
.badge-round { background: var(--orange); color: var(--white); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 20px; }
.cart-body { margin-top: 20px; max-height: 300px; overflow-y: auto; }
.cart-items li { font-size: 13px; color: var(--gray-700); padding: 8px 0; border-bottom: 1px dashed var(--gray-200); display: flex; justify-content: space-between; align-items: center; }
.cart-items li i { color: var(--gray-400); cursor: pointer; }
.cart-items li i:hover { color: var(--red); }
.cart-items li.more-text { color: var(--indigo); font-weight: 700; border: none; justify-content: center; margin-top: 8px; }
.btn-orange { background: var(--orange); color: var(--white); }

/* --- Footer --- */
footer { background: var(--navy); color: var(--white); padding: 40px 0; font-size: 14px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 30px;}
.footer-logo { font-size: 24px; font-weight: 900; letter-spacing: -1px; }
.footer-logo .dot { color: var(--orange); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: rgba(255,255,255,0.7); }
.footer-links a:hover { color: var(--white); }
.footer-info p { color: rgba(255,255,255,0.5); margin-bottom: 8px; }
.copyright { margin-top: 24px; font-size: 13px; }

/* --- Unified Global Header --- */
.header-top-bar { background: #f0f2f5; padding: 5px 0; font-size: 12px; color: #666; border-bottom: 1px solid #e0e0e0; }
.target-switch { display: inline-flex; background: #e0e4e8; border-radius: 20px; overflow: hidden; }
.target-switch a { padding: 4px 15px; color: #555; text-decoration: none; font-weight: bold; transition: 0.2s; }
.target-switch a.active { background: #111; color: white; }

.main-gnb { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; }
.main-gnb .logo h1 { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 28px; color: #111; margin: 0; letter-spacing: -1px; }
.main-gnb .logo .dot { color: #E91E63; }
.gnb-links { display: flex; gap: 35px; align-items: center; margin: 0; padding: 0; }
.gnb-links a { color: #333; font-size: 16px; font-weight: 800; font-family: 'Pretendard', sans-serif; text-decoration: none; transition: 0.2s; }
.gnb-links a:hover { color: #E91E63; }
.header-utils { display: flex; gap: 15px; align-items: center; font-size: 20px; color: #333; }
