/* home.css — homepage-specific styles */
.hero{min-height:100vh;display:flex;align-items:center;position:relative;overflow:hidden;background:#000}
.hero-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}
.hero-overlay{position:absolute;inset:0;background:linear-gradient(rgba(0,0,0,0.35),rgba(0,0,0,0.5));z-index:1}
.hero::after{content:'';position:absolute;inset:0;background:linear-gradient(135deg,rgba(0,52,120,0.25) 0%,rgba(205,46,58,0.2) 100%);z-index:2;opacity:0.35;pointer-events:none}
.hero-container{max-width:1400px;margin:0 auto;padding:120px 5% 80px;display:grid;grid-template-columns:1.3fr 1fr;gap:4rem;align-items:center;position:relative;z-index:3}
.hero-content{animation:fadeInUp 1s ease forwards;color:white}
@keyframes fadeInUp{from{opacity:0;transform:translateY(40px)}to{opacity:1;transform:translateY(0)}}
.hero-greeting{font-size:1.3rem;opacity:0.9;margin-bottom:0.8rem;display:flex;align-items:center;gap:0.5rem}
.wave{display:inline-block;animation:wave 2.5s infinite;transform-origin:70% 70%}
.hero h1{font-family:'Outfit',sans-serif;font-size:clamp(2.5rem,5vw,3.8rem);font-weight:800;line-height:1.15;margin-bottom:1.5rem;text-shadow:0 4px 20px rgba(0,0,0,0.4)}
.hero h1 .highlight{background:linear-gradient(135deg,#fff 0%,#f0f0f0 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.hero-subtitle{font-size:1.15rem;opacity:0.95;margin-bottom:0.8rem;max-width:550px;line-height:1.8;text-shadow:0 2px 10px rgba(0,0,0,0.5)}
.hero-subtitle-small{font-size:1rem;opacity:0.8;margin-bottom:2.5rem}
.hero-ctas{display:flex;gap:1rem;flex-wrap:wrap}
.btn-primary{display:inline-flex;align-items:center;gap:0.5rem;background:white;color:var(--text-dark);padding:1rem 2rem;border-radius:50px;text-decoration:none;font-weight:600;transition:transform 0.3s ease,box-shadow 0.3s ease,background-color 0.3s ease;box-shadow:0 4px 20px rgba(0,0,0,0.2)}
.btn-primary:hover{transform:translateY(-3px);box-shadow:0 15px 40px rgba(0,0,0,0.3);background:var(--light)}
.btn-secondary{display:inline-flex;align-items:center;gap:0.5rem;background:transparent;color:white;padding:1rem 2rem;border-radius:50px;text-decoration:none;font-weight:600;border:2px solid white;transition:transform 0.3s ease,background-color 0.3s ease,color 0.3s ease;box-shadow:0 4px 15px rgba(0,0,0,0.2)}
.btn-secondary:hover{background:white;color:var(--text-dark);transform:translateY(-3px)}
.hero-badges{position:relative;animation:fadeInRight 1s ease 0.3s forwards;opacity:0}
@keyframes fadeInRight{from{opacity:0;transform:translateX(40px)}to{opacity:1;transform:translateX(0)}}
.badges-container{position:relative;width:100%;height:400px}
.badge{position:absolute;background:rgba(255,255,255,0.95);backdrop-filter:blur(10px);padding:1rem 1.5rem;border-radius:16px;box-shadow:0 15px 50px rgba(0,0,0,0.2);display:flex;align-items:center;gap:0.8rem;font-weight:600;animation:float 4s ease-in-out infinite}
.badge-1{top:10%;left:10%;animation-delay:0s}
.badge-2{top:30%;right:5%;animation-delay:1s}
.badge-3{bottom:25%;left:20%;animation-delay:2s}
.badge-4{bottom:-5%;right:15%;animation-delay:1.5s}
@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-15px)}}
.badge-icon{width:40px;height:40px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:1.3rem}
.badge-icon.korea{background:linear-gradient(135deg,#003478 0%,#4a90d9 100%);color:white}
.badge-icon.travel{background:linear-gradient(135deg,#ffecd2 0%,#fcb69f 100%)}
.badge-icon.food{background:linear-gradient(135deg,#ff6b6b 0%,#feca57 100%)}
.badge-icon.football{background:linear-gradient(135deg,#10ac84 0%,#1dd1a1 100%)}
.badge-text{color:var(--text-dark)}
.badge-text small{display:block;font-size:0.75rem;color:var(--text-light);font-weight:400}
/* Start Here Section */
.start-here-section{background:var(--warm-white);padding:4rem 2rem;border-top:1px solid rgba(0,0,0,0.06)}
.start-here-header{text-align:center;margin-bottom:2.5rem}
.start-here-label{display:inline-block;background:linear-gradient(135deg,rgba(0,52,120,0.08),rgba(205,46,58,0.08));color:var(--korean-blue);font-weight:700;font-size:0.9rem;padding:0.4rem 1rem;border-radius:50px;border:1px solid rgba(0,52,120,0.15);margin-bottom:0.75rem;letter-spacing:0.5px}
.start-here-header h2{font-family:'Outfit',sans-serif;font-size:clamp(1.6rem,3vw,2.2rem);font-weight:700;color:var(--primary);margin-bottom:0.5rem}
.start-here-header p{color:var(--text-light);font-size:1rem;margin:0}
.start-here-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:1.5rem;max-width:1100px;margin:0 auto}
.start-here-featured{display:flex;flex-direction:column;border-radius:20px;overflow:hidden;background:white;box-shadow:0 4px 24px rgba(0,0,0,0.08);text-decoration:none;color:inherit;transition:transform 0.3s ease,box-shadow 0.3s ease}
.start-here-featured:hover{transform:translateY(-6px);box-shadow:0 16px 48px rgba(0,0,0,0.13)}
.start-here-featured img{width:100%;height:220px;object-fit:cover}
.start-here-featured-body{padding:1.5rem;flex:1;display:flex;flex-direction:column;gap:0.5rem}
.start-here-featured-body h3{font-family:'Outfit',sans-serif;font-size:1.25rem;font-weight:700;color:var(--text-dark);line-height:1.4}
.start-here-featured-body p{font-size:0.95rem;color:var(--text-light);flex:1;line-height:1.6}
.start-here-cta{display:inline-block;color:var(--korean-red);font-weight:700;font-size:0.95rem;margin-top:0.25rem}
.start-here-list{display:flex;flex-direction:column;gap:1rem}
.start-here-item{display:flex;gap:1rem;align-items:flex-start;background:white;border-radius:16px;overflow:hidden;box-shadow:0 2px 12px rgba(0,0,0,0.06);text-decoration:none;color:inherit;transition:transform 0.25s ease,box-shadow 0.25s ease}
.start-here-item:hover{transform:translateY(-3px);box-shadow:0 8px 28px rgba(0,0,0,0.1)}
.start-here-item img{width:110px;min-width:110px;height:80px;object-fit:cover;flex-shrink:0}
.start-here-item-body{padding:0.75rem 1rem 0.75rem 0;display:flex;flex-direction:column;gap:0.3rem;justify-content:center}
.start-here-item-body h4{font-family:'Outfit',sans-serif;font-size:0.95rem;font-weight:700;color:var(--text-dark);line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.start-here-tag{font-size:0.75rem;font-weight:600;color:var(--korean-blue);background:rgba(0,52,120,0.07);padding:0.2rem 0.6rem;border-radius:50px;display:inline-block;width:fit-content}
@media (max-width:768px){.start-here-grid{grid-template-columns:1fr}.start-here-featured img{height:180px}.start-here-item img{width:90px;min-width:90px;height:68px}}
.about-preview{background:var(--light);padding:6rem 2rem}
.about-preview-container{display:grid;grid-template-columns:1.2fr 1fr;gap:4rem;align-items:center;max-width:1200px;margin:0 auto}
.about-preview-content h2{font-family:'Outfit',sans-serif;font-size:2.5rem;color:var(--primary);margin-bottom:1.5rem;line-height:1.2}
.about-preview-content .intro-text{font-size:1.25rem;color:var(--text-dark);font-weight:500;line-height:1.7;margin-bottom:1.5rem}
.about-preview-content p{color:var(--text-dark);font-size:1.1rem;margin-bottom:1.5rem;line-height:1.8}
.about-preview-korean{background:rgba(0,52,120,0.04);padding:1.5rem 2rem;border-radius:16px;border-left:4px solid var(--korean-blue);margin:2rem 0}
.about-preview-korean p{margin-bottom:0;font-size:1.05rem;line-height:1.8;color:var(--text-dark)}
.btn-read-more{display:inline-flex;align-items:center;gap:0.5rem;background:var(--korean-red);color:white;padding:1rem 2rem;border-radius:50px;text-decoration:none;font-weight:600;font-size:1.05rem;transition:transform 0.3s ease,box-shadow 0.3s ease,background-color 0.3s ease;margin-top:1.5rem;box-shadow:0 4px 15px rgba(205,46,58,0.3)}
.btn-read-more:hover{background:var(--korean-blue);transform:translateY(-2px);box-shadow:0 8px 25px rgba(0,52,120,0.4)}
.about-preview-image{width:100%;max-width:450px;margin-left:auto}
.about-preview-image img{width:100%;height:auto;border-radius:0;box-shadow:none}
.youtube-section{background:var(--warm-white);padding:6rem 2rem}
.videos-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:2rem;margin-top:3rem}
.video-card{background:white;border-radius:20px;overflow:hidden;box-shadow:0 5px 25px rgba(0,0,0,0.08);transition:transform 0.4s ease,box-shadow 0.4s ease;border:1px solid rgba(0,0,0,0.04)}
.video-card:hover{transform:translateY(-8px);box-shadow:0 20px 50px rgba(0,0,0,0.12)}
.video-thumbnail{position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;background:linear-gradient(135deg,var(--korean-blue),var(--korean-red));display:block}
.video-thumbnail img{width:100%;height:100%;object-fit:cover;transition:transform 0.4s ease}
.video-card:hover .video-thumbnail img{transform:scale(1.05)}
.video-play-btn{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:70px;height:70px;background:rgba(255,255,255,0.95);border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1.8rem;color:var(--korean-red);box-shadow:0 10px 30px rgba(0,0,0,0.3);transition:transform 0.3s ease,background-color 0.3s ease}
.video-card:hover .video-play-btn{transform:translate(-50%,-50%) scale(1.1);background:white}
.video-duration{position:absolute;bottom:10px;right:10px;background:rgba(0,0,0,0.8);color:white;padding:0.3rem 0.6rem;border-radius:4px;font-size:0.8rem;font-weight:600}
.video-info{padding:1.5rem}
.video-date{font-size:0.85rem;color:var(--text-light);margin-bottom:0.5rem}
.video-card h3{font-family:'Outfit',sans-serif;font-size:1.15rem;font-weight:700;color:var(--text-dark);line-height:1.4;margin-bottom:0.8rem;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.video-stats{display:flex;gap:1rem;font-size:0.85rem;color:var(--text-light)}
.video-stats span{display:flex;align-items:center;gap:0.3rem}
.view-more-videos{text-align:center;margin-top:3rem}
.btn-youtube{display:inline-flex;align-items:center;gap:0.6rem;background:#b91c1c;color:white;border:1px solid #7f1d1d;padding:1rem 2rem;border-radius:50px;text-decoration:none;font-weight:700;transition:transform 0.3s ease,box-shadow 0.3s ease,background-color 0.3s ease;box-shadow:0 5px 20px rgba(255,0,0,0.3)}
.btn-youtube:hover{transform:translateY(-3px);box-shadow:0 10px 35px rgba(255,0,0,0.4);background:#991b1b}
.btn-youtube:focus-visible{outline:3px solid #ffffff;outline-offset:3px}
.articles-section{background:var(--light)}
.article-card{background:white;border-radius:20px;overflow:hidden;box-shadow:0 5px 20px rgba(0,0,0,0.08);transition:transform 0.4s ease,box-shadow 0.4s ease;border:1px solid rgba(0,0,0,0.04)}
.article-card:hover{transform:translateY(-8px);box-shadow:0 20px 50px rgba(0,0,0,0.12)}
.article-image{width:100%;height:200px;overflow:hidden;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%)}
.article-image img{width:100%;height:100%;object-fit:cover;transition:transform 0.4s ease}
.article-card:hover .article-image img{transform:scale(1.05)}
.article-content{padding:1.5rem}
.article-tag{display:inline-block;padding:0.4rem 1rem;background:rgba(233,69,96,0.1);color:var(--accent);border-radius:20px;font-size:0.8rem;font-weight:600;margin-bottom:0.8rem}
.article-card h3{font-family:'Outfit',sans-serif;font-size:1.2rem;font-weight:700;color:var(--text-dark);margin-bottom:0.8rem;line-height:1.4}
.article-card p{color:var(--text-light);font-size:0.95rem;line-height:1.6;margin-bottom:1rem}
.article-meta{display:flex;justify-content:space-between;align-items:center;padding-top:1rem;border-top:1px solid rgba(0,0,0,0.06)}
.article-date{font-size:0.85rem;color:var(--text-light)}
.read-more{color:var(--korean-red);text-decoration:none;font-weight:600;font-size:0.9rem;display:inline-flex;align-items:center;gap:0.3rem;transition:color 0.3s ease}
.brands-section{background:var(--warm-white);padding:5rem 2rem}
.brands-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:2rem;margin-top:3rem}
.brand-item{background:white;padding:2rem;border-radius:16px;text-align:center;box-shadow:0 5px 20px rgba(0,0,0,0.06);transition:transform 0.3s ease,box-shadow 0.3s ease}
.brand-item:hover{transform:translateY(-5px);box-shadow:0 15px 40px rgba(0,0,0,0.1)}
.brand-logo{width:80px;height:80px;margin:0 auto 1rem;display:flex;align-items:center;justify-content:center;font-size:2.5rem;background:var(--light);border-radius:50%;overflow:hidden}
.brand-logo img{width:100%;height:100%;object-fit:cover}
.brand-item h3{font-family:'Outfit',sans-serif;font-size:1rem;font-weight:600;color:var(--text-dark);margin-bottom:0.3rem}
.brand-item p{font-size:0.85rem;color:var(--text-light)}
.affiliate-banners{max-width:800px;margin:0 auto 1rem;padding:0 2rem;display:flex;flex-wrap:wrap;gap:1rem;justify-content:center}
.affiliate-banner-link{display:block;width:200px;height:200px;flex-shrink:0;border-radius:10px;overflow:hidden;transition:opacity 0.2s ease,transform 0.2s ease;box-shadow:0 2px 12px rgba(0,0,0,0.08)}
.affiliate-banner-link:hover{opacity:0.92;transform:translateY(-2px);box-shadow:0 6px 20px rgba(0,0,0,0.13)}
.affiliate-banner-img{display:block;width:200px;height:200px;object-fit:cover;border-radius:10px}
@media (max-width:768px){.affiliate-banners{padding:0 1.5rem}.affiliate-banner-link,.affiliate-banner-img{width:150px;height:150px}}
.footer-banners{display:flex;flex-wrap:wrap;gap:1rem;justify-content:center;align-items:center;padding:1.5rem 0 0;margin-bottom:2rem;border-top:1px solid rgba(255,255,255,0.08);max-width:1200px;margin-left:auto;margin-right:auto}
.footer-banners-label{width:100%;text-align:center;font-size:0.72rem;font-weight:600;text-transform:uppercase;letter-spacing:0.1em;color:rgba(255,255,255,0.6);margin-bottom:0.25rem}
.footer-banner-link{display:block;width:185px;height:185px;flex-shrink:0;border-radius:8px;overflow:hidden;opacity:0.8;transition:opacity 0.2s ease,transform 0.2s ease}
.footer-banner-link:hover{opacity:1;transform:translateY(-2px)}
.footer-banner-img{display:block;width:185px;height:185px;object-fit:cover;border-radius:8px}
.footer-banner-placeholder{width:185px;height:185px;flex-shrink:0;border-radius:8px;border:2px dashed rgba(255,255,255,0.12);display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,0.18);font-size:1.4rem;font-weight:300;cursor:default}
.social-floating{position:fixed;right:25px;bottom:100px;display:flex;flex-direction:column;gap:10px;z-index:998}
.social-floating .social-btn{width:46px;height:46px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:white;font-size:1.2rem;text-decoration:none;transition:transform 0.3s ease,box-shadow 0.3s ease;box-shadow:0 4px 15px rgba(0,0,0,0.2)}
.social-floating .social-btn:hover{transform:translateY(-3px) scale(1.05);box-shadow:0 8px 25px rgba(0,0,0,0.3)}
.social-floating .social-btn.youtube{background:#FF0000}
.social-floating .social-btn.instagram{background:linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888)}
.social-floating .social-btn.facebook{background:#1877f2}
.social-floating .social-btn.github{background:#333}
.social-floating .social-btn.github:hover{background:#24292e}
.social-floating .social-btn.spotify{background:#1DB954}
.social-floating .social-btn.spotify:hover{background:#1aa34a}
@media (max-width:968px){.hero-container{grid-template-columns:1fr;text-align:center;padding:100px 5% 60px}.hero-badges{display:none}.hero-subtitle{margin:0 auto 0.8rem}.hero-ctas{justify-content:center}.hero-greeting{justify-content:center}.about-preview-container{grid-template-columns:1fr;gap:3rem;text-align:center}.about-preview-image{margin:0 auto}}
@media (max-width:768px),(prefers-reduced-motion:reduce){.hero::after{opacity:0.25}}
.video-card,.article-card,.brand-item{contain:layout style paint;content-visibility:auto}

/* Dark Mode — homepage */
/* ---- Sections ---- */
[data-theme="dark"] .about-preview {
    background: var(--light);
}
[data-theme="dark"] .about-preview-korean {
    background: rgba(0,52,120,0.12);
    border-left-color: #4477bb;
}
[data-theme="dark"] .youtube-section,
[data-theme="dark"] .brands-section {
    background: var(--warm-white);
}
[data-theme="dark"] .articles-section {
    background: var(--light);
}

/* ---- Cards ---- */
[data-theme="dark"] .article-card,
[data-theme="dark"] .video-card {
    background: #1a1a26;
    border-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .brand-item {
    background: #1a1a26;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}
[data-theme="dark"] .brand-logo {
    background: #232330;
}
[data-theme="dark"] .value-card {
    background: #1a1a26;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}
/* Hero badges */
[data-theme="dark"] .badge {
    background: rgba(20,20,32,0.92);
    color: var(--text-dark);
}

/* ---- Search + Tag Filters ---- */
[data-theme="dark"] #article-search {
    background: #1a1a26;
    border-color: rgba(255,255,255,0.1);
    color: var(--text-dark);
}
[data-theme="dark"] #article-search:focus {
    border-color: #4477bb;
    box-shadow: 0 0 0 3px rgba(68,119,187,0.2);
}
[data-theme="dark"] #article-search::placeholder {
    color: #5555770;
}
[data-theme="dark"] .tag-btn {
    background: #1a1a26;
    border-color: rgba(255,255,255,0.1);
    color: var(--text-dark);
}
[data-theme="dark"] .tag-btn:hover {
    border-color: #4477bb;
    color: #88aaee;
}
[data-theme="dark"] .tag-btn.active {
    background: var(--korean-blue);
    border-color: var(--korean-blue);
    color: white;
}
[data-theme="dark"] .articles-empty-reset {
    background: var(--korean-blue);
}

/* ---- Video cards ---- */
[data-theme="dark"] .video-card h3 {
    color: var(--text-dark);
}
[data-theme="dark"] .video-info {
    background: #1a1a26;
}

/* ---- Article meta ---- */
[data-theme="dark"] .article-meta-item {
    color: var(--text-light);
}
[data-theme="dark"] .article-date {
    color: var(--text-light);
}
[data-theme="dark"] .article-card h3 a,
[data-theme="dark"] .article-card h3 {
    color: var(--text-dark);
}
[data-theme="dark"] .article-card p {
    color: var(--text-light);
}
[data-theme="dark"] .article-card .article-tag {
    background: rgba(255,107,138,0.12);
    color: var(--accent);
}
[data-theme="dark"] .article-card .article-meta {
    border-top-color: rgba(255,255,255,0.07);
}


/* ========================================
   Search + Tag Filtering
   ======================================== */
.articles-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}
.articles-search {
    position: relative;
    max-width: 480px;
}
.articles-search .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.1em;
    height: 1.1em;
    color: var(--text-light);
    pointer-events: none;
}
#article-search {
    width: 100%;
    padding: 0.75rem 2.8rem 0.75rem 2.75rem;
    border: 2px solid rgba(0,0,0,0.09);
    border-radius: 50px;
    font-size: 0.95rem;
    font-family: 'Noto Sans Thai','Outfit',sans-serif;
    background: white;
    color: var(--text-dark);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    outline: none;
}
#article-search:focus {
    border-color: var(--korean-blue);
    box-shadow: 0 0 0 3px rgba(0,52,120,0.1);
}
#article-search::placeholder { color: var(--text-light); }
.search-clear {
    position: absolute;
    right: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.2rem 0.3rem;
    line-height: 1;
    transition: color 0.2s ease;
}
.search-clear:hover { color: var(--korean-red); }

.tag-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.tag-btn {
    padding: 0.4rem 1rem;
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 50px;
    background: white;
    color: var(--text-dark);
    font-size: 0.82rem;
    font-weight: 600;
    font-family: 'Noto Sans Thai','Outfit',sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.tag-btn:hover {
    border-color: var(--korean-blue);
    color: var(--korean-blue);
}
.tag-btn.active {
    background: var(--korean-blue);
    border-color: var(--korean-blue);
    color: white;
    box-shadow: 0 3px 10px rgba(0,52,120,0.25);
}

.articles-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}
.articles-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.articles-empty p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}
.articles-empty-reset {
    display: inline-flex;
    padding: 0.6rem 1.5rem;
    background: var(--korean-blue);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Noto Sans Thai','Outfit',sans-serif;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
.articles-empty-reset:hover {
    background: var(--korean-red);
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .articles-search { max-width: 100%; }
    .tag-btn { font-size: 0.78rem; padding: 0.35rem 0.85rem; }
}
