/* Main Container Styles */
.all-advisor-story-gallery-carousel {
    display: flex;
    gap: 20px;
    padding: 20px;
    overflow-x: auto !important;
    scrollbar-width: thin;
    scrollbar-color: hotpink #2a2a2a;
    background: #1a1a1a;
    border-radius: 0px 0px 0px 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

/* Scrollbar Styling */
.all-advisor-story-gallery-carousel::-webkit-scrollbar {
    height: 8px;
}

.all-advisor-story-gallery-carousel::-webkit-scrollbar-track {
    background: #2a2a2a;
    border-radius: 10px;
}

.all-advisor-story-gallery-carousel::-webkit-scrollbar-thumb {
    background-color: hotpink;
    border-radius: 10px;
    border: 1px solid #800080;
}

/* Story Card Styles */
.story-card {
    position: relative;
    width: 250px;
    min-width: 250px;
    height: 400px;
    background: #2a2a2a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(128, 0, 128, 0.3);
}

/* Story Owner */
.story-owner {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* New Badge */
.new-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: hotpink;
    color: white;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: bold;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Story Image */
.story-image {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.story-card:hover .story-image img {
    transform: scale(1.05);
}

/* Average Rating */
.average-rating {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: gold;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 3px;
}

.star-icon {
    color: gold;
    font-size: 16px;
}

/* Story Info */
.story-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(to bottom, #2a2a2a, #1a1a1a);
}

.story-title {
    font-size: 16px;
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
    line-height: 1.3;
    flex-grow: 1;
}

.story-price {
    margin-bottom: 15px;
    font-size: 18px;
    color: white;
}

/* Buttons */
.story-info button {
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.view-story-trigger {
    background: #800080;
    color: white;
}

.view-story-trigger:hover:not(:disabled) {
    background: hotpink;
}

.view-story-trigger:disabled {
    background: #444;
    color: #777;
    cursor: not-allowed;
}

.stories-add-to-cart-button {
    background: hotpink;
    color: white;
}

.stories-add-to-cart-button:hover {
    background: #ff69b4;
    box-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
}

.stories-added-to-cart-button {
    background: #4CAF50;
    color: white;
    cursor: default;
}

.buy-now-button-stories {
    background: linear-gradient(to right, #800080, hotpink);
    color: white;
}

.buy-now-button-stories:hover:not(:disabled) {
    background: linear-gradient(to right, hotpink, #800080);
    box-shadow: 0 0 15px rgba(128, 0, 128, 0.5);
}

.buy-now-button-stories:disabled {
    background: #444;
    color: #777;
    cursor: not-allowed;
}

/* Filter Container */
.filter-container {
    margin-bottom: 20px;
    text-align: right;
}

#story-filter {
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid #800080;
    background: #2a2a2a;
    color: white;
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

#story-filter option {
    background: #2a2a2a;
}

/* Modal Styles */
.story-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.story-modal.show {
    opacity: 1;
}

.story-modal-content {
    position: relative;
    background: #2a2a2a;
    margin: 5% auto;
    padding: 30px;
    width: 70%;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    transform: translateY(-50px);
    transition: transform 0.3s ease;
    color: white;
}

.story-modal.show .story-modal-content {
    transform: translateY(0);
}

.story-close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.story-close:hover {
    color: hotpink;
}

#modal-story-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: hotpink;
    border-bottom: 1px solid #800080;
    padding-bottom: 10px;
}

#modal-story-price {
    font-size: 18px;
    margin-bottom: 20px;
    color: white;
}

#modal-story-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

#modal-story-content {
    line-height: 1.6;
    margin-bottom: 20px;
}

.story-star-rating {
    display: flex;
    gap: 5px;
    margin-top: 20px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .all-advisor-story-gallery-carousel {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .right-box {
        width: 100%;
        height: auto;
        padding: 15px;
    }
    
    .story-modal-content {
        width: 90%;
        padding: 20px;
    }
}