/* HairNote Full-Width Responsive Luxury System */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=Noto+Sans+KR:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --brand-emerald: #059669;
    --brand-emerald-dark: #047857;
    --brand-emerald-glow: rgba(5, 150, 105, 0.18);
    
    --brand-teal: #0d9488;
    --brand-mint: #d1fae5;
    
    --brand-gold: #f59e0b;
    --brand-gold-glow: rgba(245, 158, 11, 0.15);
    
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50:  #f8fafc;
    
    --ewg-green: #10b981;
    --ewg-yellow: #f59e0b;
    --ewg-red: #f43f5e;
    
    --shadow-subtle: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
    --shadow-card: 0 10px 30px -4px rgba(15, 23, 42, 0.08);
    --shadow-float: 0 20px 40px -6px rgba(15, 23, 42, 0.16);
    
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

/* OVERRIDE ALL WORDPRESS THEME CONTAINER LIMITATIONS TO ALLOW 100% FULL-WIDTH VIEWPORT */
#page, 
#content, 
.site-content, 
#primary, 
#main, 
.site-main, 
.entry-content, 
.entry-content > *,
article {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Hide WP Default Header/Footer on the HairNote page if needed for pure app feel */
.site-header:not(.hn-header), 
.site-footer {
    display: none !important;
}

/* Base Wrapper */
#hairnote-app-container {
    font-family: 'Noto Sans KR', 'Plus Jakarta Sans', sans-serif;
    color: var(--slate-900);
    background: #f8fafc;
    min-height: 100vh;
    width: 100% !important;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

#hairnote-app-container * {
    box-sizing: border-box;
}

/* Full Width Viewport Container */
.hn-app-viewport {
    width: 100% !important;
    max-width: 100% !important;
    background-color: #f8fafc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* Header Span 100% */
.hn-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 16px 5%;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    position: sticky;
    top: 0;
    z-index: 100;
}

.hn-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hn-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hn-brand-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 900;
    font-size: 28px;
    background: linear-gradient(135deg, var(--brand-emerald) 0%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hn-header-chip {
    font-size: 11px;
    font-weight: 800;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.hn-header-actions {
    display: flex;
    gap: 12px;
    color: var(--slate-700);
}

.hn-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--slate-100);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s ease;
}

.hn-icon-btn:hover {
    background-color: #e2e8f0;
    transform: scale(1.05);
}

/* Full Width Search Bar */
.hn-search-wrapper {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

.hn-search-input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--slate-200);
    background-color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: var(--slate-900);
    box-shadow: var(--shadow-subtle);
}

.hn-search-input:focus {
    outline: none;
    border-color: var(--brand-emerald);
    box-shadow: 0 0 0 4px var(--brand-emerald-glow);
}

.hn-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate-400);
    font-size: 16px;
    pointer-events: none;
}

/* Full-Width Tab Bar */
.hn-tab-bar {
    display: flex;
    justify-content: center;
    padding: 12px 5%;
    gap: 12px;
    background-color: #ffffff;
    border-bottom: 1px solid var(--slate-200);
    position: sticky;
    top: 120px;
    z-index: 99;
}

.hn-tab-inner {
    max-width: 1280px;
    width: 100%;
    display: flex;
    gap: 10px;
}

.hn-tab-chip {
    flex: 1;
    text-align: center;
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 700;
    color: var(--slate-600);
    background-color: var(--slate-100);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.hn-tab-chip.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-emerald) 0%, var(--brand-teal) 100%);
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
}

/* Main Responsive Content Container (Max 1280px Centered, 100% Width) */
.hn-content-body {
    flex: 1;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 24px 5% 100px 5%;
}

/* Full-Width Hero Banner */
.hn-hero-banner {
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #059669 0%, #0d9488 50%, #0284c7 100%);
    padding: 32px 36px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    margin-bottom: 28px;
    box-shadow: var(--shadow-card);
}

.hn-hero-banner::after {
    content: '';
    position: absolute;
    right: -40px;
    bottom: -50px;
    width: 260px;
    height: 260px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    pointer-events: none;
}

.hn-hero-tag {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    padding: 4px 14px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.hn-hero-title {
    font-size: 26px;
    font-weight: 900;
    margin: 0 0 10px 0;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.hn-hero-desc {
    font-size: 14px;
    opacity: 0.95;
    margin-bottom: 20px;
    max-width: 600px;
    line-height: 1.6;
}

.hn-hero-btn {
    background-color: #ffffff;
    color: var(--brand-emerald-dark);
    border: none;
    border-radius: 14px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    transition: transform 0.2s ease;
}

.hn-hero-btn:hover {
    transform: translateY(-2px) scale(1.02);
}

/* Multi-Column Desktop Responsive Product Grid */
.hn-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 20px;
}

/* Sleek Responsive Cards */
.hn-card {
    background-color: #ffffff;
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 0;
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-card);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hn-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-float);
    border-color: rgba(5, 150, 105, 0.3);
}

/* Product Card Layout */
.hn-product-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    cursor: pointer;
    height: 100%;
}

.hn-product-thumb {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    border: 1px solid var(--slate-200);
}

.hn-product-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hn-product-brand {
    font-size: 11.5px;
    font-weight: 800;
    color: var(--brand-emerald);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hn-product-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--slate-900);
    margin: 4px 0 8px 0;
    line-height: 1.35;
}

.hn-tag-group {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.hn-tag-badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 700;
}

.hn-tag-oily { background-color: #e0f2fe; color: #0284c7; }
.hn-tag-dry { background-color: #fef3c7; color: #d97706; }
.hn-tag-sensitive { background-color: #dcfce7; color: #15803d; }
.hn-tag-hairloss { background-color: #fae8ff; color: #c026d3; }

.hn-score-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--slate-100);
}

.hn-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 800;
    color: var(--brand-gold);
}

.hn-safety-badge {
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 6px;
}

.hn-safety-badge.clean {
    background-color: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.hn-safety-badge.warning {
    background-color: #fff1f2;
    color: #e11d48;
    border: 1px solid #fecdd3;
}

/* Modal Window (Centered Dialog on Desktop) */
.hn-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.hn-sheet-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.hn-sheet-body {
    width: 100%;
    max-width: 650px;
    background-color: #ffffff;
    border-radius: 24px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px 28px;
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
}

.hn-sheet-overlay.active .hn-sheet-body {
    transform: scale(1);
}

.hn-sheet-close {
    position: absolute;
    right: 24px;
    top: 24px;
    background: var(--slate-100);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 800;
    font-size: 18px;
    color: var(--slate-600);
}

/* Buttons */
.hn-btn-primary {
    background: linear-gradient(135deg, var(--brand-emerald) 0%, var(--brand-teal) 100%);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
}

.hn-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.45);
}

.hn-btn-coupang {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(244, 63, 94, 0.35);
    transition: all 0.2s ease;
}

.hn-btn-coupang:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 18px rgba(244, 63, 94, 0.45);
}

/* Gauge Meter */
.hn-gauge-bar {
    display: flex;
    height: 14px;
    border-radius: 7px;
    overflow: hidden;
    margin: 14px 0 10px 0;
    background-color: var(--slate-200);
}

.hn-gauge-fill { height: 100%; }
.hn-gauge-green { background: linear-gradient(90deg, #34d399, #10b981); }
.hn-gauge-yellow { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.hn-gauge-red { background: linear-gradient(90deg, #fb7185, #f43f5e); }

.hn-gauge-legend {
    display: flex;
    justify-content: space-around;
    font-size: 13px;
    font-weight: 800;
    margin-top: 10px;
}

.hn-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

/* Floating Bottom Navigation Bar */
.hn-floating-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 440px;
    height: 64px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 32px;
    display: flex;
    z-index: 100;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.15);
}

.hn-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--slate-400);
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
    gap: 3px;
}

.hn-nav-item.active {
    color: var(--brand-emerald);
}

.hn-nav-icon {
    font-size: 20px;
}

/* Media Query for Mobile */
@media (max-width: 768px) {
    .hn-product-grid {
        grid-template-columns: 1fr;
    }
    .hn-product-card {
        flex-direction: row;
    }
    .hn-product-thumb {
        width: 90px;
        height: 90px;
        font-size: 38px;
    }
    .hn-sheet-overlay {
        align-items: flex-end;
        padding: 0;
    }
    .hn-sheet-body {
        border-radius: 28px 28px 0 0;
        max-width: 100%;
    }
}
