/* ============================================================
   INDEX.PHP — forum ana səhifəsi (yalnız bu səhifəyə özəl stillər)
   ============================================================ */

.hero-section {
    background: var(--light-bg);
    padding: 120px 0 100px;
    color: var(--black);
    position: relative;
    overflow: hidden;
    border-radius: 0 0 40px 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-light);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%; left: -20%;
    width: 80%; height: 200%;
    background: radial-gradient(circle, rgba(255,212,59,0.3) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -50%; right: -20%;
    width: 80%; height: 200%;
    background: radial-gradient(circle, rgba(255,212,59,0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.hero-bg-vectors { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; overflow: hidden; z-index: 1; }

.floating-vector {
    position: absolute;
    color: var(--yellow);
    opacity: 0.8;
    z-index: 0;
    animation: floatVector 12s ease-in-out infinite alternate;
}

.fv-1 { top: 15%; left: 10%; font-size: 80px; animation-duration: 18s; animation-delay: 0s; transform: rotate(15deg); }
.fv-2 { top: 60%; left: 5%; font-size: 60px; animation-duration: 15s; animation-delay: -3s; transform: rotate(-20deg); }
.fv-3 { top: 20%; right: 12%; font-size: 100px; animation-duration: 22s; animation-delay: -7s; transform: rotate(45deg); opacity: 0.6; }
.fv-4 { bottom: 10%; right: 15%; font-size: 70px; animation-duration: 14s; animation-delay: -2s; transform: rotate(-10deg); }
.fv-5 { top: 50%; right: 5%; font-size: 50px; animation-duration: 10s; animation-delay: -5s; transform: rotate(90deg); color: var(--black); opacity: 0.1; }
.fv-6 { bottom: 20%; left: 20%; font-size: 40px; animation-duration: 16s; animation-delay: -4s; transform: rotate(30deg); color: var(--black); opacity: 0.1; }

@keyframes floatVector {
    0% { transform: translateY(0) rotate(0deg) scale(1); }
    50% { transform: translateY(-30px) rotate(15deg) scale(1.1); }
    100% { transform: translateY(20px) rotate(-10deg) scale(0.9); }
}

.hero-content { text-align: center; max-width: 800px; margin: 0 auto; position: relative; z-index: 2; }
.hero-content h1 { color: var(--black); font-size: 56px; font-weight: 900; margin-bottom: 20px; letter-spacing: -2px; line-height: 1.1; }
.hero-content h1 span { color: #D97706; position: relative; display: inline-block; }
.hero-content h1 span::after {
    content: ''; position: absolute; bottom: 4px; left: 0; width: 100%; height: 12px; background: rgba(255,212,59,0.5); z-index: -1; border-radius: 4px;
}
.hero-content p { color: var(--text-main); font-size: 20px; margin-bottom: 40px; font-weight: 600; }

.hero-search { display: flex; background: var(--white); padding: 8px; border-radius: 20px; box-shadow: 0 15px 35px rgba(0,0,0,0.08); max-width: 700px; margin: 0 auto; position: relative; z-index: 10; transition: transform 0.3s, box-shadow 0.3s; border: 1px solid var(--border-light); }
.hero-search:focus-within { transform: translateY(-4px); box-shadow: 0 25px 50px rgba(0,0,0,0.12); border-color: rgba(255,212,59,0.5); z-index: 11; }
.hero-search input { flex: 1; border: none; padding: 20px 24px; font-size: 18px; font-family: 'Plus Jakarta Sans', sans-serif; outline: none; border-radius: 16px; color: var(--black); font-weight: 600; background: transparent; }
.hero-search input::placeholder { color: var(--text-muted); font-weight: 500; }
.hero-search button { background: var(--black); color: var(--yellow); border: none; padding: 0 40px; border-radius: 14px; font-weight: 800; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 16px; cursor: pointer; transition: 0.3s; display: flex; align-items: center; gap: 10px; }
.hero-search button:hover { background: var(--yellow); color: var(--black); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255,212,59,0.4); }

.hero-stats { display: flex; justify-content: center; gap: 60px; margin-top: 60px; position: relative; z-index: 2; }
.h-stat { display: flex; flex-direction: column; align-items: center; transition: 0.3s; background: var(--white); padding: 16px 32px; border-radius: 20px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); }
.h-stat:hover { transform: translateY(-6px); box-shadow: 0 15px 30px rgba(0,0,0,0.06); border-color: rgba(255,212,59,0.3); }
.h-stat strong { font-size: 32px; font-weight: 900; color: var(--black); }
.h-stat span { font-size: 13px; color: var(--text-muted); text-transform: uppercase; font-weight: 800; letter-spacing: 2px; margin-top: 4px; }

.forum-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; }

/* --- RADICAL LIST LAYOUT --- */
.forum-group-radical { margin-bottom: 48px; }

.radical-group-header { margin-bottom: 20px; padding-left: 8px; }
.radical-group-header h2 { font-size: 26px; font-weight: 900; margin: 0; }
.radical-group-header a { color: var(--black); text-decoration: none; display: flex; align-items: center; gap: 12px; transition: 0.2s; }
.radical-group-header a:hover { color: var(--yellow-hover); }
.radical-group-header i { color: var(--yellow); font-size: 28px; }

.radical-nodes-list { display: flex; flex-direction: column; gap: 20px; }

.radical-node { background: var(--white); border: 1px solid var(--border-light); border-radius: 20px; padding: 24px; display: flex; gap: 24px; align-items: stretch; box-shadow: var(--shadow-sm); transition: all 0.3s ease; position: relative; overflow: hidden; }
.radical-node::before { content: ''; position: absolute; left: 0; top: 0; width: 6px; height: 100%; background: var(--yellow); transform: scaleY(0); transform-origin: center; transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.radical-node:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(255,212,59,0.4); }
.radical-node:hover::before { transform: scaleY(1); }

.r-node-icon { width: 56px; height: 56px; background: rgba(255, 212, 59, 0.15); color: #B48600; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0; transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.radical-node:hover .r-node-icon { background: var(--yellow); color: var(--black); transform: scale(1.1) rotate(-8deg); }
.r-node-icon.read { background: var(--light-bg); color: var(--text-muted); }

.r-node-main { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.r-node-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.r-node-header h3 { font-size: 18px; font-weight: 800; color: var(--black); margin: 0; line-height: 1.2; letter-spacing: -0.5px; word-break: break-word; }
.r-node-header h3 a { color: var(--black); transition: 0.2s; }
.r-node-header h3 a:hover { color: var(--yellow-hover); }

.r-node-badges { display: flex; gap: 6px; }
.r-badge { font-size: 11px; font-weight: 800; background: var(--light-bg); color: var(--text-muted); padding: 4px 10px; border-radius: 8px; display: flex; align-items: center; gap: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.r-badge i { font-size: 14px; color: var(--black); }

.r-node-desc { font-size: 14px; color: var(--text-muted); line-height: 1.5; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.r-node-side { width: 280px; flex-shrink: 0; border-left: 2px dashed var(--border-light); padding-left: 24px; display: flex; flex-direction: column; justify-content: center; }
.r-latest-box { display: flex; gap: 12px; align-items: center; }
.r-latest-avatar { width: 48px; height: 48px; border-radius: 14px; object-fit: cover; box-shadow: 0 4px 10px rgba(0,0,0,0.08); }
.r-latest-info { flex: 1; min-width: 0; }
.r-latest-label { display: block; font-size: 10px; color: var(--text-muted); text-transform: uppercase; font-weight: 800; letter-spacing: 1px; margin-bottom: 4px; }
.r-latest-title { font-size: 14px; font-weight: 700; color: var(--black); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; transition: 0.2s; }
.r-latest-title:hover { color: var(--yellow-hover); }
.r-latest-meta { font-size: 12px; color: var(--text-muted); }
.r-latest-meta strong { color: var(--black); font-weight: 800; }

.r-latest-empty { color: var(--text-muted); font-size: 13px; font-style: italic; display: flex; align-items: center; gap: 8px; }
.r-latest-empty i { font-size: 18px; }

.recent-topics-list { display: flex; flex-direction: column; gap: 12px; }
.recent-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; transition: 0.2s; margin: -12px; }
.recent-item:hover { background: var(--light-bg); }
.recent-item img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.recent-info { min-width: 0; flex: 1; }
.recent-info h4 { font-size: 13px; font-weight: 700; line-height: 1.4; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.recent-info h4 a:hover { color: var(--yellow-hover); }
.recent-info p { font-size: 11px; color: var(--text-muted); display: flex; justify-content: space-between; font-weight: 600; flex-wrap: wrap; gap: 4px; }

@media (max-width: 1100px) {
    .forum-layout { grid-template-columns: minmax(0, 1fr); }
    .sidebar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

@media (max-width: 768px) {
    .hero-section { padding: 60px 0 50px; border-radius: 0 0 20px 20px; }
    .hero-content h1 { font-size: 32px; margin-bottom: 15px; }
    .hero-content p { font-size: 16px; margin-bottom: 30px; }
    .hero-stats { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 24px; margin-top: 30px; }
    .hero-search { flex-direction: column; background: transparent; box-shadow: none; padding: 0; gap: 12px; width: 100%; box-sizing: border-box; }
    .hero-search input { border-radius: 12px; padding: 14px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); background: var(--white); width: 100%; box-sizing: border-box; }
    .hero-search button { border-radius: 12px; padding: 14px; justify-content: center; box-shadow: 0 4px 15px rgba(0,0,0,0.2); width: 100%; box-sizing: border-box; }

    .radical-node { flex-direction: row; flex-wrap: wrap; gap: 16px; padding: 16px; border-radius: 16px; align-items: flex-start; }
    .r-node-icon { width: 44px; height: 44px; font-size: 22px; border-radius: 12px; }
    .r-node-side { width: 100%; border-left: none; border-top: 2px dashed var(--border-light); padding-left: 0; padding-top: 16px; }
}

/* --- REKLAM BANNERLƏRİ --- */
.ad-banner { display: block; border-radius: 20px; overflow: hidden; border: 1px solid var(--border-light); box-shadow: var(--shadow-sm); transition: all 0.3s ease; }
.ad-banner:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.ad-banner img { width: 100%; height: auto; display: block; }
.ad-banner-content { margin-bottom: 40px; }
.ad-banner-sidebar { margin-bottom: 32px; }
