/* -------------------------------------------------------
   HuntStory List Page
------------------------------------------------------- */

.huntstory-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem;
}

.huntstory-list {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.huntstory-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
}

.huntstory-list-item:hover {
    background: #fafafa;
}

.huntstory-list-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 4px;
}

.huntstory-list-meta {
    flex: 1;
}

.huntstory-list-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.huntstory-list-date {
    font-size: 0.9rem;
    color: #666;
}


/* -------------------------------------------------------
   HuntStory Detail Page
------------------------------------------------------- */

.huntstory-header {
    max-width: 900px;
    margin: 0 auto 2rem auto;
    text-align: center;
    padding: 1rem;
}

.huntstory-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.huntstory-date {
    font-size: 1rem;
    color: #666;
}


/* -------------------------------------------------------
   Timeline Layout
------------------------------------------------------- */

.timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding: 2rem 1rem;
}

/* Vertical spine */
.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: #ddd;
    transform: translateX(-50%);
}

/* Add Entry Button */
.timeline-add {
    text-align: center;
    margin: 3rem 0;
}

.timeline-add button {
    padding: 0.75rem 1.5rem;
    background: #222;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.timeline-add button:hover {
    background: #000;
}


/* -------------------------------------------------------
   Timeline Entry
------------------------------------------------------- */

.timeline-entry {
    position: relative;
    margin: 3rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Dot on the spine */
.timeline-entry::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 14px;
    height: 14px;
    background: white;
    border: 3px solid #222;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* Entry content container */
.timeline-entry-content {
    width: 100%;
    max-width: 600px;
    margin-top: 1.5rem;
    text-align: center;
}


/* -------------------------------------------------------
   Film Negative Frame
------------------------------------------------------- */

.film-frame {
    background: #000;
    padding: 12px;
    border-radius: 6px;
    position: relative;
    margin-bottom: 1rem;
}

/* Sprocket holes */
.film-frame::before,
.film-frame::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 8px;
    background-image: repeating-linear-gradient(
        to right,
        transparent 0,
        transparent 12px,
        #333 12px,
        #333 24px
    );
}

.film-frame::before {
    top: 0;
}

.film-frame::after {
    bottom: 0;
}

.film-frame img {
    width: 100%;
    display: block;
    border-radius: 4px;
}


/* -------------------------------------------------------
   Entry Metadata
------------------------------------------------------- */

.entry-timestamp {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.entry-narration {
    font-size: 1rem;
    line-height: 1.5;
    white-space: pre-wrap;
    margin-top: 0.5rem;
}


/* -------------------------------------------------------
   Inline Narration Editor
------------------------------------------------------- */

.entry-narration-edit {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.entry-narration-edit textarea {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    resize: vertical;
}

.entry-narration-edit-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 0.5rem;
}

.entry-narration-edit-actions button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.entry-narration-edit-actions .save {
    background: #222;
    color: white;
}

.entry-narration-edit-actions .cancel {
    background: #ddd;
}


/* -------------------------------------------------------
   Responsive
------------------------------------------------------- */

@media (max-width: 600px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-entry::before {
        left: 20px;
    }

    .timeline-entry-content {
        margin-left: 40px;
        text-align: left;
    }
}

.huntstory-list-item {
    transition: background-color 0.2s ease;
}

.huntstory-list-item:hover {
    background-color: #f0f0f0;
}

.huntstory-list-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #222;
    text-decoration: underline;
}