/* Story Page Styles */
.container {
    margin: 0 auto;
    padding: 20px;
    max-width: 1200px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.story-content {
    background-color: #FFFFFF;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
    max-width: 800px;
    margin: 0 auto 30px;
}

.story-thumbnail {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.section-title {
    font-size: 2rem;
    font-weight: bold;
    display: inline-block;
    position: relative;
    padding-bottom: 8px;
    color: #222;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 8px;
    left: 20%;
    width: 60%;
    height: 3px;
    background: linear-gradient(to right, #ff9800, #f44336);
    border-radius: 2px;
}

.story-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.story-body {
    font-size: 1rem;
    line-height: 1.8;
    color: #2C2C2C;
    margin-bottom: 20px;
}

.action-form {
    margin-bottom: 20px;
}

.action-form.inline {
    display: inline-flex;
    margin: 0;
    padding: 0;
}

.action-form.inline button {
    padding: 0;
    margin: 0;
    line-height: 1.5;
}

.btn {
    background: linear-gradient(to right, #ff9800, #f44336);
    color: #FFFFFF;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background: linear-gradient(to right, #f57c00, #e53935);
    transform: scale(1.05);
}

.follow-button {
    background: linear-gradient(to right, #ff9800, #f44336);
}

.follow-button:hover {
    background: linear-gradient(to right, #f57c00, #e53935);
}

.login-prompt-button {
    background: linear-gradient(to right, #4A90E2, #357ABD);
}

.login-prompt-button:hover {
    background: linear-gradient(to right, #357ABD, #2A6099);
    transform: scale(1.05);
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Comments Section Styles */
.comments {
    max-width: 800px;
    margin: 40px auto;
    text-align: left;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 152, 0, 0.2);
}

.comments .section-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 20px;
    background: linear-gradient(to right, #ff9800, #f44336);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.comments .section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, #ff9800, #f44336);
    border-radius: 2px;
}

.action-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    resize: vertical;
    min-height: 100px;
    margin-bottom: 15px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fafafa;
    color: #2C2C2C;
}

.action-form textarea:focus {
    outline: none;
    border-color: #ff9800;
    box-shadow: 0 0 8px rgba(255, 152, 0, 0.3);
}

.action-form .btn {
    background: linear-gradient(to right, #ff9800, #f44336);
    padding: 10px 24px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 20px;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.action-form .btn:hover {
    background: linear-gradient(to right, #f57c00, #e53935);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.comment-list {
    margin-top: 30px;
}

.comment {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    border-left: 4px solid #ff9800;
}

.comment:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.comment-meta {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-meta .author-link {
    font-weight: 600;
    color: #4A90E2;
    text-decoration: none;
}

.comment-meta .author-link:hover {
    color: #357ABD;
    text-decoration: underline;
}

.comment-meta time {
    font-style: italic;
    color: #777;
}

.comment p {
    font-size: 1rem;
    line-height: 1.7;
    color: #2C2C2C;
    margin: 0;
}

.no-stories {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #eee;
}

/* Meta Styles */
.meta {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1rem;
    margin: 1rem 0;
    padding: 0.5rem;
    overflow-x: auto;
    white-space: nowrap;
    line-height: 1.5;
}

.stars {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.icon {
    width: 18px;
    height: 18px;
    fill: #ffc107;
    vertical-align: middle;
}

.star.empty {
    fill: #ccc;
}

.rating-value {
    font-size: 0.9rem;
    margin-left: 4px;
    color: #555;
    vertical-align: middle;
}

.icon-text {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #000;
    flex-shrink: 0;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    line-height: 1;
    vertical-align: middle;
}

.icon-text.liked {
    color: black;
    background-color: rgba(255, 107, 107, 0.1);
}

.icon-text:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Share Icon Styles */
.share-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #000;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    flex-shrink: 0;
    line-height: 1;
    vertical-align: middle;
}

.share-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: scale(1.05);
}

.share-btn svg {
    width: 18px;
    height: 18px;
    fill: url(#shareGradient);
}

/* Login Popup Styles */
.login-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1002;
    justify-content: center;
    align-items: center;
}

.login-popup-content {
    background: #FFFFFF;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 300px;
    width: 90%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: slideUp 0.3s ease-out;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    color: #2C2C2C;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-popup:hover {
    transform: rotate(90deg);
}

.login-popup p {
    color: #2C2C2C;
    font-size: 1rem;
    margin-bottom: 15px;
}

.login-button {
    display: inline-block;
    background: linear-gradient(to right, #4A90E2, #357ABD);
    color: #FFFFFF;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.login-button:hover {
    background: linear-gradient(to right, #357ABD, #2A6099);
    transform: scale(1.05);
}

/* Share Popup Styles */
.share-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1002;
    justify-content: center;
    align-items: center;
}

.share-popup-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    max-width: 400px;
    width: 95%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideUp 0.3s ease-out;
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.share-popup-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 20px;
    background: linear-gradient(to right, #ff9800, #f44336);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    justify-items: center;
    margin-top: 20px;
    width: 100%;
}

.share-btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    width: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.share-btn-social:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.share-btn-social svg {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.share-btn-social.twitter {
    background: linear-gradient(45deg, #1DA1F2, #0d8bf0);
}

.share-btn-social.whatsapp {
    background: linear-gradient(45deg, #25D366, #20b759);
}

.share-btn-social.facebook {
    background: linear-gradient(45deg, #3B5998, #2a4373);
}

.share-btn-social.copy {
    background: linear-gradient(45deg, #666666, #4d4d4d);
}

.share-popup .close-popup {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.8rem;
    color: #fff;
    background: linear-gradient(to right, #ff9800, #f44336);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.share-popup .close-popup:hover {
    transform: translateX(-50%) rotate(180deg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Responsive Adjustments */
@media (min-width: 768px) {
    .container {
        padding-top: 20px;
    }
}

@media (max-width: 767px) {
    .container {
        padding-top: 20px;
    }

    .nav-menu.active ~ .container {
        padding-top: 100px;
    }

    .comments {
        padding: 20px;
        margin: 20px 10px;
    }

    .comments .section-title {
        font-size: 1.5rem;
    }

    .comment {
        padding: 15px;
    }

    .action-form textarea {
        min-height: 80px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .meta {
        gap: 0.5rem;
    }

    .icon {
        width: 16px;
        height: 16px;
    }

    .rating-value, .icon-text, .share-btn {
        font-size: 0.8rem;
    }

    .share-popup-content {
        max-width: 320px;
    }

    .share-options {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .share-btn-social {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .share-btn-social svg {
        width: 18px;
        height: 18px;
    }

    .comments {
        padding: 15px;
    }

    .action-form .btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    .comment-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .comment-meta time {
        font-size: 0.85rem;
    }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}


 .container {
            margin: 0 auto;
            padding: 20px;
            max-width: 1200px;
            text-align: center;
            position: relative;
            z-index: 1;
        }
        .story-content {
            background-color: #FFFFFF;
            border-radius: 10px;
            padding: 20px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            text-align: left;
            max-width: 800px;
            margin: 0 auto 30px;
        }
        .meta {
            display: flex;
            align-items: center;
            flex-wrap: nowrap;
            gap: 1rem;
            margin: 1rem 0;
            padding: 0.5rem;
            overflow-x: auto;
            white-space: nowrap;
            line-height: 1.5;
        }
        .stars {
            display: flex;
            align-items: center;
            gap: 4px;
            flex-shrink: 0;
        }
        .icon {
            width: 18px;
            height: 18px;
            fill: #ffc107;
            vertical-align: middle;
        }
        .star.empty {
            fill: #ccc;
        }
        .share-btn {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 0.9rem;
            color: #000;
            cursor: pointer;
            padding: 4px 8px;
            border-radius: 4px;
            transition: background-color 0.3s ease, transform 0.2s ease;
        }
        .share-btn:hover {
            background-color: rgba(0, 0, 0, 0.05);
            transform: scale(1.05);
        }