/* ==========================================================================
   İskilip'in Geçmişi ve Günümüz - Özel CSS Şablonu
   Ankara İskilipliler Derneği Design System
   ========================================================================== */

:root {
    --history-gold: #c8a865;
    --history-gold-dark: #b39655;
    --history-gold-light: #f9f5eb;
    --history-dark: #1e293b;
    --history-slate: #334155;
    --history-muted: #64748b;
    --history-bg-light: #f8fafc;
    --history-card-bg: #ffffff;
    --history-border: #e2e8f0;
    --history-radius: 12px;
    --history-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    --history-shadow-hover: 0 20px 30px -10px rgba(200, 168, 101, 0.2);
    --history-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Page Hero */
.history-hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    position: relative;
    padding: 70px 0 60px;
    color: #ffffff;
    overflow: hidden;
    margin-bottom: 40px;
}

.history-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(200, 168, 101, 0.15) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.history-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--history-gold), transparent);
}

.history-hero .breadcrumb-item,
.history-hero .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--history-transition);
}

.history-hero .breadcrumb-item a:hover {
    color: var(--history-gold);
}

.history-hero .breadcrumb-item.active {
    color: var(--history-gold);
}

.history-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(200, 168, 101, 0.15);
    border: 1px solid rgba(200, 168, 101, 0.3);
    border-radius: 50px;
    color: var(--history-gold);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.history-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.2;
}

.history-hero-subtitle {
    font-size: 1.15rem;
    color: #94a3b8;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Quick Navigation Sticky Sidebar */
.history-sticky-nav {
    position: sticky;
    top: 90px;
    background: var(--history-card-bg);
    border: 1px solid var(--history-border);
    border-radius: var(--history-radius);
    padding: 20px;
    box-shadow: var(--history-shadow);
    margin-bottom: 30px;
}

.history-nav-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--history-dark);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--history-gold-light);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.history-nav-title i {
    color: var(--history-gold);
}

.history-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.history-nav-item {
    margin-bottom: 8px;
}

.history-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--history-slate);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 500;
    transition: var(--history-transition);
}

.history-nav-link:hover,
.history-nav-link.active {
    background: var(--history-gold-light);
    color: var(--history-gold-dark);
    font-weight: 600;
    transform: translateX(4px);
}

.history-nav-link i {
    font-size: 0.85rem;
    color: var(--history-gold);
}

/* Content Cards */
.history-card {
    background: var(--history-card-bg);
    border: 1px solid var(--history-border);
    border-radius: var(--history-radius);
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: var(--history-shadow);
    transition: var(--history-transition);
    position: relative;
    overflow: hidden;
}

.history-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.07);
}

.history-section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--history-border);
}

.history-section-number {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--history-gold) 0%, var(--history-gold-dark) 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 1.2rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(200, 168, 101, 0.3);
}

.history-section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--history-dark);
    margin: 0;
}

/* Introductory Highlight Box */
.history-intro-box {
    background: linear-gradient(135deg, rgba(200, 168, 101, 0.08) 0%, rgba(200, 168, 101, 0.02) 100%);
    border-left: 4px solid var(--history-gold);
    border-radius: 0 12px 12px 0;
    padding: 25px 30px;
    margin-bottom: 30px;
}

.history-intro-box h4 {
    color: var(--history-dark);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.history-intro-box p {
    color: var(--history-slate);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

/* Stat Grid for 1890 Salnamesi */
.salname-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.stat-box {
    background: var(--history-bg-light);
    border: 1px solid var(--history-border);
    border-radius: 10px;
    padding: 18px 15px;
    text-align: center;
    transition: var(--history-transition);
}

.stat-box:hover {
    background: #ffffff;
    border-color: var(--history-gold);
    transform: translateY(-3px);
    box-shadow: var(--history-shadow);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--history-gold-dark);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--history-slate);
}

/* Data Table Styling */
.history-table-wrapper {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--history-border);
    margin: 25px 0;
}

.history-table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: collapse;
}

.history-table th {
    background: var(--history-dark);
    color: #ffffff;
    font-weight: 600;
    padding: 14px 20px;
    font-size: 0.95rem;
}

.history-table td {
    padding: 12px 20px;
    border-bottom: 1px solid var(--history-border);
    color: var(--history-slate);
    font-size: 0.95rem;
}

.history-table tr:nth-child(even) td {
    background-color: var(--history-bg-light);
}

.history-table tr:last-child td {
    border-bottom: none;
}

/* Sector & Detail Feature Cards */
.sector-card {
    background: #ffffff;
    border: 1px solid var(--history-border);
    border-radius: 10px;
    padding: 20px;
    height: 100%;
    transition: var(--history-transition);
}

.sector-card:hover {
    border-color: var(--history-gold);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.sector-icon {
    width: 44px;
    height: 44px;
    background: var(--history-gold-light);
    color: var(--history-gold-dark);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.sector-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--history-dark);
    margin-bottom: 10px;
}

.sector-desc {
    color: var(--history-slate);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Comparison Continuity List */
.continuity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--history-bg-light);
    border-left: 3px solid var(--history-gold);
    border-radius: 0 8px 8px 0;
    padding: 14px 18px;
    margin-bottom: 12px;
    font-size: 0.98rem;
}

.continuity-from {
    font-weight: 700;
    color: var(--history-dark);
    min-width: 200px;
}

.continuity-arrow {
    color: var(--history-gold);
    font-weight: bold;
}

.continuity-to {
    color: var(--history-slate);
    font-weight: 600;
}

/* Thesis Main Box */
.thesis-box {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    border-radius: 12px;
    padding: 35px;
    position: relative;
    box-shadow: 0 10px 30px rgba(30, 41, 59, 0.3);
    margin: 25px 0;
}

.thesis-badge {
    background: var(--history-gold);
    color: #0f172a;
    font-weight: 800;
    font-size: 0.8rem;
    text-uppercase: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.thesis-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #f1f5f9;
    font-style: italic;
    margin: 0;
}

/* Custom Bullet List */
.history-bullet-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.history-bullet-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: var(--history-slate);
    line-height: 1.6;
}

.history-bullet-list li::before {
    content: '\f054';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--history-gold);
    font-size: 0.8rem;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .history-hero {
        padding: 50px 0 40px;
    }
    .history-hero-title {
        font-size: 1.9rem;
    }
    .history-sticky-nav {
        position: relative;
        top: 0;
    }
    .history-card {
        padding: 22px;
    }
    .salname-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .continuity-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .continuity-from {
        min-width: auto;
    }
}
