/* ===================================
   📚 Admin Thumbnail Preview Styles
=================================== */
.na-thumb {
    position: relative;
    width: 90px;
    height: 90px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 6px 6px 6px 0;
    display: inline-block;
    border-radius: 6px;
    transition: box-shadow 0.2s ease;
}


.na-remove {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #e74c3c;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    padding: 10px 13px;
    border-radius: 50%;
    border: none;
    transition: background-color 0.2s ease;
}

.na-remove:hover,
.na-remove:focus {
    background: #c0392b;
    outline: none;
}

/* ===================================
   🧾 Admin Header and Notices
=================================== */
.na-header {
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.na-header h1 {
    font-size: 2.4rem;
    font-weight: 700;
    color: #004d33;
    margin: 0;
}

.na-save-notice {
    padding: 8px 1.5rem;
    background-color: #d7f5e9;
    border-left: 4px solid #007a5c !important;
    font-size: 15px;
    color: #004d33 !important;
    border-radius: 4px;
}

/* ===================================
   🔘 Buttons Styling
=================================== */
.na-header-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.na-header-buttons .button,
.na-entry .delete-na-entry {
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
    user-select: none;
    height: 100%;
}

.na-header-buttons .button-primary {
    background-color: #00573f;
    color: #fff;
    border: none;
    border-radius: 8px;
}

.na-header-buttons .button-primary:hover,
.na-header-buttons .button-primary:focus {
    background-color: #007a5c;
    outline: none;
}

.na-header-buttons .add-na-entry.button {
    background-color: #f5f5f5;
    color: #333;
    border-radius: 8px;
}

.na-header-buttons .add-na-entry.button:hover,
.na-header-buttons .add-na-entry.button:focus {
    background-color: #e0e0e0;
    border-color: #888;
    outline: none;
}

/* ===================================
   🗂️ Entry Sections (Admin)
=================================== */
.admin-na-header {
    padding: 0.7rem 1.5rem;
    background-color: #00573f;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 600;
    border-radius: 6px;
}

.na-entry {
    padding: 1rem 1.25rem;
    margin: 0.75rem 0;
    background: #fefefe;
    border-radius: 8px;
}

/* Archive checkbox visually hidden */
.na-archive-checkbox {
    display: none !important;
}

.na-admin {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
}

/* Archive and Date */
.na-admin-container {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
}


/* Archive/Restore buttons */
.archive-btn {
    border: none;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.5rem 2rem !important;
    cursor: pointer;
    height: 100%;
    transition: background-color 0.3s ease;
}

.archive-btn.archive-only-btn {
    background-color: #FFA500;
    color: black;
    
}

.archive-btn.archive-only-btn:hover {
    background-color: #ffb62f;
}

.archive-btn.restore-btn {
    background-color: #e0e0e0;
    color: black;
}

.archive-btn.restore-btn:hover {
    background-color: #ececec;
}

/* Input: date field */
.na-entry input[type="date"] {
    min-width: 160px;
    padding: 0 1rem;
    font-size: 0.85rem;
    border-radius: 6px;
    border: 1px solid #bbb;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.na-entry input[type="date"]:focus {
    border-color: #007a5c;
    outline: none;
}

/* Upload button */
.upload-na.button {
    background-color: #007a5c;
    color: white;
    padding: 0rem 1rem;
    font-weight: 600;
    font-size: 0.8rem;
}

.upload-na.button:hover,
.upload-na.button:focus {
    background-color: #00573f;
    outline: none;
    color: white;
}

/* Delete button */
.delete-na-entry {
    text-decoration: none;
    background: #e74c3c !important;
    color: white !important;
    font-weight: 600;
}

.delete-na-entry:hover,
.delete-na-entry:focus {
    background-color: #c0392b !important;
    outline: none;
}

/* Preview container */
.na-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex-grow: 1;
    min-width: 150px;
    padding: 2rem 0 0 0;
}

.na-preview .na-thumb {
    width: 110px;
    height: 140px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

/* ===================================
   📁 Archived Entries Section
=================================== */
#na-archived-entries {
    opacity: 0.75;
    filter: grayscale(10%);
}

.na-archive-summary {
    margin-top: 6rem;
    font-size: 1.1rem;
    font-family: Arial, sans-serif;
    color: #004d33;
    user-select: none;
}

.na-archive-summary ul {
    list-style: disc inside;
    padding-left: 1.2rem;
}

/* ===================================
   🖼️ Frontend Accordion Styles
=================================== */
.na-toggle {
    width: 100%;
    padding: 1rem 1.2rem;
    text-align: left;
    border: none;
    border-bottom: 1px solid var(--clr-primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    background: none !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-radius 0.3s ease;
}

.na-toggle:hover,
.na-toggle:focus {
    background-color: var(--clr-primary-color) !important;
    color: var(--clr-white);
    outline: none;
}

.na-toggle[aria-expanded="true"] {
    background-color: var(--clr-primary-color) !important;
    color: var(--clr-white);
    border-bottom: none;
}

.na-toggle .na-icon {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.na-toggle[aria-expanded="true"] .na-icon {
    transform: rotate(180deg);
}

.na-content {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    padding: 0 1.5rem 1.5rem 1.5rem;
    background: #fafafa;
    border-radius: 0 0 0.6rem 0.6rem;
    transition: max-height 0.45s ease, opacity 0.45s ease;
}

.na-content.na-visible {
    max-height: 1000px; /* accommodates images */
    opacity: 1;
    visibility: visible;
}

.na-grid {
    display: flex;
    flex-wrap: wrap;
    column-gap: 1rem;
    row-gap: 1rem;
    padding-top: 1rem;
}

.na-img {
    width: 162px;
    height: 230px;
    background: no-repeat center/cover;
    border: 1px solid var(--clr-primary-color);
    border-radius: 6px;
}

/* ===================================
   📐 Utility Styling
=================================== */
.na-page {
    height: clamp(20dvh, 40dvh, 50dvh);
}

.na-page h1 {
    font-size: clamp(3rem, 10vw, 9rem) !important;
    letter-spacing: -0.6px;
    line-height: 1.5;
}
