/* Alphabetic Post Lister Styles */

.apl-container {
    max-width: 100%;
    margin: 30px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Alfabetik Navigasyon */
.apl-alphabet-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 40px;
    border: 2px solid #e0e0e0;
}

.apl-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* Aktif harfler - Beyaz zemin, Mavi yazı */
.apl-letter.active {
    background: #ffffff;
    color: #0005bee;
    border: 2px solid #0005bee;
    cursor: pointer;
}

/* Aktif harflere hover - Mavi zemin, Beyaz yazı */
.apl-letter.active:hover {
    background: #0005bee;
    color: #ffffff;
    border: 2px solid #0005bee;
    transform: translateY(-2px);
}

/* Pasif harfler - Beyaz zemin, Açık mavi yazı */
.apl-letter.inactive {
    background: #ffffff;
    color: #b3d9ff;
    border: 2px solid #e0e0e0;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Gönderi Konteyneri */
.apl-posts-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
}

/* Harf Bölümleri */
.apl-letter-section {
    margin-bottom: 50px;
    scroll-margin-top: 100px;
    break-inside: avoid;
}

.apl-letter-section:last-child {
    margin-bottom: 0;
}

.apl-letter-heading {
    color: #0005bee;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 3px solid #0005bee;
    display: block;
}

/* Gönderi Listeleri - 2 Sütun Masonry */
.apl-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
    column-count: 2;
    column-gap: 20px;
}

.apl-post-item {
    margin-bottom: 10px;
    padding: 0;
    break-inside: avoid;
    page-break-inside: avoid;
}

.apl-post-item a {
    display: block;
    padding: 12px 16px;
    color: #333333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-left: 3px solid #0005bee;
    transition: all 0.3s ease;
    background: #f8f9fa;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.apl-post-item a:hover {
    background: #e3f2fd;
    color: #0005bee;
    padding-left: 20px;
    white-space: normal;
    overflow: visible;
    z-index: 10;
}

/* Tooltip efekti - uzun başlıklar için */
.apl-post-item a[title]:hover::after {
    content: attr(title);
    position: absolute;
    left: 0;
    top: 100%;
    background: #0005bee;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    white-space: normal;
    max-width: 300px;
    z-index: 100;
    margin-top: 5px;
    display: none;
}

/* Scroll animasyonu */
html {
    scroll-behavior: smooth;
}

/* Tıklanmış aktif harf */
.apl-letter.current {
    background: #0005bee !important;
    color: #ffffff !important;
    border: 2px solid #0005bee !important;
}

/* Responsive Tasarım */
@media (max-width: 1024px) {
    .apl-posts-list {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .apl-alphabet-nav {
        gap: 6px;
        padding: 15px;
    }
    
    .apl-letter {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .apl-posts-container {
        padding: 20px;
    }
    
    .apl-letter-heading {
        font-size: 24px;
    }
    
    .apl-posts-list {
        column-count: 1;
    }
    
    .apl-post-item a {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .apl-post-item a:hover {
        padding-left: 18px;
    }
}

@media (max-width: 480px) {
    .apl-alphabet-nav {
        gap: 4px;
        padding: 12px;
    }
    
    .apl-letter {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    
    .apl-posts-container {
        padding: 15px;
    }
    
    .apl-letter-heading {
        font-size: 20px;
    }
    
    .apl-post-item a {
        padding: 10px 12px;
        font-size: 13px;
    }
}
