/*
 * Soruldu.com - Custom Styles
 * Bootstrap 5 uzerine ek stiller
 */

/* ── Badge Stilleri ────────────────────────────────────────── */
.badge-sector {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.badge-role {
    background-color: #ede9fe;
    color: #5b21b6;
}

/* ── Oy Butonlari ──────────────────────────────────────────── */
.vote-btn {
    cursor: pointer;
    border: none;
    background: transparent;
    transition: all 0.2s ease;
}

.vote-btn:hover {
    transform: scale(1.1);
}

.vote-btn.voted-up {
    color: #16a34a;
    background-color: #f0fdf4;
}

.vote-btn.voted-down {
    color: #dc2626;
    background-color: #fef2f2;
}

/* ── Icerik Kartlari ───────────────────────────────────────── */
.content-card {
    transition: all 0.2s ease;
}

.content-card:hover {
    transform: translateY(-1px);
}

/* ── Ad Slot Yer Tutucular ─────────────────────────────────── */
.ad-slot {
    background-color: #f9fafb;
    border: 2px dashed #e5e7eb;
    border-radius: 0.5rem;
    text-align: center;
    color: #9ca3af;
    font-size: 0.875rem;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-header {
    min-height: 90px;
    max-width: 728px;
}

.ad-sidebar {
    min-height: 250px;
    max-width: 300px;
}

.ad-in-content {
    min-height: 280px;
    max-width: 336px;
}

/* ── Flash Mesaj ───────────────────────────────────────────── */
.flash-message {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Line Clamp ────────────────────────────────────────────── */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Admin Tab ─────────────────────────────────────────────── */
.tab-btn {
    cursor: pointer;
}

.tab-btn:focus {
    outline: 2px solid #0d6efd;
    outline-offset: -2px;
}

/* ── Loading Spinner ───────────────────────────────────────── */
.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid #dee2e6;
    border-top-color: #0d6efd;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
    background: #fff;
    color: #111;
    text-align: center;
    padding: 4rem 1rem 3.5rem;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #f0f0f0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(30,58,95,0.06) 0%, transparent 70%);
    transform: translate(-50%, -60%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 100px;
    font-size: 0.78rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    color: #111;
}

.hero-accent {
    background: linear-gradient(135deg, #1e3a5f, #e67e22);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 2.5rem;
    line-height: 1.5;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.hero-search {
    max-width: 520px;
    margin: 0 auto 2.5rem;
}

.hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding: 10px 24px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 100px;
}

.hero-stat {
    text-align: center;
}

.hero-stat strong {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #1e3a5f;
}

.hero-stat span {
    font-size: 0.72rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hero-stat-divider {
    width: 1px;
    height: 28px;
    background: #e5e7eb;
}

@media (max-width: 576px) {
    .hero {
        padding: 3rem 1rem 2.5rem;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-desc {
        font-size: 0.95rem;
    }
    .hero-stats {
        gap: 14px;
        padding: 8px 18px;
    }
    .hero-stat strong {
        font-size: 1rem;
    }
}

/* ── Home Sections ────────────────────────────────────────── */
.home-section {
    padding: 4rem 0;
}

.home-section--alt {
    background: #fafafa;
}

.section-head {
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #1e3a5f;
    display: inline-block;
}

.section-head h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e3a5f;
    margin: 0 0 2px;
    letter-spacing: -0.01em;
}

.section-sub {
    font-size: 0.82rem;
    color: #9ca3af;
    margin: 0;
}

/* ── Sector Grid ──────────────────────────────────────────── */
.sector-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (min-width: 768px) {
    .sector-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .sector-card--wide {
        grid-column: span 2;
    }
}

.sector-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 1.15rem 1.1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    overflow: hidden;
}

.sector-card:hover {
    border-color: #c7d2fe;
    background: #fafaff;
    text-decoration: none;
}

.sector-card:hover .sector-arrow {
    opacity: 1;
    transform: translateX(0);
}

.sector-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.sector-name {
    font-weight: 650;
    font-size: 0.92rem;
    color: #111;
}

.sector-count {
    font-size: 0.72rem;
    font-weight: 600;
    color: #6366f1;
    background: #eef2ff;
    padding: 2px 8px;
    border-radius: 6px;
    flex-shrink: 0;
}

.sector-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.sector-role-chip {
    font-size: 0.72rem;
    color: #6b7280;
    background: #f3f4f6;
    padding: 3px 8px;
    border-radius: 5px;
}

.sector-role-more {
    color: #6366f1;
    background: #eef2ff;
    font-weight: 500;
}

.sector-soon {
    font-size: 0.75rem;
    color: #d1d5db;
}

.sector-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%) translateX(-4px);
    font-size: 0.9rem;
    color: #6366f1;
    opacity: 0;
    transition: all 0.2s ease;
}

@media (max-width: 576px) {
    .sector-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .sector-card--wide {
        grid-column: span 2;
    }
    .sector-card {
        padding: 0.9rem;
        border-radius: 10px;
    }
    .sector-role-chip {
        font-size: 0.68rem;
    }
}

/* ── Position Tags ────────────────────────────────────────── */
.position-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.position-tag {
    display: inline-block;
    padding: 9px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #374151;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.position-tag:hover {
    background: #111;
    border-color: #111;
    color: #fff;
    text-decoration: none;
}

/* ── Sets ─────────────────────────────────────────────────── */
.sets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
}

.set-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 1.15rem 1.1rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.set-card:hover {
    border-color: #c7d2fe;
    background: #fafaff;
    text-decoration: none;
}

.set-card-questions {
    display: inline-block;
    width: fit-content;
    font-size: 0.68rem;
    font-weight: 600;
    color: #059669;
    background: #ecfdf5;
    padding: 2px 8px;
    border-radius: 5px;
    margin-bottom: 4px;
}

.set-card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #111;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.set-role {
    font-size: 0.78rem;
    color: #6366f1;
    margin-top: 2px;
}

.set-date {
    font-size: 0.72rem;
    color: #d1d5db;
    margin-top: auto;
    padding-top: 6px;
}

@media (max-width: 576px) {
    .sets-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Modern Arama Kutusu ───────────────────────────────────── */
.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #1e3a5f;
    border-radius: 16px;
    padding: 6px 6px 6px 20px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 12px rgba(30, 58, 95, 0.1);
}

.search-box:focus-within {
    background: #fff;
    border-color: #1e3a5f;
    box-shadow: 0 4px 20px rgba(30, 58, 95, 0.18);
    transform: translateY(-1px);
}

.search-icon {
    width: 22px;
    height: 22px;
    color: #9ca3af;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.search-box:focus-within .search-icon {
    color: #1e3a5f;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 14px 16px;
    font-size: 1.05rem;
    color: #111;
    font-family: inherit;
}

.search-input::placeholder {
    color: #9ca3af;
    transition: color 0.3s ease;
}

.search-input:focus::placeholder {
    color: #6b7280;
}

.search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #1e3a5f;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    flex-shrink: 0;
}

.search-btn:hover {
    background: #e67e22;
    transform: scale(1.03);
    box-shadow: 0 4px 20px rgba(230, 126, 34, 0.3);
}

.search-btn:active {
    transform: scale(0.97);
}

.search-btn-arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.search-btn:hover .search-btn-arrow {
    transform: translateX(3px);
}

/* ── Responsive Arama ──────────────────────────────────────── */
@media (max-width: 576px) {
    .search-box {
        border-radius: 14px;
        padding: 4px 4px 4px 16px;
    }

    .search-input {
        padding: 12px 12px;
        font-size: 1rem;
    }

    .search-btn {
        padding: 10px 18px;
        border-radius: 10px;
    }

    .search-btn-text {
        display: none;
    }

    .search-btn {
        padding: 12px 14px;
    }

    .search-btn-arrow {
        margin: 0;
    }
}

/* ── Admin Sidebar ─────────────────────────────────────────── */
.sidebar-link.active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
    .ad-header {
        display: none;
    }

    .ad-in-content {
        max-width: 100%;
    }
}
