/* ===== HOME PAGE STYLES ===== */
:root {
    --primary: #E07A3D;
    --primary-light: #F4A261;
    --dark: #1B2B4D;
    --text: #2C3E50;
    --text-light: #6B7280;
    --bg: #FDF8F3;
    --card-bg: #FFFFFF;
    --border: #E5E7EB;
}

/* ===== HERO SLIDER + SIDEBAR ===== */
main > .container {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
    overflow-x: hidden;
}

.home-container {
    overflow-x: hidden;
}

.home-showcase {
    width: min(calc(100vw - 120px), 1500px);
    margin: 24px auto 34px;
    padding: 30px 28px 34px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(234, 223, 212, 0.78);
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(27, 43, 77, 0.07);
}

.hero-slider-section {
    max-width: 100%;
    margin: 0 auto 30px;
    padding: 0;
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 28px;
    align-items: start;
}

.hero-slider {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    min-height: 420px;
    max-height: 430px;
    background: #18243d;
    box-shadow: 0 18px 44px rgba(27, 43, 77, 0.12);
}

.hero-slide {
    position: relative;
    width: 100%;
    min-height: 420px;
    max-height: 430px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(18, 26, 45, 0.82) 0%, rgba(18, 26, 45, 0.58) 48%, rgba(18, 26, 45, 0.24) 100%),
        linear-gradient(0deg, rgba(18, 26, 45, 0.36), transparent 58%);
    z-index: 1;
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(0.96) contrast(1.04);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 58px 64px 58px;
    max-width: 560px;
}

.hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-widget {
    background: #fff;
    border-radius: 16px;
    padding: 22px;
    border: 1px solid #eadfd4;
    box-shadow: 0 12px 34px rgba(27, 43, 77, 0.06);
}

.widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.widget-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-title i { color: var(--primary); font-size: 16px; }

.widget-more {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.widget-more:hover { color: var(--primary); }

.author-list { display: flex; flex-direction: column; gap: 16px; }
.author-list-item { display: flex; align-items: center; gap: 12px; }
.author-list-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(224,122,61,0.12); flex-shrink: 0; }
.author-list-info { flex: 1; min-width: 0; }
.author-list-name { font-size: 14px; font-weight: 600; color: var(--dark); display: flex; align-items: center; gap: 4px; }
.author-list-name .verified { color: #fbbf24; font-size: 12px; }
.author-list-meta { font-size: 12px; color: var(--text-light); margin-top: 2px; }
.btn-follow-sm { display: inline-flex; align-items: center; padding: 6px 14px; border: 1.5px solid var(--primary); border-radius: 100px; color: var(--primary); font-size: 12px; font-weight: 500; background: transparent; cursor: pointer; transition: all 0.2s; flex-shrink: 0; }
.btn-follow-sm:hover { background: var(--primary); color: #fff; }

.event-list { display: flex; flex-direction: column; gap: 14px; }
.event-list-item { display: flex; gap: 14px; align-items: flex-start; padding: 12px; border-radius: 12px; transition: background 0.2s ease; }
.event-list-item:hover { background: #fff7ed; }
.event-date { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 52px; min-height: 58px; flex-shrink: 0; background: #fff3e8; border-radius: 12px; }
.event-day { font-size: 22px; font-weight: 700; color: var(--dark); line-height: 1; }
.event-month { font-size: 11px; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }
.event-info { flex: 1; min-width: 0; }
.event-title { font-size: 14px; font-weight: 600; color: var(--dark); margin-bottom: 4px; line-height: 1.4; }
.event-meta { font-size: 12px; color: var(--text-light); display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.event-meta i { font-size: 10px; }
.event-tag { display: inline-block; padding: 3px 10px; background: rgba(224,122,61,0.1); color: var(--primary); font-size: 11px; font-weight: 500; border-radius: 6px; }

.audio-player-widget { background: #fff; color: var(--dark); display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 20px; border-color: #eadfd4; }
.audio-player-cover-wrap { width: 52px; height: 52px; border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.audio-player-cover { width: 100%; height: 100%; object-fit: cover; }
.audio-player-info { flex: 1; min-width: 0; }
.audio-player-title { font-size: 14px; font-weight: 700; color: var(--dark); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.audio-player-author { font-size: 12px; color: var(--text-light); }
.audio-player-controls { display: flex; align-items: center; gap: 8px; }
.audio-btn { width: 32px; height: 32px; border-radius: 50%; background: #fff3e8; border: none; color: var(--primary); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 11px; transition: all 0.2s; flex-shrink: 0; }
.audio-btn.play { background: var(--primary); width: 40px; height: 40px; font-size: 13px; }
.audio-btn:hover { transform: scale(1.08); background: #ffe7d3; }
.audio-btn.play:hover { background: #d4692e; }
.audio-progress-wrap { width: 100%; display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.audio-time { font-size: 11px; color: var(--text-light); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.audio-progress-bar { flex: 1; height: 4px; background: #e8edf3; border-radius: 2px; overflow: hidden; cursor: pointer; }
.audio-progress-fill { height: 100%; background: var(--primary); border-radius: 2px; transition: width 0.3s; }

.hero-badge { display: inline-block; padding: 7px 16px; border: 1px solid rgba(244, 162, 97, 0.52); border-radius: 100px; color: #F4A261; font-size: 12px; font-weight: 700; margin-bottom: 18px; background: rgba(255, 255, 255, 0.06); backdrop-filter: blur(8px); }
.hero-title { font-family: 'Playfair Display', serif; font-size: 48px; font-weight: 700; color: #fff; line-height: 1.2; margin-bottom: 16px; }
.hero-desc { font-size: 19px; color: rgba(255,255,255,0.78); line-height: 1.7; margin-bottom: 28px; max-width: 520px; }
.btn-hero-cta { display: inline-flex; align-items: center; gap: 8px; background: #E07A3D; color: #fff; font-size: 16px; font-weight: 600; padding: 18px 38px; border-radius: 100px; border: none; cursor: pointer; transition: all 0.3s ease; text-decoration: none; margin-bottom: 32px; box-shadow: 0 4px 20px rgba(224, 122, 61, 0.3); }
.btn-hero-cta:hover { background: #d4692e; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(224, 122, 61, 0.4); }
.hero-stats { display: flex; gap: 26px; }
.hero-stat { display: flex; align-items: center; gap: 10px; color: #fff; }
.hero-stat i { font-size: 20px; color: #E07A3D; opacity: 0.9; }
.hero-stat-num { font-size: 16px; font-weight: 700; color: #fff; }
.hero-stat-label { font-size: 13px; color: rgba(255,255,255,0.6); margin-left: 2px; }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.2); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.3); color: white; font-size: 18px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s; opacity: 0; }
.hero-slider:hover .hero-arrow { opacity: 1; }
.hero-arrow:hover { background: rgba(255,255,255,0.35); transform: translateY(-50%) scale(1.1); }
.hero-arrow-prev { left: 16px; }
.hero-arrow-next { right: 16px; }
.hero-dots { display: flex; align-items: center; gap: 8px; position: absolute; bottom: 22px; left: 48px; z-index: 10; }
.hero-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.34); cursor: pointer; transition: all 0.3s; border: none; padding: 0; }
.hero-dot.active { background: #E07A3D; width: 32px; border-radius: 999px; }

.poem-day-section { max-width: 1200px; margin: 0 auto 48px; padding: 0 24px; }
.poem-day-card { background: linear-gradient(135deg, #fdf6ed 0%, #f5ebe0 50%, #f0e5d8 100%); border-radius: 24px; padding: 40px 48px; position: relative; overflow: hidden; display: flex; align-items: center; gap: 40px; }
.poem-day-content { flex: 1; position: relative; z-index: 1; }
.poem-day-label { display: inline-flex; align-items: center; gap: 6px; color: #E07A3D; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px; }
.poem-day-title { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 700; color: #1B2B4D; line-height: 1.2; margin-bottom: 10px; }
.poem-day-author { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.poem-day-author img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(224,122,61,0.2); }
.poem-day-author-name { font-size: 14px; font-weight: 600; color: #1B2B4D; }
.poem-day-text { font-family: 'Playfair Display', Georgia, serif; font-size: 15px; font-style: italic; color: #5a6578; line-height: 1.8; margin-bottom: 4px; max-width: 90%; }
.poem-day-ellipsis { font-size: 18px; color: #E07A3D; margin-bottom: 20px; letter-spacing: 2px; }
.btn-poem-read { display: inline-flex; align-items: center; gap: 6px; background: transparent; color: #E07A3D; font-size: 13px; font-weight: 500; padding: 10px 24px; border-radius: 100px; border: 1.5px solid #E07A3D; cursor: pointer; transition: all 0.3s ease; text-decoration: none; width: fit-content; }
.btn-poem-read:hover { background: #E07A3D; color: #fff; transform: translateY(-2px); }
.poem-day-image { flex-shrink: 0; width: 200px; position: relative; z-index: 1; }
.poem-day-image img { width: 100%; height: auto; object-fit: contain; filter: drop-shadow(0 12px 24px rgba(27, 43, 77, 0.12)); }

.categories-bar { padding: 10px 0 0; }
.categories-bar-inner { max-width: 100%; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.category-bar-item { display: flex; align-items: center; gap: 12px; background: var(--card-bg); border: 1px solid #eadfd4; border-radius: 12px; padding: 16px 18px; transition: all 0.2s; text-decoration: none; box-shadow: 0 8px 24px rgba(27, 43, 77, 0.035); }
.category-bar-item:hover { border-color: rgba(224,122,61,0.45); box-shadow: 0 12px 28px rgba(224,122,61,0.1); }
.cat-icon { width: 46px; height: 46px; background: #fff3e8; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--primary); flex-shrink: 0; }
.cat-info { flex: 1; display: flex; flex-direction: column; }
.cat-name { font-size: 15px; font-weight: 600; color: var(--dark); }
.cat-count { font-size: 12px; color: var(--text-light); }
.cat-arrow { color: var(--primary); font-size: 12px; }

.home-container { background: var(--bg); font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; padding-bottom: 40px; }
.section-wrapper { width: min(100%, 1220px); margin: 0 auto; padding: 0 24px; overflow: hidden; }
.section { margin-top: 48px; }
.section-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-title { font-size: 18px; font-weight: 700; color: var(--dark); display: flex; align-items: center; gap: 8px; letter-spacing: 0; }
.section-title i { color: var(--primary); font-size: 16px; }
.section-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.section-more { font-size: 13px; font-weight: 600; color: var(--text-light); display: flex; align-items: center; gap: 6px; transition: all 0.2s; padding: 6px 10px; border-radius: 8px; }
.section-more:hover { color: var(--primary); }
.nav-arrows { display: flex; gap: 8px; }
.nav-arrow { width: 32px; height: 32px; border: 1px solid var(--border); background: var(--card-bg); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--text-light); cursor: pointer; transition: all 0.2s; }
.nav-arrow:hover { border-color: var(--primary); color: var(--primary); background: rgba(224, 122, 61, 0.05); }
.nav-arrow:active { transform: scale(0.95); }

.trend-grid { display: flex; gap: 20px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; padding: 0 4px 16px; scrollbar-width: none; position: relative; cursor: grab; user-select: none; -webkit-user-select: none; }
.trend-grid::-webkit-scrollbar { display: none; }
.trend-grid:active, .trend-grid.dragging { cursor: grabbing; }
.trend-grid, .horizontal-grid { position: relative; }

.scroll-container { position: relative; overflow: hidden; }
.scroll-fade-left, .scroll-fade-right { position: absolute; top: 0; bottom: 0; width: 60px; pointer-events: none; z-index: 2; opacity: 0; transition: opacity 0.3s; }
.scroll-fade-left { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.scroll-fade-right { right: 0; background: linear-gradient(to left, var(--bg), transparent); }
.scroll-container.has-more-left .scroll-fade-left, .scroll-container.has-more-right .scroll-fade-right { opacity: 1; }

.trend-card { flex: 0 0 clamp(260px, calc((100% - 60px) / 4), 300px); min-width: 0; background: var(--card-bg); border-radius: 16px; overflow: hidden; border: 1px solid var(--border); transition: all 0.3s ease; scroll-snap-align: start; }
.trend-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.1); }
.trend-image { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #f3f0ea; }
.trend-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.trend-card:hover .trend-image img { transform: scale(1.08); }
.trend-category { position: absolute; bottom: 10px; left: 10px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 7px; text-transform: none; }
.trend-body { padding: 16px; }
.trend-title { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 12px; line-height: 1.35; min-height: 44px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.trend-author { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.author-avatar-sm { width: 26px; height: 26px; border-radius: 50%; background: var(--dark); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 600; overflow: hidden; flex-shrink: 0; }
.author-avatar-sm img { width: 100%; height: 100%; object-fit: cover; }
.author-name-sm { font-size: 12px; color: var(--text-light); }
.trend-stats { display: flex; gap: 14px; font-size: 12px; color: var(--text-light); align-items: center; }
.trend-stats i { color: var(--primary); margin-right: 3px; }

.horizontal-grid { display: flex; gap: 20px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; padding: 0 4px 16px; scrollbar-width: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.horizontal-grid::-webkit-scrollbar { display: none; }
.horizontal-grid:active, .horizontal-grid.dragging { cursor: grabbing; }
.horizontal-card { flex: 0 0 clamp(280px, calc((100% - 60px) / 4), 320px); min-width: 0; display: flex; gap: 14px; background: var(--card-bg); border-radius: 16px; padding: 16px; border: 1px solid var(--border); transition: all 0.3s ease; scroll-snap-align: start; }
.horizontal-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); }
.horizontal-image { width: 96px; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; flex-shrink: 0; background: #f3f0ea; }
.horizontal-image img { width: 100%; height: 100%; object-fit: cover; }
.horizontal-content { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.horizontal-category { font-size: 10px; color: var(--primary); font-weight: 700; text-transform: none; margin-bottom: 4px; }
.horizontal-title { font-size: 14px; font-weight: 700; color: var(--dark); margin-bottom: 4px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.horizontal-author { font-size: 12px; color: var(--text-light); margin-bottom: 6px; }
.horizontal-stats { display: flex; gap: 12px; font-size: 12px; color: var(--text-light); }
.horizontal-stats i { color: var(--primary); margin-right: 3px; }

.audio-badge { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; background: rgba(224, 122, 61, 0.95); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; }
.audio-duration { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,0.7); color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 4px; }

.authors-grid { display: flex; gap: 16px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; padding: 0 4px 16px; scrollbar-width: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.authors-grid::-webkit-scrollbar { display: none; }
.authors-grid:active, .authors-grid.dragging { cursor: grabbing; }
.author-card { flex: 0 0 clamp(150px, calc((100% - 80px) / 6), 180px); background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px; padding: 20px 12px; text-align: center; transition: all 0.2s; scroll-snap-align: start; }
.author-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.author-avatar-wrap { position: relative; width: 64px; height: 64px; margin: 0 auto 12px; }
.author-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.author-online { position: absolute; bottom: 4px; right: 4px; width: 12px; height: 12px; background: #10B981; border-radius: 50%; border: 2px solid #fff; }
.author-name { font-size: 14px; font-weight: 600; color: var(--dark); margin-bottom: 4px; }
.author-followers { font-size: 12px; color: var(--text-light); margin-bottom: 12px; }
.btn-follow { display: inline-flex; align-items: center; gap: 4px; background: transparent; border: 1px solid var(--border); color: var(--primary); font-size: 12px; font-weight: 500; padding: 6px 16px; border-radius: 100px; cursor: pointer; transition: all 0.2s; }
.btn-follow:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.cta-section { background: linear-gradient(135deg, #1e3a5f 0%, #0f2744 100%); padding: 60px 0; margin-top: 64px; }
.cta-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.cta-left { display: flex; align-items: center; gap: 20px; }
.cta-icon { width: 60px; height: 60px; background: rgba(224, 122, 61, 0.2); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--primary-light); }
.cta-text h2 { font-family: 'Playfair Display', serif; font-size: 28px; color: #fff; margin-bottom: 8px; }
.cta-text p { font-size: 14px; color: rgba(255,255,255,0.7); }
.btn-cta { display: inline-flex; align-items: center; gap: 8px; background: var(--primary); color: #fff; font-size: 14px; font-weight: 600; padding: 12px 24px; border-radius: 100px; border: none; cursor: pointer; transition: all 0.2s; }
.btn-cta:hover { background: #c96a2f; transform: translateY(-2px); }

.skeleton { background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skeleton-card { background: var(--card-bg); border-radius: 16px; overflow: hidden; border: 1px solid var(--border); }
.skeleton-img { width: 100%; height: 180px; }
.skeleton-body { padding: 16px; }
.skeleton-line { height: 12px; margin-bottom: 10px; }
.skeleton-line.short { width: 60%; }
.skeleton-line.xshort { width: 40%; }

.post-badge { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 100px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; z-index: 3; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.post-badge.new { background: #10B981; color: #fff; }
.post-badge.trending { background: #EF4444; color: #fff; }
.post-badge.premium { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #1a1a2e; }
.post-badge.contest { background: #8B5CF6; color: #fff; }

.trend-card { transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease; }
.trend-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(27, 43, 77, 0.12); }
.trend-card:hover .trend-image img { transform: scale(1.08); }
.trend-image { overflow: hidden; }
.trend-image img { transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.horizontal-card { transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.horizontal-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(27, 43, 77, 0.08); border-color: var(--primary); }
.category-bar-item { transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.category-bar-item:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(224, 122, 61, 0.12); }
.poem-day-card { transition: box-shadow 0.3s ease, transform 0.3s ease; }
.poem-day-card:hover { box-shadow: 0 12px 40px rgba(27, 43, 77, 0.1); transform: translateY(-2px); }

.filter-tabs { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.filter-tab { padding: 8px 18px; border-radius: 100px; border: 1.5px solid var(--border); background: var(--card-bg); color: var(--text-light); font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.25s ease; font-family: inherit; }
.filter-tab:hover { border-color: var(--primary); color: var(--primary); }
.filter-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 4px 12px rgba(224, 122, 61, 0.25); }

.navbar-scrolled { background: rgba(255, 255, 255, 0.92) !important; backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06); padding-top: 10px !important; padding-bottom: 10px !important; transition: all 0.3s ease; }

.back-to-top { position: fixed; bottom: 28px; right: 28px; width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: #fff; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 16px; box-shadow: 0 4px 16px rgba(224, 122, 61, 0.35); opacity: 0; visibility: hidden; transform: translateY(20px); transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); z-index: 999; }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px) scale(1.08); box-shadow: 0 8px 24px rgba(224, 122, 61, 0.45); }

html { scroll-behavior: smooth; }
html { scrollbar-width: thin; scrollbar-color: rgba(224, 122, 61, 0.65) #f3eee7; }
body::-webkit-scrollbar { width: 10px; }
body::-webkit-scrollbar-track { background: #f3eee7; }
body::-webkit-scrollbar-thumb { background: rgba(224, 122, 61, 0.68); border-radius: 999px; border: 3px solid #f3eee7; }
body::-webkit-scrollbar-thumb:hover { background: rgba(203, 101, 42, 0.82); }

@media (max-width: 1024px) {
    .home-showcase { width: min(100vw - 32px, 100%); padding: 18px; margin-top: 14px; }
    .hero-slider-section { padding: 0; margin: 0 auto 22px; }
    .hero-layout { grid-template-columns: 1fr; }
    .hero-sidebar { flex-direction: row; gap: 16px; }
    .sidebar-widget { flex: 1; }
    .hero-slider { border-radius: 16px; min-height: 360px; }
    .hero-slide { min-height: 360px; }
    .hero-content { padding: 36px 32px 48px; max-width: 480px; }
    .hero-title { font-size: 32px; }
    .hero-desc { font-size: 14px; }
    .hero-stats { gap: 24px; }
    .poem-day-section { padding: 0 16px; margin-bottom: 36px; }
    .poem-day-card { padding: 32px; gap: 24px; }
    .poem-day-title { font-size: 24px; }
    .poem-day-image { width: 160px; }
    .categories-bar-inner { grid-template-columns: repeat(2, 1fr); }
    .trend-grid { gap: 16px; padding-right: 16px; }
    .trend-card { flex: 0 0 260px; }
    .horizontal-card { flex: 0 0 300px; }
    .author-card { flex-basis: 170px; }
    .cta-inner { flex-direction: column; text-align: center; gap: 24px; }
}

@media (max-width: 768px) {
    .hero-arrow { top: 34%; }
    .home-showcase { width: 100%; border-radius: 0; border-left: 0; border-right: 0; padding: 16px 14px 22px; margin: 8px auto 24px; }
    .hero-slider { border-radius: 14px; min-height: 360px; }
    .hero-slide { min-height: 360px; }
    .hero-content { padding: 28px 24px 44px; max-width: 100%; }
    .hero-title { font-size: 26px; }
    .hero-desc { font-size: 13px; margin-bottom: 20px; }
    .btn-hero-cta { padding: 12px 24px; font-size: 14px; margin-bottom: 28px; }
    .hero-stats { gap: 16px; flex-wrap: wrap; }
    .hero-stat i { font-size: 16px; }
    .hero-stat-num { font-size: 14px; }
    .hero-stat-label { font-size: 12px; }
    .hero-layout, .hero-sidebar, .sidebar-widget { min-width: 0; width: 100%; max-width: 100%; }
    .hero-sidebar { flex-direction: column; align-items: stretch; }
    .section-wrapper { padding-left: 12px; padding-right: 12px; }
    .trend-grid, .horizontal-grid, .authors-grid { max-width: 100%; padding-left: 0; padding-right: 0; }
    .trend-card { flex-basis: min(220px, 78vw); }
    .poem-day-card { flex-direction: column; padding: 28px 24px; text-align: center; }
    .poem-day-image { width: 140px; margin: 0 auto; }
    .poem-day-text { max-width: 100%; }
    .poem-day-title { font-size: 22px; }
    .poem-day-author { justify-content: center; }
    .categories-bar-inner { grid-template-columns: 1fr; }
    .trend-card { flex: 0 0 240px; }
    .horizontal-card { flex: 0 0 280px; }
    .author-card { flex-basis: 160px; }
}

/* ===== IMMERSIVE HOME HERO REFRESH OVERRIDES ===== */
.home-page header {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 500;
    background: linear-gradient(180deg, rgba(8, 12, 21, 0.58), rgba(8, 12, 21, 0));
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: none;
    backdrop-filter: blur(8px);
}
.home-page .logo,
.home-page .main-nav a,
.home-page .nav-dropdown-toggle,
.home-page .lang-switch-btn,
.home-page .notif-btn-main,
.home-page .profile-btn-main span,
.home-page .profile-btn-main i { color: #fff !important; }
.home-page .search-bar input { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.22); color: #fff; }
.home-page .search-bar input::placeholder,
.home-page .search-bar i { color: rgba(255,255,255,0.72); }
.home-page #topbar { display: none; }
.home-page main { padding-top: 0; }
.home-showcase { width: 100%; margin: 0 auto 68px; padding: 0 40px; background: #0d1320; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
.hero-slider-section { margin: 0 auto; }
.hero-layout { display: block; max-width: 1480px; margin: 0 auto; }
.hero-slider { border-radius: 0 0 26px 26px; min-height: 620px; max-height: none; background: #101725; box-shadow: 0 30px 80px rgba(9,14,25,0.2); }
.hero-slide { min-height: 620px; max-height: none; align-items: center; }
.hero-slide::before { background: linear-gradient(90deg, rgba(7,11,20,0.88) 0%, rgba(7,11,20,0.7) 42%, rgba(7,11,20,0.26) 100%), linear-gradient(0deg, rgba(7,11,20,0.32), transparent 58%); }
.hero-slide-bg { object-position: center right; filter: saturate(1.03) contrast(1.08); }
.hero-content { padding: 118px 64px 105px; max-width: 630px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-color: rgba(255,255,255,0.22); color: rgba(255,255,255,0.84); background: rgba(255,255,255,0.08); }
.hero-title { font-size: 58px; line-height: 1.08; }
.hero-desc { color: rgba(255,255,255,0.82); margin-bottom: 24px; }
.hero-search-form { display: flex; align-items: center; width: min(100%, 520px); height: 54px; padding: 6px; margin: 0 0 28px; background: rgba(255,255,255,0.95); border: 1px solid rgba(255,255,255,0.42); border-radius: 999px; box-shadow: 0 18px 42px rgba(0,0,0,0.22); }
.hero-search-form input { flex: 1; min-width: 0; height: 100%; padding: 0 18px; border: 0; outline: 0; background: transparent; color: #1B2B4D; font-size: 14px; }
.hero-search-form button { width: 42px; height: 42px; border-radius: 50%; background: #211a18; color: #fff; display: inline-flex; align-items: center; justify-content: center; transition: transform 0.2s ease, background 0.2s ease; }
.hero-search-form button:hover { transform: scale(1.05); background: var(--primary); }
.hero-sidebar { display: none !important; }
.hero-dots { bottom: 34px; left: 64px; }
.categories-bar { max-width: 1480px; margin: -30px auto 0; padding: 0 0 34px; position: relative; z-index: 5; }
.categories-bar-inner { grid-template-columns: repeat(6, minmax(0,1fr)); gap: 0; background: rgba(255,255,255,0.96); border: 1px solid rgba(234,223,212,0.92); border-radius: 16px; box-shadow: 0 24px 70px rgba(9,14,25,0.16); overflow: hidden; }
.category-bar-item { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 126px; gap: 8px; border: 0; border-right: 1px solid rgba(234,223,212,0.86); border-radius: 0; box-shadow: none; text-align: center; }
.category-bar-item:last-child { border-right: 0; }
.cat-icon { width: 42px; height: 42px; background: transparent; color: #748093; font-size: 22px; }
.cat-info { align-items: center; }
.cat-name { font-size: 13px; text-transform: uppercase; letter-spacing: 0; }
.cat-count { font-size: 12px; }
.cat-arrow { display: none; }
@media (max-width: 1024px) {
    .home-showcase { padding: 0 18px; margin-top: 0; }
    .hero-layout { display: block; }
    .hero-slider { min-height: 560px; }
    .hero-slide { min-height: 560px; }
    .hero-content { padding: 104px 34px 86px; }
    .hero-title { font-size: 44px; }
    .categories-bar-inner { display: flex; overflow-x: auto; scrollbar-width: none; }
    .categories-bar-inner::-webkit-scrollbar { display: none; }
    .category-bar-item { flex: 0 0 170px; }
}
@media (max-width: 768px) {
    .home-page header { background: rgba(8,12,21,0.66); }
    .home-showcase { padding: 0 12px; margin: 0 auto 34px; }
    .hero-slider { border-radius: 0 0 18px 18px; min-height: 560px; }
    .hero-slide { min-height: 560px; }
    .hero-content { padding: 92px 22px 82px; max-width: 100%; }
    .hero-title { font-size: 36px; }
    .hero-desc { font-size: 14px; }
    .hero-search-form { height: 50px; }
    .hero-dots { left: 24px; bottom: 28px; }
    .categories-bar { margin-top: -20px; padding-bottom: 22px; }
    .category-bar-item { min-height: 112px; flex-basis: 142px; }
}

/* ===== SAME-WIDTH HOME LAYOUT TRIAL ===== */
.home-page {
    --home-shell: min(100% - 96px, 1400px);
}

.home-page header {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: var(--home-shell) !important;
    border-radius: 0 0 24px 24px;
    background: rgba(255, 250, 244, 0.88);
    border-bottom: 1px solid rgba(232, 222, 210, 0.72);
    box-shadow: 0 18px 50px rgba(27, 43, 77, 0.08);
    backdrop-filter: blur(18px);
}

.home-page .logo,
.home-page .main-nav a,
.home-page .nav-dropdown-toggle,
.home-page .lang-switch-btn,
.home-page .notif-btn-main,
.home-page .profile-btn-main span,
.home-page .profile-btn-main i {
    color: #1B2B4D !important;
}

.home-page .main-nav a,
.home-page .nav-dropdown-toggle {
    position: relative;
}

.home-page .main-nav a::after,
.home-page .nav-dropdown-toggle::after {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 0;
    right: 0;
    height: 2px;
    background: #E07A3D;
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.home-page .main-nav a:hover::after,
.home-page .main-nav a.active::after,
.home-page .nav-dropdown:hover .nav-dropdown-toggle::after {
    transform: scaleX(1);
}

.home-page a.profile-btn-main[href$="/giris"] {
    background: #1B2B4D !important;
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(27,43,77,0.18);
}

.home-page a.profile-btn-main[href$="/giris"] i,
.home-page a.profile-btn-main[href$="/giris"] span {
    color: #fff !important;
}

.home-page a.profile-btn-main[href$="/giris"]:hover,
.home-page a.profile-btn-main[href$="/giris"]:focus {
    background: #E07A3D !important;
    color: #fff !important;
}

.home-page a.profile-btn-main[href$="/giris"]:hover i,
.home-page a.profile-btn-main[href$="/giris"]:hover span,
.home-page a.profile-btn-main[href$="/giris"]:focus i,
.home-page a.profile-btn-main[href$="/giris"]:focus span {
    color: #fff !important;
}

.home-page .search-bar input {
    background: rgba(255, 255, 255, 0.62);
    border-color: rgba(232, 222, 210, 0.9);
    color: #1B2B4D;
}

.home-page .search-bar input::placeholder,
.home-page .search-bar i {
    color: #7b8494;
}

.home-page .home-showcase {
    width: 100%;
    margin: 0 auto 34px;
    padding: 128px 0 34px;
    background:
        radial-gradient(circle at 8% 18%, rgba(255,255,255,0.82), rgba(255,255,255,0) 28%),
        linear-gradient(180deg, #fff6ec 0%, #f8ecdd 100%);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.home-page .hero-layout,
.home-page .categories-bar,
.home-page .literary-feature-strip,
.home-page .poem-day-section,
.home-page .section-wrapper {
    width: var(--home-shell);
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
}

.home-page .hero-layout {
    display: block;
}

.home-page .hero-slider {
    border-radius: 36px;
    min-height: 520px;
    max-height: none;
    background: #f6ecdf;
    box-shadow: 0 28px 70px rgba(86, 54, 28, 0.14);
}

.home-page .hero-slide {
    min-height: 520px;
    max-height: none;
    align-items: center;
}

.home-page .hero-slide::before {
    background:
        linear-gradient(90deg, rgba(255, 248, 239, 0.98) 0%, rgba(255, 248, 239, 0.9) 22%, rgba(255, 248, 239, 0.42) 43%, rgba(255, 248, 239, 0.02) 66%),
        linear-gradient(0deg, rgba(68, 42, 22, 0.08), rgba(246, 236, 223, 0) 55%);
}

.home-page .hero-content {
    padding: 86px 76px 90px;
    max-width: 650px;
}

.home-page .hero-badge {
    border-color: rgba(232, 221, 209, 0.84);
    color: #3f352d;
    background: rgba(255, 255, 255, 0.58);
}

.home-page .hero-title {
    font-size: 62px;
    line-height: 1.08;
    color: #10264a;
}

.home-page .hero-desc {
    color: #485362;
    font-size: 20px;
    line-height: 1.7;
}

.home-page .hero-search-form {
    width: min(100%, 560px);
    height: 62px;
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(232, 221, 209, 0.92);
    box-shadow: 0 18px 42px rgba(56, 36, 20, 0.1);
}

.home-page .hero-search-form button {
    width: 50px;
    height: 50px;
    background: #10264a;
}

.home-page .hero-arrow {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(232,221,209,0.9);
    color: #10264a;
    opacity: 1;
    box-shadow: 0 14px 32px rgba(27,43,77,0.14);
}

.home-page .hero-arrow-prev { left: 28px; }
.home-page .hero-arrow-next { right: 28px; }

.home-page .hero-dots {
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
}

.home-page .categories-bar {
    margin-top: 14px;
    padding-bottom: 0;
    position: relative;
    z-index: 20;
}

.home-page .categories-bar-inner {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(232, 221, 209, 0.88);
    border-radius: 24px;
    box-shadow: 0 28px 64px rgba(86, 54, 28, 0.12);
    backdrop-filter: blur(16px);
}

.home-page .category-bar-item {
    min-height: 154px;
    gap: 10px;
    border-right: 1px solid rgba(232, 221, 209, 0.9);
    color: #10264a;
}

.home-page .category-bar-item:last-child {
    border-right: 0;
}

.home-page .category-bar-item .cat-icon {
    width: auto;
    height: auto;
    background: transparent;
    color: #10264a;
    font-size: 32px;
}

.home-page .category-bar-item .cat-name {
    font-size: 15px;
    font-weight: 900;
}

.home-page .category-bar-item .cat-count {
    color: #5e6a78;
    font-size: 14px;
}

.home-page .category-bar-item .cat-arrow {
    display: inline-block;
    color: #E07A3D;
    transform: rotate(90deg);
}

.home-page .literary-feature-strip {
    margin-top: 42px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}

@media (max-width: 1024px) {
    .home-page { --home-shell: calc(100% - 32px); }
    .home-page .home-showcase { padding: 100px 0 28px; }
    .home-page .hero-slider,
    .home-page .hero-slide { min-height: 520px; }
    .home-page .hero-content { padding: 78px 34px 86px; }
    .home-page .hero-title { font-size: 44px; }
    .home-page .categories-bar-inner {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        overflow: visible;
    }
    .home-page .category-bar-item { flex: initial; }
    .home-page .literary-feature-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .home-page { --home-shell: calc(100% - 24px); }
    .home-page header {
        width: 100% !important;
        border-radius: 0;
    }
    .home-page .home-showcase { padding: 86px 0 22px; }
    .home-page .hero-slider,
    .home-page .hero-slide { min-height: 520px; }
    .home-page .hero-slider { border-radius: 22px; }
    .home-page .hero-content { padding: 78px 22px 86px; }
    .home-page .hero-title { font-size: 38px; }
    .home-page .hero-desc { font-size: 13px; }
    .home-page .hero-search-form { height: 54px; }
    .home-page .hero-search-form button {
        width: 42px;
        height: 42px;
    }
    .home-page .categories-bar { margin-top: 12px; }
    .home-page .categories-bar-inner {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        border-radius: 16px;
    }
    .home-page .category-bar-item {
        flex: 0 0 145px;
        min-height: 122px;
        scroll-snap-align: start;
    }
    .home-page .literary-feature-strip {
        grid-template-columns: 1fr;
        margin-top: 26px;
    }
}

@media (max-width: 480px) {
    .home-page .hero-arrow {
        display: none;
    }

    .home-page .hero-content {
        padding: 124px 22px 78px;
    }

    .home-page .hero-title {
        font-size: 34px;
        line-height: 1.05;
        margin-bottom: 12px;
    }

    .home-page .hero-desc {
        max-width: 240px;
        line-height: 1.55;
        margin-bottom: 18px;
    }

    .home-page .hero-search-form {
        width: 100%;
        height: 54px;
        margin-bottom: 20px;
    }

    .home-page .btn-hero-cta {
        margin-bottom: 0;
    }
}
