/* =====================================================
   KOLEKSİYONUM SAYFASI
   ===================================================== */

.fanchaty-collection-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 80vh;
}

/* Header */
.collection-header {
    text-align: center;
    margin-bottom: 30px;
}

.collection-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px;
}

.collection-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    margin: 0;
}

/* İstatistikler */
.collection-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #dd4791 0%, #534fe0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* Boş Durum */
.collection-empty {
    text-align: center;
    padding: 80px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.collection-empty h2 {
    font-size: 24px;
    color: #ffffff;
    margin: 0 0 10px;
}

.collection-empty p {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 24px;
}

/* Kontroller */
.collection-controls {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 24px;
}

.view-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 4px;
}

.view-btn {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.view-btn:hover {
    color: rgba(255, 255, 255, 0.8);
}

.view-btn.active {
    background: linear-gradient(135deg, #dd4791 0%, #534fe0 100%);
    color: #ffffff;
}

/* Görünümler */
.collection-view {
    display: none;
}

.collection-view.active {
    display: block;
}

/* Grid Görünüm */
.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

@media (max-width: 768px) {
    .images-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

.collection-image-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.collection-image-card:hover {
    border-color: rgba(221, 71, 145, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.image-wrapper {
    position: relative;
    aspect-ratio: 832 / 1216;
    cursor: pointer;
    overflow: hidden;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.collection-image-card:hover .image-wrapper img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.collection-image-card:hover .image-overlay {
    opacity: 1;
}

.zoom-icon {
    font-size: 32px;
}

.image-info {
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-name {
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
}

.unlock-date {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

/* Gruplu Görünüm */
.chatbot-group {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 24px;
}

.group-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.group-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.group-info {
    flex: 1;
}

.group-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 4px;
}

.group-count {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.btn-chat-link {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #ffffff;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-chat-link:hover {
    background: rgba(221, 71, 145, 0.1);
    border-color: rgba(221, 71, 145, 0.3);
    color: #ffffff;
}

.group-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    padding: 20px;
}

.group-images .collection-image-card {
    background: transparent;
    border: none;
}

.group-images .collection-image-card .image-info {
    display: none;
}

/* Lightbox */
.collection-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.collection-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

#lightboxImage {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
}

.lightbox-caption {
    margin-top: 16px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive */
@media (max-width: 768px) {
    .fanchaty-collection-page {
        padding: 24px 16px;
    }
    
    .collection-header h1 {
        font-size: 28px;
    }
    
    .collection-stats {
        gap: 30px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .group-header {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .btn-chat-link {
        width: 100%;
        text-align: center;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
    }
}