﻿/* ============================================================
   STORY VIEW PAGE (story.aspx)
   ============================================================ */

#story-view {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.story-title {
    text-align: center;
    font-size: 2rem;
    color: var(--text-strong);
}

.story-photo {
    max-width: 100%;
    border-radius: 10px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.story-content {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-normal);
    margin-top: 1.5rem;
    white-space: pre-line;
}

.story-divider {
    margin: 2rem 0;
    border: none;
    border-top: 1px solid var(--border);
}

/* Reactions */
.story-likes {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reaction-btn {
    font-size: 1.2rem;
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

    .reaction-btn i {
        font-size: 1.6rem;
    }

    .reaction-btn:hover {
        transform: scale(1.15);
        transition: 0.15s ease;
    }

/* Comments */
.comments-title {
    margin-bottom: 1rem;
}

.comment {
    background: var(--surface);
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px var(--shadow);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.comment-author {
    font-weight: bold;
}

.comment-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.comment-text {
    margin: 0.25rem 0 0 0;
}

.add-comment {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.comment-input {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.comment-btn {
    margin-top: 0.5rem;
    background: var(--primary);
    color: var(--primary-contrast);
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.comment-error {
    background: #ffdddd;
    color: #990000;
    padding: 0.75rem;
    border-radius: 4px;
    margin-top: 1rem;
    border: 1px solid #cc0000;
}

.story-action-row {
    display: flex;
    gap: 12px; /* space between Edit and Delete */
    margin-top: 20px; /* space above the buttons */
}

    .story-action-row .primary-btn,
    .story-action-row .danger-btn {
        min-width: 130px;
        text-align: center;
    }

.danger-btn {
    background: #d9534f;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s ease;
}

    .danger-btn:hover {
        background: #c9302c;
    }