/* ============================================
   AIHaber Theme - responsive.css
   Responsive breakpoint'ler + Sidebar + Changelog
   ============================================ */

/* ============================
   SIDEBAR WIDGETS (Zibll tarzı)
   ============================ */

/* Quick Access Grid */
.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
}

.quick-access-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    padding: .75rem .5rem;
    border-radius: var(--aihaber-radius-sm);
    color: var(--aihaber-text-muted);
    font-size: .75rem;
    transition: all var(--aihaber-transition);
    text-align: center;
}

.quick-access-item:hover {
    background: rgba(255, 255, 255, .05);
    color: #fff;
}

.qa-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
}

.qa-icon-news {
    background: rgba(0, 212, 255, .12);
    color: #00d4ff;
}

.qa-icon-pdf {
    background: rgba(239, 68, 68, .12);
    color: #ef4444;
}

.qa-icon-book {
    background: rgba(16, 185, 129, .12);
    color: #10b981;
}

.qa-icon-api {
    background: rgba(245, 158, 11, .12);
    color: #f59e0b;
}

.qa-icon-site {
    background: rgba(6, 182, 212, .12);
    color: #06b6d4;
}

.qa-icon-about {
    background: rgba(124, 58, 237, .12);
    color: #a78bfa;
}

/* Sidebar Resource List (PDF, Kitap) */
.sidebar-resource-list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.sidebar-resource-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .5rem;
    border-radius: var(--aihaber-radius-sm);
    transition: background var(--aihaber-transition);
}

.sidebar-resource-item:hover {
    background: rgba(255, 255, 255, .04);
}

.sr-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    flex-shrink: 0;
}

.sr-icon-pdf {
    background: rgba(239, 68, 68, .12);
    color: #ef4444;
}

.sr-content {
    flex: 1;
    min-width: 0;
}

.sr-title {
    display: block;
    font-size: .85rem;
    color: var(--aihaber-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sr-title:hover {
    color: var(--aihaber-primary);
}

.sr-meta {
    display: flex;
    gap: .4rem;
    align-items: center;
    margin-top: .15rem;
}

/* Sidebar Tool List */
.sidebar-tool-list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.sidebar-tool-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .5rem;
    border-radius: var(--aihaber-radius-sm);
    transition: background var(--aihaber-transition);
}

.sidebar-tool-item:hover {
    background: rgba(255, 255, 255, .04);
}

.st-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--aihaber-bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
    color: var(--aihaber-primary);
}

.st-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2px;
}

.st-info {
    flex: 1;
    min-width: 0;
}

.st-name {
    display: block;
    font-size: .85rem;
    color: var(--aihaber-text);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.st-name:hover {
    color: var(--aihaber-primary);
}

.st-meta {
    display: flex;
    gap: .4rem;
    align-items: center;
    margin-top: .15rem;
    font-size: .75rem;
}

.st-rating {
    color: #f59e0b;
    font-weight: 600;
}

.st-rating i {
    font-size: .65rem;
}

/* Sidebar Categories */
.sidebar-categories {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.sidebar-categories li a {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem .5rem;
    border-radius: var(--aihaber-radius-sm);
    color: var(--aihaber-text-muted);
    font-size: .85rem;
    transition: all var(--aihaber-transition);
}

.sidebar-categories li a:hover {
    background: rgba(255, 255, 255, .04);
    color: var(--aihaber-primary);
}

.sidebar-categories li a i {
    font-size: .55rem;
    color: var(--aihaber-primary);
    opacity: .5;
}

.cat-count {
    margin-left: auto;
    font-size: .7rem;
    background: rgba(255, 255, 255, .06);
    padding: .1rem .45rem;
    border-radius: 10px;
    color: var(--aihaber-text-muted);
}

/* Sidebar Stats Grid */
.sidebar-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
}

.stat-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: .75rem .25rem;
    background: rgba(255, 255, 255, .03);
    border-radius: var(--aihaber-radius-sm);
    border: 1px solid var(--aihaber-border);
}

.stat-mini-num {
    font-family: var(--aihaber-font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--aihaber-primary);
}

.stat-mini-label {
    font-size: .65rem;
    color: var(--aihaber-text-muted);
    margin-top: .1rem;
}

/* Widget Newsletter Sidebar */
.widget-newsletter-sidebar {
    background: linear-gradient(135deg, rgba(0, 212, 255, .06), rgba(124, 58, 237, .06)) !important;
    border-color: rgba(0, 212, 255, .15) !important;
}

.widget-desc {
    font-size: .8rem;
    color: var(--aihaber-text-muted);
    margin-bottom: .75rem;
    line-height: 1.5;
}

.sidebar-newsletter {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.sidebar-newsletter input {
    padding: .6rem .75rem;
    background: var(--aihaber-bg);
    border: 1px solid var(--aihaber-border);
    border-radius: var(--aihaber-radius-sm);
    color: #fff;
    font-size: .85rem;
    outline: none;
}

.sidebar-newsletter input:focus {
    border-color: var(--aihaber-primary);
}

/* ============================
   CHANGELOG PAGE (Zibll tarzı)
   ============================ */

/* Info Card */
.changelog-info {
    margin-bottom: 2rem;
}

.changelog-info-inner {
    display: flex;
    gap: 2rem;
    justify-content: space-around;
}

.cl-info-item {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.cl-info-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 212, 255, .1), rgba(124, 58, 237, .1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--aihaber-primary);
}

.cl-info-label {
    display: block;
    font-size: .75rem;
    color: var(--aihaber-text-muted);
}

.cl-info-value {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    font-family: var(--aihaber-font-heading);
}

/* Timeline */
.changelog-timeline {
    position: relative;
}

.changelog-entry {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.cl-timeline-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 24px;
    flex-shrink: 0;
}

.cl-marker-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--aihaber-bg-card);
    border: 3px solid var(--aihaber-text-muted);
    flex-shrink: 0;
    margin-top: 1.5rem;
    z-index: 2;
}

.cl-marker-dot.cl-marker-active {
    border-color: var(--aihaber-primary);
    background: var(--aihaber-primary);
    box-shadow: 0 0 10px rgba(0, 212, 255, .4);
}

.cl-marker-line {
    width: 2px;
    flex: 1;
    background: var(--aihaber-border);
    margin-top: .25rem;
}

.cl-entry-content {
    flex: 1;
}

.cl-entry-content:hover {
    transform: none;
}

.cl-entry-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.cl-version-badge {
    padding: .4rem 1rem;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--aihaber-border);
    border-radius: var(--aihaber-radius-sm);
    font-family: var(--aihaber-font-heading);
    font-weight: 700;
    font-size: .9rem;
    color: #fff;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.cl-badge-latest {
    background: linear-gradient(135deg, rgba(0, 212, 255, .15), rgba(124, 58, 237, .15));
    border-color: rgba(0, 212, 255, .3);
    color: var(--aihaber-primary);
}

.cl-latest-tag {
    font-size: .6rem;
    padding: .1rem .4rem;
    background: var(--aihaber-primary);
    color: #000;
    border-radius: 3px;
    font-weight: 800;
}

.cl-entry-meta {
    flex: 1;
}

.cl-entry-title {
    font-family: var(--aihaber-font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: .25rem;
}

.cl-entry-date {
    font-size: .8rem;
    color: var(--aihaber-text-muted);
    display: flex;
    align-items: center;
    gap: .3rem;
}

.cl-entry-date i {
    color: var(--aihaber-primary);
}

/* Changelog Sections */
.cl-section {
    margin-bottom: 1.25rem;
}

.cl-section:last-child {
    margin-bottom: 0;
}

.cl-section-title {
    font-size: .85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: .5rem;
    padding-bottom: .35rem;
    border-bottom: 1px solid var(--aihaber-border);
}

.cl-section-new {
    color: #10b981;
}

.cl-section-improve {
    color: #3b82f6;
}

.cl-section-fix {
    color: #f59e0b;
}

.cl-section-title i {
    font-size: .75rem;
}

.cl-list {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.cl-list-item {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    font-size: .85rem;
    color: var(--aihaber-text);
    line-height: 1.5;
    padding: .3rem .5rem;
    border-radius: 4px;
}

.cl-item-new:hover {
    background: rgba(16, 185, 129, .05);
}

.cl-item-improve:hover {
    background: rgba(59, 130, 246, .05);
}

.cl-item-fix:hover {
    background: rgba(245, 158, 11, .05);
}

.cl-item-icon {
    flex-shrink: 0;
    font-size: .8rem;
    margin-top: .1rem;
}

/* ============================
   RESPONSIVE — Tablet 1024px
   ============================ */
@media (max-width: 1024px) {
    .aihaber-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .aihaber-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .pdf-shelf-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .twin-grid {
        grid-template-columns: 1fr;
    }

    .api-promo-card {
        flex-direction: column;
        gap: 2rem;
    }

    .api-promo-logos {
        grid-template-columns: repeat(3, 1fr);
    }

    .content-layout {
        grid-template-columns: 1fr;
    }

    .content-sidebar {
        position: static;
    }

    .newsletter-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .library-grid {
        grid-template-columns: 1fr;
    }

    .featured-news-grid {
        grid-template-columns: 1fr;
    }

    .featured-main {
        grid-row: auto;
        min-height: 300px;
    }

    /* Single detail headers */
    .pdf-detail-header,
    .kitap-detail-header,
    .api-detail-header,
    .site-detail-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .pdf-detail-meta-grid,
    .kitap-meta-grid {
        justify-items: center;
    }

    .pdf-detail-actions,
    .kitap-buy-links,
    .api-detail-actions,
    .site-detail-actions {
        justify-content: center;
    }

    .changelog-info-inner {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ============================
   RESPONSIVE — Mobile 768px
   ============================ */
@media (max-width: 768px) {
    .navbar-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .aihaber-grid-2,
    .aihaber-grid-3,
    .aihaber-grid-4 {
        grid-template-columns: 1fr;
    }

    .pdf-shelf-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .section {
        padding: 2.5rem 0;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-hero {
        padding: 4rem 0 1.5rem;
    }

    .page-hero-title {
        font-size: 1.5rem;
    }

    .single-title {
        font-size: 1.5rem;
    }

    .single-hero {
        min-height: 280px;
    }

    .single-hero-compact {
        padding: 5rem 0 1.5rem;
    }

    .filter-row {
        flex-direction: column;
    }

    .filter-group {
        min-width: 100%;
    }

    .category-filter-grid {
        gap: .5rem;
    }

    .category-filter-btn {
        padding: .75rem 1rem;
        font-size: .7rem;
    }

    .category-filter-btn i {
        font-size: 1rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-input-group {
        flex-direction: column;
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: .5rem;
        text-align: center;
    }

    .twin-card-header {
        flex-direction: column;
        text-align: center;
    }

    .api-promo-logos {
        grid-template-columns: repeat(2, 1fr);
    }

    .scroll-arrow {
        display: none;
    }

    .kitap-card {
        flex-direction: column;
    }

    .kitap-card-cover {
        width: 100%;
        height: 200px;
    }

    .error-number {
        font-size: 5rem;
    }

    /* Detail cover widths */
    .pdf-detail-cover,
    .kitap-detail-cover {
        width: 150px;
    }

    .kitap-cover-placeholder,
    .pdf-cover-lg {
        width: 150px;
        height: 220px;
    }

    .api-detail-logo,
    .site-detail-logo,
    .api-logo-placeholder-lg,
    .site-logo-placeholder-lg {
        width: 72px;
        height: 72px;
    }

    .api-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .model-list {
        grid-template-columns: 1fr;
    }

    /* Changelog */
    .cl-entry-header {
        flex-direction: column;
    }

    .changelog-entry {
        gap: 1rem;
    }

    .cl-timeline-marker {
        width: 16px;
    }

    .cl-marker-dot {
        width: 10px;
        height: 10px;
    }

    /* Sidebar stats */
    .sidebar-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================
   RESPONSIVE — Small Mobile 480px
   ============================ */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .single-title {
        font-size: 1.25rem;
    }

    .nav-links {
        gap: 0;
    }

    .aihaber-share-buttons {
        justify-content: center;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }

    .pdf-shelf-grid {
        grid-template-columns: 1fr;
    }

    .pdf-detail-header,
    .kitap-detail-header {
        align-items: stretch;
    }

    .pdf-detail-cover,
    .kitap-detail-cover {
        width: 100%;
    }

    .kitap-cover-placeholder,
    .pdf-cover-lg {
        width: 100%;
        height: auto;
        aspect-ratio: 3/4;
    }

    .pdf-detail-meta-grid {
        grid-template-columns: 1fr;
    }

    .api-info-grid {
        grid-template-columns: 1fr;
    }

    .quick-access-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .sidebar-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .changelog-info-inner {
        gap: .75rem;
    }

    .cl-info-item {
        gap: .5rem;
    }

    .cl-info-icon {
        width: 36px;
        height: 36px;
        font-size: .9rem;
    }
}