/* Neptune Society Notice v2.4.0
 * Responsive WordPress / Elementor-safe frontend styles.
 * Inherits the active theme/Elementor parent container width and alignment.
 * No plugin-defined page/container widths or outer gutters.
 */

.neptune-notice-card,
.neptune-notice-card *,
.neptune-notice-card *::before,
.neptune-notice-card *::after,
.neptune-notice-grid,
.neptune-notice-grid * {
    box-sizing: border-box;
}

/* =========================================================
   CARD
   ========================================================= */
.neptune-notice-card {
    --nn-navy: #063b73;
    --nn-deep: #052d59;
    --nn-blue: #006fc9;
    --nn-cyan: #009fe3;
    --nn-light-blue: #eef8fd;
    --nn-border: #dcebf5;
    --nn-text: #123b63;
    --nn-muted: #647b90;

    width: 100%;
    max-width: 560px;
    min-width: 0;
    position: relative;
    overflow: hidden;
    margin: 24px 0;
    padding: 30px;
    background: #fff;
    border: 1px solid var(--nn-border);
    border-radius: 20px;
    box-shadow: 0 10px 32px rgba(5, 59, 115, 0.09);
    font-family: Arial, Helvetica, sans-serif;
    color: var(--nn-text);
    text-align: left;
    transition: transform .3s ease, box-shadow .3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .neptune-notice-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 40px rgba(5, 59, 115, 0.14);
    }
}

.neptune-notice-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    min-width: 0;
    margin: 0 0 20px;
}

.neptune-notice-card__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin: 0;
    padding: 8px 13px;
    background: linear-gradient(135deg, #f0f9ff, #e7f5fc);
    border: 1px solid #d7ebf8;
    border-radius: 30px;
    color: var(--nn-blue);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 1.25px;
    text-transform: uppercase;
}

.neptune-notice-card__label span,
.neptune-notice-card__date span,
.neptune-notice-card__time,
.neptune-notice-card__day {
    overflow-wrap: anywhere;
}

.neptune-notice-card__notice-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    display: block;
    color: var(--nn-blue);
}

.neptune-notice-card__date {
    display: inline-flex;
    align-items: center;
    flex: 0 1 auto;
    gap: 7px;
    min-width: 0;
    padding: 8px 11px;
    background: #fff;
    border: 1px solid var(--nn-border);
    border-radius: 9px;
    color: var(--nn-navy);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
}

.neptune-notice-card__date-icon {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    display: block;
    color: var(--nn-blue);
}

.neptune-notice-card__title {
    margin: 0 0 11px !important;
    padding: 0 !important;
    color: var(--nn-navy) !important;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 29px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    letter-spacing: -0.45px;
    overflow-wrap: anywhere;
}

.neptune-notice-card__accent {
    width: 44px;
    height: 3px;
    margin: 0 0 15px;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--nn-blue), var(--nn-cyan));
}

.neptune-notice-card__description {
    max-width: 500px;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--nn-muted) !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.neptune-notice-card__divider {
    width: 100%;
    height: 1px;
    margin: 23px 0 17px;
    background: linear-gradient(90deg, var(--nn-border), #edf5fa, var(--nn-border));
}

.neptune-notice-card__timing {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    min-height: 62px;
    padding: 10px 14px;
    background: linear-gradient(105deg, #f1f9fe, #f9fcff);
    border: 1px solid #dfedf6;
    border-radius: 12px;
}

.neptune-notice-card__clock {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--nn-blue), var(--nn-cyan));
    color: #fff;
    box-shadow: 0 5px 12px rgba(0, 111, 201, 0.18);
}

.neptune-notice-card__clock svg {
    width: 18px;
    height: 18px;
    display: block;
}

.neptune-notice-card__time-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    margin-left: 12px;
}

.neptune-notice-card__time-label {
    margin: 0;
    color: var(--nn-muted);
    font-size: 9px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.neptune-notice-card__time {
    margin: 0;
    color: var(--nn-navy);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.neptune-notice-card__day {
    margin-left: auto;
    padding-left: 12px;
    color: var(--nn-blue);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    white-space: nowrap;
}

.neptune-notice-card__brand-line {
    display: flex;
    width: 100%;
    height: 3px;
    margin-top: 25px;
    overflow: hidden;
    border-radius: 10px;
}

.neptune-notice-card__brand-blue { width: 68%; background: var(--nn-blue); }
.neptune-notice-card__brand-cyan { width: 32%; background: var(--nn-cyan); }

/* =========================================================
   NOTICE LIST CONTAINER

   IMPORTANT: The plugin deliberately does NOT define a site
   container width. It fills the width provided by the theme,
   Elementor, Gutenberg, or other parent layout.
   ========================================================= */
.neptune-notice-grid {
    --nn-columns: 2;
    display: grid;
    grid-template-columns: repeat(var(--nn-columns), minmax(0, 1fr));
    align-items: start;
    gap: 24px;
    width: 100%;
    max-width: none;
    margin: 28px 0 32px;
    padding: 0;
}

/* Cards in a list fill only their grid cell and keep natural height. */
.neptune-notice-grid .neptune-notice-card {
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 0;
    align-self: start;
    margin: 0;
    padding: 30px;
}

/* Laptop / small desktop: spacing only; parent controls container width. */
@media (min-width: 992px) and (max-width: 1199px) {
    .neptune-notice-grid {
        gap: 22px;
    }

    .neptune-notice-grid .neptune-notice-card {
        padding: 27px;
    }
}

/* Tablet: parent container remains authoritative. */
@media (min-width: 768px) and (max-width: 991px) {
    .neptune-notice-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .neptune-notice-grid .neptune-notice-card {
        width: 100%;
        max-width: 560px;
        padding: 25px;
    }
}

/* Phones: no plugin outer gutter; theme/Elementor parent supplies it. */
@media (max-width: 767px) {
    .neptune-notice-grid {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: none;
        gap: 18px;
        margin: 20px 0 26px;
        padding: 0;
    }

    .neptune-notice-grid .neptune-notice-card {
        width: 100%;
        max-width: none;
        padding: 22px;
        border-radius: 17px;
    }

    .neptune-notice-card {
        width: 100%;
        margin: 20px 0;
        padding: 22px;
        border-radius: 17px;
    }

    .neptune-notice-card__title {
        font-size: 24px !important;
    }

    .neptune-notice-card__description {
        font-size: 13px !important;
        line-height: 1.65 !important;
    }

    .neptune-notice-card__timing {
        padding: 10px 11px;
    }

    .neptune-notice-card__day {
        font-size: 10px;
    }
}

@media (max-width: 560px) {
    .neptune-notice-grid .neptune-notice-card,
    .neptune-notice-card {
        padding: 20px;
    }

    .neptune-notice-card__top {
        align-items: flex-start;
        flex-wrap: wrap;
        row-gap: 10px;
    }

    .neptune-notice-card__label,
    .neptune-notice-card__date {
        max-width: 100%;
    }

    .neptune-notice-card__timing {
        gap: 0;
        padding: 11px 12px;
    }
}

@media (max-width: 420px) {
    .neptune-notice-card__top {
        gap: 10px;
    }

    .neptune-notice-card__label {
        padding: 7px 10px;
        font-size: 9px;
        letter-spacing: 1px;
    }

    .neptune-notice-card__title {
        font-size: 22px !important;
    }

    .neptune-notice-card__date {
        padding: 7px 9px;
        font-size: 10px;
    }

    .neptune-notice-card__day {
        display: none;
    }
}

@media (max-width: 380px) {
    .neptune-notice-grid .neptune-notice-card,
    .neptune-notice-card {
        padding: 18px;
        border-radius: 16px;
    }

    .neptune-notice-card__timing {
        padding: 10px;
    }

    .neptune-notice-card__time-content {
        margin-left: 10px;
    }
}

@media (max-width: 360px) {
    .neptune-notice-card__date {
        width: fit-content;
    }

    .neptune-notice-card__timing {
        align-items: flex-start;
    }

    .neptune-notice-card__clock {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .neptune-notice-card__time {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .neptune-notice-card {
        transition: none;
    }

    .neptune-notice-card:hover {
        transform: none;
    }
}

/* =========================================================
   PDF / FILE NOTICE PREVIEW (v2.5.0)
   Keeps the original card shell unchanged and swaps the
   compact description area for a small PDF preview.
   ========================================================= */
.neptune-notice-card__file-preview {
    position: relative;
    width: 100%;
    height: 122px;
    overflow: hidden;
    background: #f7fbfe;
    border: 1px solid var(--nn-border);
    border-radius: 12px;
}

.neptune-notice-card__file-preview[hidden],
.neptune-notice-card__description[hidden] {
    display: none !important;
}

.neptune-notice-card__file-frame {
    display: block;
    width: 100%;
    height: 190px;
    margin: 0;
    border: 0;
    pointer-events: none;
    background: #fff;
}

.neptune-notice-card__file-frame[hidden],
.neptune-notice-card__file-link[hidden],
.neptune-notice-card__file-empty[hidden] {
    display: none !important;
}

.neptune-notice-card__file-link {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 9px;
    text-decoration: none !important;
    background: linear-gradient(180deg, rgba(5,45,89,0) 46%, rgba(5,45,89,.18) 100%);
}

.neptune-notice-card__file-link:focus-visible {
    outline: 3px solid rgba(0,111,201,.28);
    outline-offset: -3px;
}

.neptune-notice-card__file-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(255,255,255,.95);
    border: 1px solid rgba(220,235,245,.95);
    box-shadow: 0 3px 10px rgba(5,45,89,.12);
    color: var(--nn-blue);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .15px;
}

.neptune-notice-card__file-badge svg {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
}

.neptune-notice-card__file-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 100%;
    padding: 18px;
    color: var(--nn-muted);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.neptune-notice-card__file-empty svg {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    color: var(--nn-blue);
}

@media (max-width: 560px) {
    .neptune-notice-card__file-preview { height: 110px; }
    .neptune-notice-card__file-frame { height: 175px; }
}
