

.category-stories-section {
    margin: 0 !important;
    padding: 10px 0;
    position: relative;
}

.category-stories-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.category-stories-wrapper {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0 !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.category-stories-wrapper::-webkit-scrollbar {
    display: none;
}

.category-story {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
    max-width: 100px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s;
}

.category-story:hover {
    transform: translateY(-5px);
}

.category-story-ring {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(45deg, #7c3aed, #a78bfa);
    padding: 3px;
    margin-bottom: 8px;
}

.category-story-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #fff;
    overflow: hidden;
    position: relative;
}

.category-story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.category-story:hover .category-story-image img {
    transform: scale(1.1);
}

.category-story-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #1e293b;
    text-align: center;
    margin: 0;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Modal Tasarımı - Modern Versiyon */
.category-story-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: opacity 0.3s ease;
}

.category-story-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.category-story-modal-content {
    width: 100%;
    max-width: 500px;
    height: 80vh;
    max-height: 800px;
    background-color: #fff;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: scale(0.95);
    animation: scaleIn 0.3s ease forwards;
}

@keyframes scaleIn {
    from { transform: scale(0.95); }
    to { transform: scale(1); }
}

.category-story-modal-header {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.category-story-modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-story-modal-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #7c3aed;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease;
}

.category-story-modal-avatar:hover {
    transform: scale(1.05);
}

.category-story-modal-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-story-modal-avatar:hover img {
    transform: scale(1.1);
}

.category-story-modal-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    transition: color 0.3s ease;
}

.category-story-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    background-color: rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-story-modal-close:hover {
    background-color: rgba(0, 0, 0, 0.15);
    transform: rotate(90deg);
}

.category-story-modal-close svg {
    width: 20px;
    height: 20px;
    color: #1e293b;
    transition: color 0.3s ease;
}

.category-story-modal-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f1f5f9;
}

.category-story-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.category-story-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.2);
    z-index: 11;
    overflow: hidden;
    border-radius: 0;
}

.category-story-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
    width: 0;
    transition: width 5s linear;
    border-radius: 0;
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.5);
}

.category-story-modal-next,
.category-story-modal-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0.8;
}

.category-story-modal-prev {
    left: 20px;
}

.category-story-modal-next {
    right: 20px;
}

.category-story-modal-next:hover,
.category-story-modal-prev:hover {
    background-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
}

.category-story-modal-next svg,
.category-story-modal-prev svg {
    width: 28px;
    height: 28px;
    color: #fff;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.category-story-modal-next.disabled,
.category-story-modal-prev.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.category-story-modal-next.disabled:hover,
.category-story-modal-prev.disabled:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%);
}

/* Dark mode uyumluluğu */
body.dark-mode .category-story-modal-content {
    background-color: #1e293b;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

body.dark-mode .category-story-modal-header {
    background-color: rgba(30, 41, 59, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

body.dark-mode .category-story-modal-name {
    color: #e2e8f0;
}

body.dark-mode .category-story-modal-close {
    background-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .category-story-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .category-story-modal-close svg {
    color: #e2e8f0;
}

body.dark-mode .category-story-modal-image {
    background-color: #0f172a;
}

body.dark-mode .category-story-name {
    color: #e2e8f0;
}

body.dark-mode .category-story-progress {
    background-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .category-story-progress-bar {
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .category-story {
        min-width: 80px;
        max-width: 80px;
    }
    
    .category-story-ring {
        width: 70px;
        height: 70px;
    }
    
    .category-story-name {
        font-size: 0.8rem;
    }
    
    .category-story-modal-content {
        width: 95%;
        height: 75vh;
        border-radius: 20px;
    }
    
    .category-story-modal-avatar {
        width: 38px;
        height: 38px;
    }
    
    .category-story-modal-name {
        font-size: 1rem;
    }
    
    .category-story-modal-next,
    .category-story-modal-prev {
        width: 40px;
        height: 40px;
    }
    
    .category-story-modal-next svg,
    .category-story-modal-prev svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 576px) {
    .category-story {
        min-width: 70px;
        max-width: 70px;
    }
    
    .category-story-ring {
        width: 60px;
        height: 60px;
    }
    
    .category-story-name {
        font-size: 0.75rem;
    }
    
    .category-story-modal-content {
        width: 100%;
        height: 100%;
        border-radius: 0;
        max-height: none;
    }
    
    .category-story-modal-header {
        padding: 15px;
    }
    
    .category-story-modal-avatar {
        width: 36px;
        height: 36px;
    }
    
    .category-story-modal-next,
    .category-story-modal-prev {
        width: 36px;
        height: 36px;
    }
    
    .category-story-modal-next {
        right: 10px;
    }
    
    .category-story-modal-prev {
        left: 10px;
    }
} 