/* Consolidated styles for public-facing pages (Blogs, Notices, Gallery).
   Loaded by App.razor on public routes. */

/* ----------------------------------------------------------------------
   Blog detail
   ---------------------------------------------------------------------- */
.blog-hero {
    width: 100%;
    height: auto;
    display: block;
    overflow: hidden;
    background: #f6f6f6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .25);
    padding: 20px;
    border-radius: 1.25rem;
}
   .blog-hero img {
    width: 100%;
    height: auto;
    border-radius: 1.25rem;
    box-shadow: 0 18px 48px rgba(16, 24, 40, .22), 0 6px 12px rgba(16, 24, 40, .10);
    display: block;
}

.blog-title {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.02em;
    color: #0f172a;
    margin: 0;
}

@media (max-width: 768px) {
    .blog-title { font-size: 1.85rem; }
}

.blog-date {
    font-size: 1rem;
    color: #1a1f2e;
    font-weight: 700;
    letter-spacing: .01em;
}

.blog-category {
    font-size: .8rem;
    padding: .35rem .7rem;
    border-radius: 999px;
}

.blog-body {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #334155;
}

.blog-body p { margin: 0 0 1.25rem; }

.blog-body h1,
.blog-body h2 {
    font-size: 1.85rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
    letter-spacing: -.015em;
    margin: 2.75rem 0 1rem;
}

.blog-body h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    margin: 2rem 0 .85rem;
}

.blog-body h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin: 1.5rem 0 .65rem;
}

.blog-body a {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 600;
}

.blog-body a:hover { text-decoration: underline; }

.blog-body img {
    max-width: 100%;
    height: auto;
    border-radius: .85rem;
    margin: 1.75rem 0;
    box-shadow: 0 4px 16px rgba(16, 24, 40, .06);
}

.blog-body ul,
.blog-body ol {
    margin: 0 0 1.25rem;
    padding-left: 1.5rem;
}

.blog-body li { margin-bottom: .55rem; }

.blog-body blockquote {
    border-left: 4px solid #0d6efd;
    padding: .25rem 0 .25rem 1.25rem;
    color: #475569;
    font-style: italic;
    margin: 1.75rem 0;
}

.blog-body strong { color: #1a1f2e; }

.blog-body code {
    background: #f1f5f9;
    color: #475569;
    padding: .15rem .4rem;
    border-radius: .35rem;
    font-size: .9em;
}

.blog-hero,
.blog-header,
.blog-body {
    animation: blogDetailFade .55s cubic-bezier(.22, 1, .36, 1) both;
}
.blog-header { animation-delay: 80ms; }
.blog-body   { animation-delay: 160ms; }

@keyframes blogDetailFade {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .blog-hero,
    .blog-header,
    .blog-body { animation: none; }
}

/* ----------------------------------------------------------------------
   Blog index (/blogs)
   ---------------------------------------------------------------------- */
.blogs-header {
    text-align: left;
    padding-top: .5rem;
}

.blogs-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: .35rem .8rem;
    background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%);
    color: #b45309;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: .75rem;
}

.blogs-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 .5rem;
    line-height: 1.18;
    letter-spacing: -.02em;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
}

.blogs-title i { color: #d97706; font-size: 2rem; }
.blogs-subtitle { color: #475569; font-size: 1.05rem; margin: 0; }

@media (max-width: 768px) {
    .blogs-title { font-size: 1.85rem; }
}

.blogs-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.75rem;
    padding: .85rem 1rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.blogs-toolbar-categories {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    flex: 1 1 auto;
}

.blogs-chip {
    display: inline-flex;
    align-items: center;
    padding: .4rem .85rem;
    font-size: .85rem;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    border-radius: 999px;
    text-decoration: none;
    transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.blogs-chip:hover {
    background: #fef3c7;
    color: #92400e;
    transform: translateY(-1px);
}

.blogs-chip.is-active {
    background: #d97706;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(217, 119, 6, .28);
}

.blogs-toolbar-sort {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-left: auto;
}

.blogs-sort-label {
    font-size: .82rem;
    font-weight: 600;
    color: #64748b;
    margin: 0;
}

.blogs-sort-select {
    appearance: none;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: .55rem;
    padding: .4rem 2rem .4rem .85rem;
    font-size: .85rem;
    font-weight: 600;
    color: #0f172a;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .65rem center;
    cursor: pointer;
}

.blogs-sort-select:focus {
    outline: 2px solid #fcd34d;
    outline-offset: 2px;
}

.blogs-empty {
    text-align: center;
    padding: 4rem 1.5rem;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 1.25rem;
}

.blogs-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%);
    color: #b45309;
    border-radius: 50%;
    font-size: 1.65rem;
}

.blogs-empty-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 .35rem;
}

.blogs-empty-body {
    color: #64748b;
    margin: 0;
}

/* ----------------------------------------------------------------------
   Notice detail
   ---------------------------------------------------------------------- */
.notice-hero img {
    width: 100%;
    height: auto;
    border-radius: 1.25rem;
    box-shadow: 0 10px 30px rgba(16, 24, 40, .10);
    display: block;
}

.notice-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.notice-pill {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .3rem .8rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    border-radius: 999px;
}

.notice-pill-category { background: #ede9fe; color: #5b21b6; }
.notice-pill-upcoming { background: #dcfce7; color: #166534; }
.notice-pill-expired  { background: #fee2e2; color: #991b1b; }
.notice-pill i { font-size: .85rem; }

.notice-title {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -.02em;
    color: #0f172a;
    margin: 0;
}

@media (max-width: 768px) {
    .notice-title { font-size: 1.85rem; }
}

.notice-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem .75rem;
    align-items: center;
    margin-top: 1rem;
    color: #475569;
    font-size: .95rem;
}

.notice-meta-item {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.notice-meta-item i { color: #6366f1; font-size: 1rem; }
.notice-meta-item strong { color: #0f172a; font-weight: 700; }
.notice-meta-divider { color: #cbd5e1; }

.notice-body {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #334155;
    margin-top: 1.75rem;
}

.notice-body p { margin: 0 0 1.25rem; }

.notice-body h1,
.notice-body h2 {
    font-size: 1.85rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
    letter-spacing: -.015em;
    margin: 2.75rem 0 1rem;
}

.notice-body h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    margin: 2rem 0 .85rem;
}

.notice-body h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin: 1.5rem 0 .65rem;
}

.notice-body a {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 600;
}

.notice-body a:hover { text-decoration: underline; }

.notice-body img {
    max-width: 100%;
    height: auto;
    border-radius: .85rem;
    margin: 1.75rem 0;
    box-shadow: 0 4px 16px rgba(16, 24, 40, .06);
}

.notice-body ul,
.notice-body ol {
    margin: 0 0 1.25rem;
    padding-left: 1.5rem;
}

.notice-body li { margin-bottom: .55rem; }

.notice-body blockquote {
    border-left: 4px solid #6366f1;
    padding: .25rem 0 .25rem 1.25rem;
    color: #475569;
    font-style: italic;
    margin: 1.75rem 0;
}

.notice-body strong { color: #1a1f2e; }

.notice-body code {
    background: #f1f5f9;
    color: #475569;
    padding: .15rem .4rem;
    border-radius: .35rem;
    font-size: .9em;
}

.notice-attachment {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #eff6ff 0%, #ede9fe 100%);
    border: 1px solid #c7d2fe;
    border-radius: 1rem;
}

.notice-attachment-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #ffffff;
    color: #4338ca;
    border-radius: 50%;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.notice-attachment-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1 1 auto;
}

.notice-attachment-label {
    font-size: .72rem;
    font-weight: 700;
    color: #4338ca;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.notice-attachment-name {
    font-size: .95rem;
    font-weight: 600;
    color: #1e293b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notice-attachment-button {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .55rem 1.1rem;
    background: #0d6efd;
    color: #ffffff;
    border-radius: 999px;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 600;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
    flex-shrink: 0;
}

.notice-attachment-button:hover {
    background: #0b5ed7;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(13, 110, 253, .35);
    color: #ffffff;
}

@media (max-width: 540px) {
    .notice-attachment { flex-wrap: wrap; }
    .notice-attachment-button { width: 100%; justify-content: center; }
}

.notice-back-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: gap .18s ease;
}

.notice-back-link:hover {
    gap: .55rem;
    text-decoration: underline;
}

.notice-hero,
.notice-header,
.notice-body,
.notice-attachment {
    animation: noticeDetailFade .55s cubic-bezier(.22, 1, .36, 1) both;
}
.notice-header     { animation-delay: 80ms; }
.notice-body       { animation-delay: 160ms; }
.notice-attachment { animation-delay: 240ms; }

@keyframes noticeDetailFade {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .notice-hero,
    .notice-header,
    .notice-body,
    .notice-attachment { animation: none; }
}

/* ----------------------------------------------------------------------
   Notice index (/notices)
   ---------------------------------------------------------------------- */
.notice-board { max-width: none; }

.notice-board-header {
    text-align: left;
    padding: 1.5rem 0 0.5rem;
}

.notice-board-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem .75rem;
    background: linear-gradient(135deg, #eff6ff 0%, #ede9fe 100%);
    color: #4338ca;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: .85rem;
}

.notice-board-eyebrow i { font-size: .85rem; }

.notice-board-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.15;
    letter-spacing: -.02em;
    margin: 0 0 .55rem;
}

.notice-board-subtitle {
    color: #475569;
    font-size: 1.05rem;
    margin: 0;
}

@media (max-width: 768px) {
    .notice-board-title { font-size: 1.85rem; }
}

.notice-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.5rem;
    padding: .85rem 1rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.notice-toolbar-categories {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    flex: 1 1 auto;
}

.notice-chip {
    display: inline-flex;
    align-items: center;
    padding: .4rem .85rem;
    font-size: .85rem;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    border-radius: 999px;
    text-decoration: none;
    transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.notice-chip:hover {
    background: #e0e7ff;
    color: #1e293b;
    transform: translateY(-1px);
}

.notice-chip.is-active {
    background: #0d6efd;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(13, 110, 253, .25);
}

.notice-toolbar-sort {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-left: auto;
}

.notice-sort-label {
    font-size: .82rem;
    font-weight: 600;
    color: #64748b;
    margin: 0;
}

.notice-sort-select {
    appearance: none;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: .55rem;
    padding: .4rem 2rem .4rem .85rem;
    font-size: .85rem;
    font-weight: 600;
    color: #0f172a;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .65rem center;
    cursor: pointer;
}

.notice-sort-select:focus {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}

.notice-list { display: grid; gap: .85rem; }

.notice-card {
    position: relative;
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 1.25rem;
    align-items: stretch;
    padding: 1.1rem 1.35rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    animation: noticeCardEntrance .55s cubic-bezier(.22, 1, .36, 1) both;
    animation-delay: calc(var(--i) * 60ms);
}

.notice-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #2563eb 0%, #7c3aed 100%);
    opacity: 0;
    transition: opacity .22s ease;
}

.notice-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, .08);
    border-color: #c7d2fe;
}

.notice-card:hover::before { opacity: 1; }

.notice-card-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #f1f5f9 0%, #e0e7ff 100%);
    border-radius: .85rem;
    padding: .75rem .5rem;
    text-align: center;
    line-height: 1;
    min-width: 88px;
}

.notice-card-date-day {
    font-size: 1.65rem;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -.03em;
}

.notice-card-date-month {
    margin-top: .15rem;
    font-size: .72rem;
    font-weight: 700;
    color: #4338ca;
    letter-spacing: .12em;
}

.notice-card-date-year {
    margin-top: .15rem;
    font-size: .68rem;
    font-weight: 600;
    color: #64748b;
    letter-spacing: .04em;
}

.notice-card-body {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    min-width: 0;
}

.notice-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    align-items: center;
}

.notice-card-category {
    display: inline-flex;
    align-items: center;
    padding: .2rem .65rem;
    background: #ede9fe;
    color: #5b21b6;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    border-radius: 999px;
}

.notice-card-status {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .2rem .65rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    border-radius: 999px;
}

.notice-card-status-new      { background: #dcfce7; color: #166534; }
.notice-card-status-expired  { background: #fee2e2; color: #991b1b; }
.notice-card-status i { font-size: .8rem; }

.notice-card-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    letter-spacing: -.01em;
}

.notice-card:hover .notice-card-title { color: #1d4ed8; }

.notice-card-cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .85rem;
    font-weight: 600;
    color: #2563eb;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity .22s ease, transform .22s ease;
}

.notice-card:hover .notice-card-cta {
    opacity: 1;
    transform: translateX(0);
}

.notice-card-cta i { transition: transform .22s ease; }
.notice-card:hover .notice-card-cta i { transform: translateX(3px); }

@media (max-width: 576px) {
    .notice-card {
        grid-template-columns: 64px 1fr;
        gap: .85rem;
        padding: .9rem 1rem;
    }
    .notice-card-date {
        min-width: 64px;
        padding: .55rem .35rem;
    }
    .notice-card-date-day { font-size: 1.3rem; }
    .notice-card-title { font-size: 1.02rem; }
    .notice-card-cta { display: none; }
}

.notice-empty {
    text-align: center;
    padding: 3.5rem 1.5rem;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 1.25rem;
}

.notice-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #eff6ff 0%, #ede9fe 100%);
    color: #4338ca;
    border-radius: 50%;
    font-size: 1.65rem;
}

.notice-empty-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 .35rem;
}

.notice-empty-body {
    color: #64748b;
    margin: 0;
}

.notice-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .35rem;
    margin-top: 2rem;
}

.notice-pagination-page,
.notice-pagination-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 .65rem;
    font-size: .9rem;
    font-weight: 600;
    color: #1e293b;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    text-decoration: none;
    transition: background-color .18s ease, color .18s ease, transform .18s ease, border-color .18s ease;
}

.notice-pagination-page:hover,
.notice-pagination-arrow:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
    transform: translateY(-1px);
}

.notice-pagination-page.is-active {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(13, 110, 253, .28);
}

.notice-pagination-arrow.is-disabled {
    opacity: .4;
    pointer-events: none;
}

.notice-pagination-ellipsis {
    padding: 0 .35rem;
    color: #94a3b8;
    font-weight: 700;
}

@keyframes noticeCardEntrance {
    from {
        opacity: 0;
        transform: translateY(14px);
        clip-path: inset(0 100% 0 0);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        clip-path: inset(0 0 0 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .notice-card { animation: none; }
    .notice-card:hover { transform: none; }
    .notice-card-cta { opacity: 1; transform: none; }
}

/* ----------------------------------------------------------------------
   Gallery album detail (lightbox)
   ---------------------------------------------------------------------- */
.lightbox-thumb { background: transparent; border: 0; }
.lightbox-thumb img { transition: transform .15s; }
.lightbox-thumb:hover img { transform: scale(1.02); }

.lightbox {
    position: fixed; inset: 0; background: rgba(0, 0, 0, .85);
    display: flex; align-items: center; justify-content: center; z-index: 1080;
}

.lightbox-figure { margin: 0; max-width: 90vw; max-height: 90vh; text-align: center; color: #fff; }
.lightbox-figure img { max-width: 100%; max-height: 80vh; border-radius: .5rem; }
.lightbox-figure figcaption { margin-top: .5rem; }

.lightbox-nav,
.lightbox-close {
    position: absolute; background: rgba(255, 255, 255, .15); color: #fff; border: 0;
    border-radius: 999px; width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
}

.lightbox-nav:hover,
.lightbox-close:hover { background: rgba(255, 255, 255, .3); }

.lightbox-prev  { left: 24px; }
.lightbox-next  { right: 24px; }
.lightbox-close { top: 24px; right: 24px; }
