/* ===== SSD Guide 2026 - Frontend Styles ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; background: #fafafa; color: #222; line-height: 1.6; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== HEADER ===== */
.site-header { background: linear-gradient(135deg, #0f0c29, #1a1a2e, #24243e); color: #fff; padding: 15px 0; position: sticky; top: 0; z-index: 100; transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.3); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.logo { color: #fff; text-decoration: none; display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.08); padding: 6px 16px 6px 12px; border-radius: 10px; backdrop-filter: blur(4px); }
.logo-icon { width: 36px; height: 36px; flex-shrink: 0; }
.logo-text { font-size: 22px; font-weight: 800; letter-spacing: -.3px; }
.logo-text span { color: #64ffda; }

.main-nav { display: flex; gap: 20px; align-items: center; }

.header-search { display: flex; align-items: center; }
.header-search input { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 6px; padding: 6px 12px; color: #fff; font-size: 13px; width: 160px; transition: all .2s; }
.header-search input:focus { outline: none; background: rgba(255,255,255,.15); border-color: #64ffda; width: 200px; }
.header-search input::placeholder { color: rgba(255,255,255,.4); }
.main-nav > a { color: #ccc; text-decoration: none; font-size: 14px; transition: color .2s; }
.main-nav > a:hover { color: #64ffda; }

.nav-drop { position: relative; }
.drop-trigger { color: #ccc; text-decoration: none; font-size: 14px; cursor: pointer; }
.drop-trigger:hover { color: #64ffda; }
.drop-menu { display: none; position: absolute; top: 100%; left: 0; background: #1a1a2e; min-width: 180px; padding: 8px 0; border-radius: 0 0 8px 8px; z-index: 50; }
.nav-drop:hover .drop-menu { display: block; }
.drop-menu a { display: block; padding: 8px 16px; color: #ccc; text-decoration: none; font-size: 13px; }
.drop-menu a:hover { color: #64ffda; background: rgba(255,255,255,.05); }

.menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }

/* ===== MAIN ===== */
main { padding: 30px 0; min-height: 60vh; }

/* Hero */
.hero { text-align: center; padding: 70px 30px 60px; border-radius: 14px; margin-bottom: 40px; position: relative; overflow: hidden; background: linear-gradient(135deg, #667eea08, #764ba208), radial-gradient(circle at 20% 80%, rgba(100,255,218,.06) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(100,100,255,.06) 0%, transparent 50%), linear-gradient(135deg, #f0f4ff, #fff); }
.hero:before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 25px 25px, rgba(100,255,218,.08) 1px, transparent 1px); background-size: 40px 40px; pointer-events: none; }
.hero:after { content: ''; position: absolute; bottom: -30px; right: -30px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(100,255,218,.04) 0%, transparent 70%); pointer-events: none; }
.hero h1 { font-size: 34px; margin-bottom: 12px; color: #1a1a2e; position: relative; }
.hero p { color: #666; max-width: 700px; margin: 0 auto; font-size: 16px; line-height: 1.7; position: relative; }

/* Section */
.section { margin-bottom: 40px; }
.section h2 { font-size: 22px; margin-bottom: 15px; color: #1a1a2e; border-bottom: 2px solid #64ffda; padding-bottom: 8px; display: inline-block; }

/* Breadcrumb */
.breadcrumb { font-size: 13px; color: #888; margin-bottom: 20px; }
.breadcrumb a { color: #1565c0; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: #333; }

.page-desc { color: #555; max-width: 800px; margin-bottom: 25px; font-size: 15px; line-height: 1.7; }

/* ===== GRIDS ===== */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin: 15px 0; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 15px 0; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin: 15px 0; }

/* ===== CARDS ===== */
.quick-card { display: block; background: #fff; padding: 20px; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.06); text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.quick-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.quick-card h3 { font-size: 16px; color: #1a1a2e; }
.quick-card span { font-size: 13px; color: #888; }

.ranking-card { display: block; background: linear-gradient(135deg, #1a1a2e, #24243e); padding: 24px; border-radius: 10px; text-decoration: none; color: #fff; transition: transform .2s; }
.ranking-card:hover { transform: translateY(-2px); }
.ranking-card h3 { font-size: 16px; color: #64ffda; margin-bottom: 8px; }
.ranking-card p { font-size: 13px; color: #aaa; }

.product-card { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.06); transition: transform .2s, box-shadow .2s; position: relative; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.product-card.featured { border: 2px solid #64ffda; }

.card-visual { width: 100%; height: 100px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(135deg, #f8f9fa, #e9ecef); position: relative; }
.card-brand { position: absolute; bottom: 4px; left: 8px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #999; }
.product-img { height: 80px; width: auto; max-width: 90%; object-fit: contain; }
.drive-icon { width: 80px; height: 55px; }
.drive-svg { width: 100%; height: 100%; }

.card-body { padding: 10px 12px; }
.card-type-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #aaa; margin-bottom: 2px; }
.card-title { font-size: 14px; color: #1a1a2e; line-height: 1.3; margin-bottom: 2px; }
.card-capacity { font-size: 12px; color: #888; margin: 2px 0; }
.card-specs { font-size: 11px; color: #888; }
.card-specs .sep { margin: 0 3px; color: #ddd; }

.card-speeds { padding: 4px 0; font-size: 12px; color: #444; }
.speed-label { font-weight: 600; color: #888; font-size: 10px; text-transform: uppercase; margin-right: 2px; }
.speed-label + .speed-label { margin-left: 8px; }

.price-tier { display: inline-block; margin: 2px 0; padding: 2px 8px; border-radius: 4px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.tier-budget { background: #e8f5e9; color: #2e7d32; }
.tier-mid { background: #fff3e0; color: #e65100; }
.tier-premium { background: #e3f2fd; color: #1565c0; }

.card-actions { display: flex; gap: 6px; margin-top: auto; padding-top: 8px; }
.btn-details, .btn-amazon { display: inline-block; padding: 8px 14px; border-radius: 6px; text-decoration: none; font-size: 13px; font-weight: 600; transition: opacity .2s; }
.btn-details { background: #f0f0f0; color: #333; }
.btn-details:hover { opacity: .8; }
.btn-amazon { background: #ffd814; color: #111; }
.btn-amazon:hover { opacity: .85; }
.btn-large { padding: 12px 24px; font-size: 15px; }

/* ===== RANKING LIST ===== */
.ranking-list { display: flex; flex-direction: column; gap: 20px; }
.ranking-item { display: flex; gap: 20px; background: #fff; padding: 20px; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.rank-number { font-size: 28px; font-weight: 800; color: #64ffda; background: #1a1a2e; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 8px; flex-shrink: 0; }
.rank-content h2 { font-size: 18px; margin-bottom: 4px; }
.rank-meta { font-size: 13px; color: #888; margin-bottom: 8px; }
.rank-comment { color: #555; font-size: 14px; margin: 8px 0; line-height: 1.6; }
.rank-content .card-actions { padding-left: 0; }

/* ===== PRODUCT DETAIL ===== */
.product-detail { background: #fff; border-radius: 10px; padding: 24px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.detail-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.detail-header h1 { font-size: 24px; }

.spec-table { width: 100%; max-width: 600px; border-collapse: collapse; }
.spec-table tr { border-bottom: 1px solid #f0f0f0; }
.spec-table td { padding: 10px 14px; font-size: 14px; }
.spec-table td:first-child { font-weight: 600; color: #888; width: 160px; }

.detail-desc { margin: 20px 0; }
.detail-desc h2 { font-size: 18px; margin-bottom: 10px; }
.detail-desc p { color: #444; line-height: 1.8; max-width: 800px; }

.detail-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 20px; }
.faq-item { background: #fff; padding: 20px; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.faq-item h3 { font-size: 16px; color: #1a1a2e; margin-bottom: 8px; }
.faq-item p { color: #444; line-height: 1.7; }

/* ===== COMPARE ===== */
.compare-tool { background: #fff; padding: 24px; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.compare-select input { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; }
.compare-select input:focus { outline: none; border-color: #64ffda; }
.compare-selectors { display: flex; gap: 15px; align-items: flex-end; margin-bottom: 20px; flex-wrap: wrap; }
.compare-select { flex: 1; min-width: 200px; }
.compare-select label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; color: #555; }
.compare-select select { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; }
.compare-vs { font-size: 20px; font-weight: 800; color: #888; padding: 8px 0; }

.compare-table { width: 100%; border-collapse: collapse; margin-top: 15px; }
.compare-table th { background: #1a1a2e; color: #fff; padding: 10px 14px; text-align: left; font-size: 13px; }
.compare-table td { padding: 10px 14px; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
.compare-table td:first-child { font-weight: 600; color: #888; width: 140px; }

/* ===== FILTER SIDEBAR ===== */
.filter-sidebar { background: #fff; padding: 16px; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.06); margin-bottom: 20px; display: flex; gap: 15px; align-items: flex-end; flex-wrap: wrap; }
.filter-sidebar h3 { font-size: 14px; color: #1a1a2e; width: 100%; margin-bottom: 0; }
.filter-group { display: flex; flex-direction: column; }
.filter-group label { font-size: 11px; font-weight: 600; color: #888; margin-bottom: 2px; }
.filter-group select { padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 13px; background: #fff; }

/* ===== SIDEBAR HOT ===== */
.sidebar-hot { background: #1a1a2e; color: #fff; padding: 30px 0; }
.sidebar-hot h3 { font-size: 18px; color: #64ffda; margin-bottom: 15px; }
.hot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }

/* ===== BENCHMARK ===== */
.detail-benchmark { margin: 20px 0; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px; padding: 20px; }
.detail-benchmark h2 { font-size: 16px; margin-bottom: 4px; color: #166534; }
.benchmark-note { font-size: 12px; color: #888; margin-bottom: 12px; }
.detail-benchmark .spec-table { max-width: 500px; }
.detail-benchmark .spec-table td:first-child { color: #166534; }

/* ===== FOOTER ===== */
.site-footer { background: #0f0c29; color: #888; padding: 30px 0; font-size: 13px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 12px; }
.footer-links a { color: #aaa; text-decoration: none; }
.footer-links a:hover { color: #64ffda; }
.footer-disclaimer { line-height: 1.6; max-width: 800px; }
.footer-copy { margin-top: 8px; color: #666; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #1a1a2e; flex-direction: column; padding: 20px; }
    .nav-open .main-nav { display: flex; }
    .nav-drop .drop-menu { position: static; display: none; }
    .nav-drop:hover .drop-menu { display: none; }
    .nav-open .nav-drop .drop-menu { display: block; }
    
    .hero h1 { font-size: 24px; }
    .hero { padding: 40px 20px; }
    .grid-3, .grid-4, .product-grid { grid-template-columns: 1fr; }
    .ranking-item { flex-direction: column; }
    .rank-number { width: 40px; height: 40px; font-size: 22px; }
    .detail-header { flex-direction: column; align-items: flex-start; }
    .compare-selectors { flex-direction: column; }
    .filter-sidebar { flex-direction: column; }
    .header-search input { width: 100px; }
    .header-search input:focus { width: 140px; }
}

@media (max-width: 480px) {
    .header-search { display: none; }
}

@media (max-width: 480px) {
    .container { padding: 0 12px; }
    .hero h1 { font-size: 20px; }
    .card-actions { flex-direction: column; }
    .card-actions a { text-align: center; }
    .detail-actions { flex-direction: column; }
    .detail-actions a { text-align: center; }
}

/* ===== VISUAL ENHANCEMENTS ===== */
.section-alt { background: linear-gradient(135deg, #f8f9fa, #e9ecef); border-radius: 12px; padding: 24px; margin: 30px 0; position: relative; }
.section-alt:before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 20px 20px, rgba(0,0,0,.02) 1px, transparent 1px); background-size: 30px 30px; pointer-events: none; border-radius: 12px; }

/* Ranking card with more visual depth */
.ranking-item { position: relative; overflow: hidden; }
.ranking-item:before { content: ''; position: absolute; top: 0; right: 0; width: 120px; height: 120px; background: radial-gradient(circle, rgba(100,255,218,.04) 0%, transparent 70%); pointer-events: none; }

/* Spec visual bars */
.spec-bar-container { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.spec-bar-label { font-size: 12px; color: #888; min-width: 80px; }
.spec-bar-track { flex: 1; height: 8px; background: #eee; border-radius: 4px; overflow: hidden; }
.spec-bar-fill { height: 100%; border-radius: 4px; transition: width .3s; }
.spec-bar-fill.nvme { background: linear-gradient(90deg, #64ffda, #00bfa5); }
.spec-bar-fill.sata { background: linear-gradient(90deg, #82b1ff, #448aff); }
.spec-bar-fill.hdd { background: linear-gradient(90deg, #ffab91, #ff6e40); }

/* Hero enhancement */
.hero-compact { text-align: center; padding: 40px 30px; background: linear-gradient(135deg, #667eea15, #764ba215); border-radius: 12px; margin-bottom: 30px; }
.hero-compact h1 { font-size: 26px; }
.hero-compact p { color: #888; font-size: 14px; max-width: 600px; margin: 8px auto 0; }

/* Card enhancement */
.quick-card .count { font-size: 12px; color: #aaa; margin-top: 4px; }
.ranking-card .count-badge { display: inline-block; background: rgba(100,255,218,.15); color: #64ffda; padding: 2px 8px; border-radius: 10px; font-size: 11px; margin-top: 8px; }

/* Grid enhancements */
.grid-icon-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 15px 0; }
.grid-icon-row a { display: flex; align-items: center; gap: 8px; padding: 8px 14px; background: #fff; border-radius: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.06); text-decoration: none; color: #333; font-size: 13px; transition: all .15s; }
.grid-icon-row a:hover { box-shadow: 0 2px 8px rgba(0,0,0,.1); transform: translateY(-1px); }

/* Comparison highlight rows */
.compare-highlight tr:nth-child(even) td { background: #f8f9fa; }
.compare-highlight tr:hover td { background: #e8f5e9; }

/* Section headings with accent */
.section-head { display: flex; align-items: center; gap: 10px; font-size: 18px; margin-bottom: 15px; }
.section-head:after { content: ''; flex: 1; height: 2px; background: linear-gradient(90deg, #64ffda, transparent); }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes breathe {
    0%, 100% { opacity: .4; }
    50% { opacity: .7; }
}

.product-card { animation: fadeInUp .5s ease both; }
.product-card:nth-child(1) { animation-delay: .05s; }
.product-card:nth-child(2) { animation-delay: .1s; }
.product-card:nth-child(3) { animation-delay: .15s; }
.product-card:nth-child(4) { animation-delay: .2s; }
.product-card:nth-child(5) { animation-delay: .25s; }
.product-card:nth-child(6) { animation-delay: .3s; }
.product-card:nth-child(7) { animation-delay: .35s; }
.product-card:nth-child(8) { animation-delay: .4s; }
.product-card:nth-child(9) { animation-delay: .45s; }
.product-card:nth-child(10) { animation-delay: .5s; }

.product-card:hover { transform: translateY(-4px) scale(1.02); }

.hero:after { animation: breathe 4s ease-in-out infinite; }
.hero:before { animation: breathe 6s ease-in-out infinite; animation-delay: 1s; }

/* Ranking items staggered */
.ranking-item { animation: fadeInUp .5s ease both; }
.ranking-item:nth-child(1) { animation-delay: .1s; }
.ranking-item:nth-child(2) { animation-delay: .18s; }
.ranking-item:nth-child(3) { animation-delay: .26s; }
.ranking-item:nth-child(4) { animation-delay: .34s; }
.ranking-item:nth-child(5) { animation-delay: .42s; }
.ranking-item:nth-child(6) { animation-delay: .5s; }
.ranking-item:nth-child(7) { animation-delay: .58s; }
.ranking-item:nth-child(8) { animation-delay: .66s; }
.nav-search { font-size: 16px; text-decoration: none; }
