﻿/* ============================================================
   SHARED STORY STYLES — USED ACROSS ALL STORY PAGES
   ============================================================ */

/* Page Intro */
.stories-intro {
    max-width: 700px;
    margin: 0 auto 2rem auto;
    text-align: center;
}

    .stories-intro h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
        color: var(--text);
    }

    .stories-intro p {
        color: var(--text-muted);
        margin-bottom: 1.25rem;
        line-height: 1.6;
        font-weight: 500;
    }

/* Buttons */
.primary-btn {
    background: var(--primary);
    color: var(--on-primary);
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s ease;
}

    .primary-btn:hover {
        background: var(--primary-hover);
    }

.secondary-btn {
    background: var(--surface-alt);
    color: var(--text);
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s ease;
}

    .secondary-btn:hover {
        background: var(--surface-hover);
    }

/* Story Grid */
.stories-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    margin-left: 0.75rem;
}

/* Story Card */
.story-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

    .story-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    }

    .story-card h3 {
        margin-bottom: 0.5rem;
        color: var(--text);
    }

    .story-card .primary-btn {
        display: inline-block !important;
        width: auto !important;
        padding: 0.35rem 0.75rem;
        font-size: 0.85rem;
        margin-top: auto;
    }

.story-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.story-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Empty State */
.stories-empty,
.empty-state {
    text-align: center;
    margin-top: 3rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Tags */
.story-tags {
    margin-top: 10px;
}

.tag-badge {
    display: inline-block;
    background: #e0e0e0;
    padding: 3px 8px;
    margin-right: 5px;
    border-radius: 4px;
    font-size: 0.85rem;
    text-decoration: none;
    color: #333;
}

    .tag-badge:hover {
        background: #d0d0d0;
    }

/* ============================================================
   STORIES.ASPX BUTTON COLORS
   ============================================================ */

/* Share a Story (top of page) */
.share-story-btn {
    background: #2a6fdb; /* bright friendly blue */
    color: #fff;
}

    .share-story-btn:hover {
        background: #1f56ad;
    }

/* Read Story (inside cards) */
.read-story-btn {
    background: #4caf50; /* warm green */
    color: #fff;
}

    .read-story-btn:hover {
        background: #3d8b40;
    }

/* ============================================================
   MODAL — CLEAN, MODERN, CONSISTENT
   ============================================================ */

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 9999;
    backdrop-filter: blur(3px);
}

    .modal.show {
        display: flex !important;
    }

.modal-content {
    background: var(--surface);
    padding: 2rem 3rem 2rem 2rem;
    border-radius: 14px;
    width: 100%;
    max-width: 520px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 35px rgba(0,0,0,0.18);
    animation: modalFadeIn 0.25s ease-out;
}

    /* Title */
    .modal-content h2 {
        margin-bottom: 1.4rem;
        font-size: 1.45rem;
        font-weight: 700;
        color: var(--text);
        text-align: center;
    }

    /* Labels */
    .modal-content label {
        display: block;
        margin-top: 1.25rem;
        margin-bottom: 0.4rem;
        font-weight: 600;
        color: var(--text);
        font-size: 0.95rem;
    }

    /* Inputs */
    .modal-content input[type="text"],
    .modal-content textarea,
    .modal-content input[type="file"] {
        width: 100%;
        padding: 0.75rem;
        border-radius: 8px;
        border: 1px solid var(--border);
        background: var(--surface-alt);
        color: var(--text);
        font-size: 0.95rem;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

        .modal-content input:focus,
        .modal-content textarea:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(100, 150, 255, 0.25);
            outline: none;
        }

    /* Textarea */
    .modal-content textarea {
        resize: vertical;
        min-height: 160px;
    }

/* Checkbox Row */
.checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1rem;
}

    .checkbox-row label {
        margin: 0 !important;
        padding: 0;
    }

/* Modal Actions */
.modal-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

    .modal-actions .primary-btn,
    .modal-actions .secondary-btn {
        padding: 0.55rem 1.1rem;
        font-size: 0.95rem;
    }

    /* ============================================================
   MODAL BUTTON COLORS — HIGH CONTRAST
   ============================================================ */

    .modal-actions .primary-btn {
        background: #1e63c6; /* rich blue */
        color: #ffffff; /* pure white text */
    }

        .modal-actions .primary-btn:hover {
            background: #174d9a; /* darker hover */
        }

    .modal-actions .secondary-btn {
        background: #e5e5e5; /* soft gray */
        color: #333; /* dark readable text */
        border: 1px solid #ccc;
    }

        .modal-actions .secondary-btn:hover {
            background: #d6d6d6;
        }