﻿
.story-container {
    max-width: 1000px;
}

.story-header {
    margin-bottom: 20px;
}

    .story-header h1 {
        font-weight: 700;
        letter-spacing: .5px;
    }

    .story-header .btn {
        min-width: 180px;
    }

.text-center.mb-5 {
    margin-top: 10px;
}

.urdu-text {
    font-size: 15px;
    line-height: 1.6;
}

.toggle-note {
    display: inline-block;
    background: #fff3cd;
    color: #856404;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 3px 8px rgba(0,0,0,.08);
}

label.required::after {
    content: "*";
    color: red;
    margin-left: 3px;
    font-weight: bold;
}

.selectpicker {
    width: 100% !important;
}

.btn-success {
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.story-filter-btn {
    color: #145a1a;
    border: 2px solid #145a1a;
    background: #fff;
    font-weight: 600;
}

    .story-filter-btn:hover,
    .story-filter-btn:focus,
    .story-filter-btn.active {
        background: #145a1a;
        color: #fff;
        border-color: #145a1a;
    }

/* Story Empty State */
.story-empty-state {
    background: #f8fbf7;
    border: 1px dashed #cbdcc9;
    border-radius: 16px;
    max-width: 650px;
    margin: 25px auto;
}

.story-empty-icon {
    font-size: 48px;
}

.story-empty-state h3 {
    font-size: 22px;
    font-weight: 700;
    color: #245c35;
}

.story-empty-state p {
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Story Cards */
.story-card {
    border: 1px solid #e8eee8;
    border-radius: 13px;
    overflow: hidden;
    height: 100%;
    transition: transform .2s ease, box-shadow .2s ease;
}

    .story-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 16px rgba(0,0,0,.08);
    }

.story-image-column {
    min-height: 170px;
}

.story-thumb {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 170px;
    object-fit: cover;
}

.story-card-body {
    min-width: 0;
    height: 100%;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.story-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.story-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.story-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    font-size: 12px;
    color: #555;
}

    .story-meta img {
        width: 30px;
        height: 30px;
        flex-shrink: 0;
        object-fit: cover;
    }

    .story-meta span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.story-date {
    display: block;
    margin-top: 6px;
    font-size: 11px;
}

.profile-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 34px;
    color: white;
    background: rgba(0,0,0,.6);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    text-align: center;
    line-height: 48px;
}

/* Tablet */
@media (max-width: 768px) {
    .story-header h1 {
        font-size: 28px;
    }

    .story-header .btn {
        min-width: auto;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .story-card-body {
        padding: 10px;
    }

    .story-image-column,
    .story-thumb {
        min-height: 145px;
    }

    .story-title {
        font-size: 14px;
        line-height: 1.35;
    }

    .story-desc {
        font-size: 12px;
        line-height: 1.4;
        -webkit-line-clamp: 3;
        margin-bottom: 6px;
    }

    .story-card small {
        font-size: 10px;
    }

    .story-header h1 {
        font-size: 27px;
        line-height: 1.2;
    }

    .story-empty-state {
        margin: 15px 5px;
        padding: 30px 15px !important;
    }
}
