/**
 * KY Hizmet Bölgeleri - Plugin Styles
 * Dark tema uyumlu tasarım
 */

/* ========================================
   Single Page Layout - %75 / %25
   ======================================== */

.ky-hb-single-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 150px !important;
    padding-right: 20px;
    padding-bottom: 40px;
    padding-left: 20px;
}

.ky-hb-content-area {
    flex: 0 0 calc(75% - 20px);
    max-width: calc(75% - 20px);
    min-width: 0;
}

.ky-hb-sidebar {
    flex: 0 0 calc(25% - 20px);
    max-width: calc(25% - 20px);
    min-width: 0;
}

/* ========================================
   Content Area
   ======================================== */

.ky-hb-article {
    line-height: 1.8;
}

.ky-hb-title {
    font-size: 2em !important;
    font-weight: 700 !important;
    margin-top: 0 !important;
    margin-bottom: 24px;
    padding-top: 0 !important;
    line-height: 1.3 !important;
}

.ky-hb-content-area h1:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.ky-hb-content h2 {
    font-size: 1.4em;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 16px;
    line-height: 1.4;
}

.ky-hb-content h3 {
    font-size: 1.2em;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
}

.ky-hb-content p {
    margin-bottom: 16px;
    line-height: 1.8;
}

.ky-hb-content ul {
    margin: 16px 0;
    padding-left: 20px;
}

.ky-hb-content ul li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.ky-hb-content strong {
    font-weight: 600;
}

/* ========================================
   Sidebar
   ======================================== */

.ky-hb-sidebar-inner {
    position: sticky;
    top: 100px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
    box-sizing: border-box;
    max-width: 100%;
}

.ky-hb-sidebar-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    margin: 0 0 16px 0 !important;
    padding: 0 0 12px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.3 !important;
    overflow-wrap: break-word;
    word-break: break-word;
}

.ky-hb-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 600px;
    overflow-y: auto;
}

.ky-hb-sidebar-list::-webkit-scrollbar {
    width: 4px;
}

.ky-hb-sidebar-list::-webkit-scrollbar-track {
    background: transparent;
}

.ky-hb-sidebar-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.ky-hb-sidebar-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.ky-hb-sidebar-list li {
    margin: 0;
    padding: 0;
}

.ky-hb-sidebar-list li a {
    display: block;
    padding: 7px 12px;
    text-decoration: none;
    font-size: 0.85em;
    border-radius: 5px;
    transition: all 0.2s ease;
    color: inherit;
    opacity: 0.7;
}

.ky-hb-sidebar-list li a:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.05);
}

.ky-hb-sidebar-list li.ky-hb-active a {
    font-weight: 600;
    opacity: 1;
    background: rgba(255, 255, 255, 0.08);
}

/* ========================================
   Shortcode Grid - 4 Column Cards
   ======================================== */

.ky-hb-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.ky-hb-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.25s ease;
    background: rgba(255, 255, 255, 0.02);
}

.ky-hb-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.04);
    text-decoration: none;
    color: inherit;
}

.ky-hb-card:visited {
    color: inherit;
}

.ky-hb-card-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ky-hb-card-title {
    font-size: 0.9em;
    font-weight: 500;
    line-height: 1.4;
}

.ky-hb-card-arrow {
    font-size: 1.1em;
    opacity: 0.3;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.ky-hb-card:hover .ky-hb-card-arrow {
    opacity: 0.8;
    transform: translateX(3px);
}

.ky-hb-empty {
    text-align: center;
    padding: 40px;
    opacity: 0.5;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1024px) {
    .ky-hb-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .ky-hb-single-wrap {
        flex-direction: column;
        gap: 30px;
        padding-top: 140px !important;
        padding-right: 15px;
        padding-bottom: 20px;
        padding-left: 15px;
    }

    .ky-hb-content-area {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .ky-hb-sidebar {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .ky-hb-sidebar-inner {
        position: static;
    }

    .ky-hb-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }

    .ky-hb-title {
        font-size: 1.6em;
    }
}

@media (max-width: 480px) {
    .ky-hb-grid {
        grid-template-columns: 1fr !important;
    }

    .ky-hb-card {
        padding: 16px;
    }
}
