/*
Theme Name: Daypu Modern Portal
Author: Daypu UI Team
Description: Modern, High-Performance Price Comparison Theme
Version: 2.0.3
*/

:root {
    --primary: #FF7A00;
    --primary-soft: #FFF5EB;
    --secondary: #1A202C;
    --text-main: #2D3748;
    --text-muted: #718096;
    --bg-body: #F7FAFC;
    --white: #FFFFFF;
    --border: #E2E8F0;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--bg-body); color: var(--text-main); line-height: 1.5; }
a { text-decoration: none; color: inherit; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; width: 100%; }

/* Header & Logo */
header { background: var(--white); height: 72px; display: flex; align-items: center; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 1000; }
.logo-wrapper { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 900; color: var(--secondary); letter-spacing: -0.5px; }
.logo-icon { background: var(--primary); color: white; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 10px; font-style: normal; font-size: 20px; box-shadow: 0 4px 10px rgba(255, 122, 0, 0.3); }

/* Navigation */
.daypu-nav ul { list-style: none; display: flex; gap: 24px; }
.daypu-nav a { font-size: 14px; font-weight: 600; color: var(--text-main); }
.daypu-nav a:hover { color: var(--primary); }

/* Hero Section */
.hero { background: var(--white); padding: 80px 0; text-align: center; border-bottom: 1px solid var(--border); position: relative; }
.hero h1 { font-size: 48px; font-weight: 900; color: var(--secondary); margin-bottom: 8px; }
.hero .slogan { font-size: 14px; font-weight: 700; color: var(--primary); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 24px; display: block; }
.hero p { font-size: 18px; color: var(--text-muted); margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; }

.search-container { background: var(--white); padding: 8px; border-radius: 100px; display: flex; box-shadow: var(--shadow-lg); border: 1px solid var(--border); max-width: 700px; margin: 0 auto; }
.search-input { flex: 1; border: none; padding: 0 24px; font-size: 16px; outline: none; border-radius: 100px; }
.search-btn { background: var(--primary); color: var(--white); border: none; padding: 14px 32px; border-radius: 100px; font-weight: 700; cursor: pointer; }

/* Grid & Cards */
.section-header { margin: 60px 0 24px; display: flex; justify-content: space-between; align-items: center; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; width: 100%; }

.p-card { background: var(--white); border-radius: 24px; padding: 24px; border: 1px solid var(--border); transition: 0.3s ease; display: flex; flex-direction: column; position: relative; height: 100%; min-height: 220px; overflow: hidden; }
.p-card:hover { transform: translateY(-8px); border-color: var(--primary); box-shadow: var(--shadow-lg); }
.p-badge { position: absolute; top: 16px; right: 16px; background: #2ecc71; color: white; padding: 4px 10px; border-radius: 100px; font-size: 12px; font-weight: 800; z-index: 2; }
.p-host { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; margin-bottom: 12px; }

.p-title { font-size: 15px; font-weight: 700; color: var(--secondary); margin-bottom: 16px; height: 44px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.4; width: 100%; }

.p-price-wrap { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 10px; }
.p-price { font-size: 22px; font-weight: 900; color: var(--primary); }
.p-old-price { font-size: 14px; text-decoration: line-through; color: var(--text-muted); opacity: 0.6; }
.p-btn { margin-top: 16px; background: var(--primary-soft); color: var(--primary); text-align: center; padding: 12px; border-radius: 12px; font-weight: 700; font-size: 13px; }

/* Deal Bars V103 Ultra Fix */
.side-panel { background: var(--white); padding: 32px; border-radius: 24px; border: 1px solid var(--border); box-shadow: var(--shadow); height: 100%; overflow: hidden; width: 100%; display: flex; flex-direction: column; }
.side-panel h3 { font-size: 18px; margin-bottom: 24px; display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--secondary); }

.deal-row { background: var(--white); border-radius: 12px; padding: 14px 16px; border: 1px solid var(--border); display: flex; align-items: center; gap: 12px; margin-bottom: 8px; transition: 0.2s; width: 100%; min-width: 0; overflow: hidden; }
.deal-row:hover { border-color: var(--primary); transform: translateX(5px); box-shadow: var(--shadow); }
.deal-icon { width: 32px; height: 32px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--primary-soft); border-radius: 8px; font-size: 16px; }

.deal-info { flex: 1; min-width: 0; overflow: hidden; display: flex; flex-direction: column; }
.deal-info .t { font-size: 13px; font-weight: 700; color: var(--secondary); display: block; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deal-info .p { font-size: 14px; font-weight: 800; color: var(--primary); margin-top: 2px; }
.drop-badge-small { background: #e8f5e9; color: #2ecc71; padding: 4px 8px; border-radius: 6px; font-size: 11px; font-weight: 800; flex-shrink: 0; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.faq-item { background: var(--white); padding: 32px; border-radius: 20px; border: 1px solid var(--border); text-align: left; }

footer { background: var(--secondary); color: #8892B0; padding: 60px 0; margin-top: 100px; text-align: center; }
