/* * Home Page Styles - Final v8
 * Dosya: /public/assets/css/pages/home.css
 */

/* --- HERO SECTION --- */
.home-hero {
    position: relative;
    background-color: var(--primary);
    border-radius: var(--radius-lg);
    color: white;
    min-height: 380px; 
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 20px 40px -10px rgba(79, 70, 229, 0.3);
}

.hero-bg-gradient {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    background: 
        radial-gradient(circle at 100% 0%, rgba(255,255,255,0.12) 0%, transparent 40%),
        radial-gradient(circle at 0% 100%, rgba(0,0,0,0.2) 0%, transparent 50%),
        linear-gradient(135deg, var(--primary) 0%, #4338ca 100%);
}

.hero-body {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 2rem 2.5rem; /* Padding biraz kısıldı */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem; 
}

.hero-text-wrapper {
    max-width: 550px;
    flex: 1;
}

/* Badge & Titles */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem; /* Küçültüldü */
    font-weight: 600;
    margin-bottom: 1rem;
    backdrop-filter: blur(8px);
}

.hero-title {
    font-size: 2rem; /* Küçültüldü (2.5rem'den) */
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 0.8rem;
    letter-spacing: -0.02em;
    color: #fff;
}

.text-gradient {
    background: linear-gradient(to right, #67e8f9, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 0.95rem; /* Küçültüldü */
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    max-width: 480px;
}

/* --- HERO ACTIONS (Compact & Side-by-Side) --- */
.hero-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: nowrap; /* Asla alt satıra geçmesin */
}

.btn-hero-primary, .btn-hero-outline {
    flex: 1; /* Eşit genişlik */
    padding: 0.6rem 0.5rem; /* Yan boşluklar daraltıldı */
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem; /* Font küçültüldü */
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
    white-space: nowrap; /* Yazı kırılmasın */
    text-align: center;
    min-width: 0; /* Flex içinde taşmayı önler */
}

.btn-hero-primary {
    background: white;
    color: var(--primary);
    border: none;
}
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }

.btn-hero-outline {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.btn-hero-outline:hover { background: rgba(255, 255, 255, 0.2); }

/* --- HERO STATS --- */
.hero-stats-wrapper {
    display: grid;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 1.2rem;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    text-align: center;
    min-width: 160px; /* Biraz daraltıldı */
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.3s ease;
}
.hero-stats-wrapper:hover { transform: perspective(1000px) rotateY(0deg); }

.stat-item { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; }
.stat-icon-wrapper { font-size: 1.1rem; color: rgba(255, 255, 255, 0.8); }
.stat-text strong { display: block; font-size: 1.3rem; font-weight: 800; line-height: 1; }
.stat-text span { font-size: 0.65rem; font-weight: 700; color: rgba(255, 255, 255, 0.7); letter-spacing: 0.05em; }
.stat-divider { height: 1px; background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent); width: 100%; }

/* --- HOME GRID LAYOUT (60% - 40% SPLIT) --- */
.home-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobil: Tek kolon */
    gap: 1.5rem;
    margin-top: 2rem;
    align-items: start;
    width: 100%;
}

@media (min-width: 992px) {
    .home-grid {
        /* Desktop: %60 Sol, %40 Sağ */
        grid-template-columns: 1.5fr 1fr; 
        
        /* GÜNCELLENDİ: Boşluk 32px'den 20px'e düşürüldü */
        gap: 0.75rem; 
    }
}

/* SECTION COMMON */
.home-section { margin-bottom: 2rem; width: 100%; }
.home-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; padding: 0 0.5rem; }
.section-title { font-size: 1.1rem; font-weight: 700; color: var(--text-main); margin: 0; display: flex; align-items: center; gap: 0.5rem; }
.icon-orange { color: #f97316; }
.icon-blue { color: #3b82f6; }
.icon-purple { color: #a855f7; }
.link-view-all { font-size: 0.85rem; font-weight: 600; color: var(--primary); text-decoration: none; }

/* CATEGORIES GRID */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.category-card { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); text-align: center; text-decoration: none; transition: all 0.2s ease; display: block; }
.category-content { padding: 1.2rem; }
.category-card:hover { transform: translateY(-3px); border-color: var(--primary); }
.category-header { display: flex; align-items: center; justify-content: center; gap: 0.6rem; margin-bottom: 0.8rem; }
.category-icon { width: 36px; height: 36px; background: rgba(79, 70, 229, 0.1); color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; transition: transform 0.2s ease; }
.category-card:hover .category-icon { transform: scale(1.1); background: var(--primary); color: white; }
.category-name { font-size: 1rem; font-weight: 700; color: var(--text-main); margin: 0; }
.category-desc { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 2.4em; line-height: 1.2; }
.category-stats { font-size: 0.7rem; font-weight: 700; color: var(--text-dim); display: flex; justify-content: center; gap: 0.8rem; border-top: 1px solid var(--border-subtle); padding-top: 0.6rem; }

/* THREAD LIST */
.thread-list-card { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); overflow: hidden; }
.thread-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--border-subtle); text-decoration: none; transition: background 0.2s ease; }
.thread-item:last-child { border-bottom: none; }
.thread-item:hover { background: var(--bg-surface-hover); }
.thread-item-start { display: flex; align-items: center; gap: 0.8rem; flex: 1; min-width: 0; }
.thread-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 1px solid var(--border-subtle); }
.thread-info { flex: 1; min-width: 0; }
.thread-title { font-size: 0.95rem; font-weight: 600; color: var(--text-main); margin-bottom: 0.2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.thread-meta { font-size: 0.75rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.4rem; }
.meta-badge { background: var(--bg-body); padding: 1px 5px; border-radius: 4px; font-weight: 500; border: 1px solid var(--border-subtle); }
.thread-reply-count .count-badge { background: var(--bg-body); color: var(--text-main); padding: 2px 8px; border-radius: 8px; font-size: 0.8rem; font-weight: 700; border: 1px solid var(--border-subtle); }

/* --- SIDE COLUMN WIDGETS (VERTICAL) --- */
.features-vertical { display: flex; flex-direction: column; gap: 0.8rem; }

.feature-card-small {
    display: flex; align-items: center; gap: 0.8rem;
    padding: 0.8rem; background: var(--bg-surface);
    border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
    text-decoration: none; transition: transform 0.2s;
}
.feature-card-small:hover { transform: translateY(-2px); border-color: var(--primary); }

.icon-box { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.bg-purple { background: rgba(147, 51, 234, 0.1); color: #9333ea; }
.bg-blue { background: rgba(37, 99, 235, 0.1); color: #2563eb; }

.text-box h6 { font-size: 0.9rem; font-weight: 700; margin: 0; color: var(--text-main); }
.text-box p { font-size: 0.75rem; margin: 0; color: var(--text-muted); }

.cta-box-small {
    background: linear-gradient(135deg, var(--primary) 0%, #4338ca 100%);
    border-radius: var(--radius-md); padding: 1.2rem; text-align: center; color: white;
    position: relative; overflow: hidden; margin-top: 0.5rem;
}
.cta-icon { font-size: 2.5rem; position: absolute; bottom: -5px; right: -5px; opacity: 0.15; transform: rotate(-15deg); }
.cta-box-small h6 { color: white; margin-bottom: 0.2rem; font-weight: 800; font-size: 1rem; position: relative; z-index: 2; }
.cta-box-small p { color: rgba(255,255,255,0.9); font-size: 0.75rem; margin-bottom: 0.8rem; position: relative; z-index: 2; }
.btn-cta-xs {
    display: inline-block; background: white; color: var(--primary);
    padding: 0.4rem 1rem; border-radius: 20px; font-size: 0.8rem; font-weight: 700; text-decoration: none; position: relative; z-index: 2; transition: background 0.2s;
}
.btn-cta-xs:hover { background: #f1f5f9; }

/* RESPONSIVE FIXES */
@media (max-width: 991px) {
    .home-hero { flex-direction: column; padding: 2rem 1.5rem; text-align: center; min-height: auto; }
    .hero-body { flex-direction: column; gap: 2rem; padding: 0; }
    .hero-text-wrapper { max-width: 100%; }
    .hero-actions { justify-content: center; }
    
    /* DÜZELTME: İstatistikler Mobilde Yan Yana */
    .hero-stats-wrapper { 
        display: flex; /* Flex yapıldı */
        flex-direction: row; 
        flex-wrap: wrap; /* Sığmazsa aşağı geçsin */
        justify-content: center; 
        width: 100%; 
        transform: none; 
        padding: 1rem;
        gap: 0.5rem;
    }
    
    .stat-item { flex: 1; min-width: 80px; }
    .stat-divider { display: none; }
    
    /* Grid tek kolon olsun */
    .home-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    
    /* TAŞMA ÖNLEME: Başlıklar mobilde alt satıra geçsin */
    .thread-title {
        white-space: normal;
        line-height: 1.3;
        margin-bottom: 0.4rem;
    }
    .thread-meta { flex-wrap: wrap; }
    .meta-sep { display: none; }
    .meta-badge { margin-right: 0.5rem; }
}