/* 
    Brainyap frontback v1.27 stylesheet
    Adds app-style picture menu items to the expanded header menu.
*/


/* GLOBAL RESET */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


/* BASE PAGE */
body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f4f4f4;
    color: #222222;
    line-height: 1.6;
    padding-top: 184px;
    padding-bottom: 120px;
}


/* LINKS */
a {
    color: #005f99;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}


/* SECTION 1: FIXED HEADER */
.site-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    padding: 0;
    background-color: #111827;
    color: #ffffff;
    border-radius: 0 0 14px 14px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}


/* DARK MODE */
body.dark-mode {
    background-color: #0f172a;
    color: #e2e8f0;
}

body.dark-mode a {
    color: #93c5fd;
}

body.dark-mode .site-header {
    background-color: #0f172a;
}

body.dark-mode .profile-card,
body.dark-mode .about-card,
body.dark-mode .reel-card,
body.dark-mode .reel-content,
body.dark-mode .panel-card,
body.dark-mode .post-review-item,
body.dark-mode .footer-inner {
    background-color: #1f2937;
    color: #e2e8f0;
}

body.dark-mode .panel-card {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

body.dark-mode .post-review-item {
    border-color: #334155;
}

body.dark-mode .button-link {
    background-color: #2563eb;
    color: #ffffff;
}

body.dark-mode .button-link:hover {
    background-color: #1d4ed8;
}

body.dark-mode .reel-image-box {
    background-color: #334155;
}

body.dark-mode .section-heading p,
body.dark-mode .post-meta,
body.dark-mode .footer-status,
body.dark-mode .form-main-label,
body.dark-mode .message-option {
    color: #cbd5e1;
}

body.dark-mode h3 {
    color: #ffffff;
}

body.dark-mode .post-type-label,
body.dark-mode .post-format-label,
body.dark-mode .post-feed-owner-label,
body.dark-mode .post-source-label {
    background-color: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}

body.dark-mode .feed-status-message,
body.dark-mode .empty-feed-card .reel-content {
    background-color: #111827;
    color: #e2e8f0;
}

body.dark-mode .notification-card-type {
    color: #cbd5e1;
}

body.dark-mode .notification-action-button {
    background-color: #111827;
    border-color: #e2e8f0;
    color: #e2e8f0;
}

body.dark-mode .notification-action-button:hover,
body.dark-mode .notification-primary-button {
    background-color: #2563eb;
    color: #ffffff;
}


/* HEADER INNER */
.header-inner {
    display: grid;
    gap: 0;
    padding: 0 24px;
}

.header-main-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 168px;
    padding: 14px 0;
    width: 100%;
}

.theme-toggle-button {
    background: none;
    border: 1px solid #ffffff;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.theme-toggle-button:hover {
    background-color: #ffffff;
    color: #111827;
}


/* SITE TITLE */
.site-title a {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: bold;
    letter-spacing: 0;
    white-space: nowrap;
}

.site-title {
    order: 1;
    align-self: flex-start;
}

.site-brand-link,
.logon-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.site-brand-logo {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    object-fit: contain;
    display: block;
}

.site-header .site-brand-logo {
    width: 68px;
    height: 68px;
    flex-basis: 68px;
}

.header-menu-button {
    order: 2;
    transform: translateY(-42px);
}


/* HEADER NAV */
.header-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* HEADER ACTIONS */
.header-actions {
    display: none;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 0 0 16px;
}

.site-header.header-menu-open .header-actions {
    display: flex;
}

.header-menu-button {
    min-width: 86px;
    border: 1px solid #ffffff;
    border-radius: 12px;
    background-color: transparent;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-weight: bold;
    padding: 10px 16px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.header-menu-button:hover,
.header-menu-button[aria-expanded="true"] {
    background-color: #ffffff;
    color: #111827;
}

.header-link,
.header-actions > button.header-menu-item,
.header-logout-form .logout-link {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    font-size: 0.70rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.header-link:hover,
.header-actions > button.header-menu-item:hover,
.header-logout-form .logout-link:hover {
    background-color: #ffffff;
    color: #111827;
}

.header-menu-item {
    width: 82px;
    min-height: 96px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px;
    border-radius: 14px;
    line-height: 1.1;
    text-align: center;
}

.header-menu-icon {
    width: 38px;
    height: 38px;
    object-fit: contain;
    display: block;
}

.header-menu-label {
    display: block;
    max-width: 100%;
    overflow-wrap: normal;
    word-break: normal;
    line-height: 1.18;
    min-height: 2.36em;
}

.notification-menu-item {
    position: relative;
}

.notification-icon-wrap {
    position: relative;
    display: inline-flex;
}

.notification-count-badge {
    position: absolute;
    top: -10px;
    right: -12px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #dc2626;
    color: #ffffff;
    border: 2px solid #111827;
    font-size: 0.75rem;
    font-weight: bold;
    line-height: 1;
}

.logout-link {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.logout-link:hover {
    background-color: #ffffff;
    color: #111827;
}

.page-title {
    margin-bottom: 24px;
}

.page-title h1 {
    font-size: 2rem;
    margin-bottom: 6px;
}

.page-title p {
    color: #4b5563;
}

.user-inbox-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
}

.panel-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.future-image-box {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    border: 2px dashed #cbd5e1;
}

.go-back-button {
    display: inline-block;
    background-color: #111827;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

.go-back-button:hover {
    background-color: #374151;
}

.private-message-card {
    margin-bottom: 24px;
    border-left: 8px solid #2563eb;
}

.notifications-page {
    max-width: 880px;
}

.notification-card-list {
    display: grid;
    gap: 16px;
}

.notification-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-left: 5px solid #2563eb;
}

.notification-card h2 {
    font-size: 1.1rem;
    line-height: 1.35;
    margin-bottom: 6px;
}

.notification-card-type {
    color: #4b5563;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.notification-card-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.notification-action-button {
    border: 1px solid #111827;
    border-radius: 8px;
    background-color: #ffffff;
    color: #111827;
    cursor: pointer;
    font: inherit;
    font-weight: bold;
    padding: 10px 14px;
}

.notification-action-button:hover {
    background-color: #f3f4f6;
}

.notification-primary-button {
    background-color: #111827;
    color: #ffffff;
}

.notification-primary-button:hover {
    background-color: #374151;
}

.empty-notification-card {
    display: block;
    border-left-color: #9ca3af;
}

.private-message-card h2,
.approval-card h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.private-message-link {
    display: inline-block;
    margin-top: 12px;
    background-color: #2563eb;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

.private-message-link:hover {
    background-color: #1d4ed8;
}

.approval-card {
    border-left: 8px solid #16a34a;
}

.post-review-item {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px;
    margin-top: 18px;
}

.post-review-item h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.post-meta {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 10px;
}

.post-content {
    margin-bottom: 14px;
}

.youtube-video-frame {
    aspect-ratio: 16 / 9;
    background-color: #111827;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    margin: 12px 0 16px;
    overflow: hidden;
    width: 100%;
}

.youtube-video-frame iframe {
    border: 0;
    display: block;
    height: 100%;
    width: 100%;
}

body.dark-mode .youtube-video-frame {
    border-color: #334155;
}

.approval-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.approval-actions button {
    border: none;
    border-radius: 8px;
    padding: 9px 14px;
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
}

.approve-button {
    background-color: #16a34a;
}

.approve-button:hover {
    background-color: #15803d;
}

.decline-button {
    background-color: #dc2626;
}

.decline-button:hover {
    background-color: #b91c1c;
}

.report-button {
    background-color: #7c2d12;
}

.report-button:hover {
    background-color: #431407;
}

@media screen and (max-width: 850px) {
    .user-inbox-grid {
        grid-template-columns: 1fr;
    }

    .site-header {
        width: 100%;
        border-radius: 0;
    }
}

@media screen and (max-width: 600px) {
    body {
        padding-top: 184px;
    }

    .header-inner {
        padding: 0 14px;
    }

    .header-main-row {
        gap: 10px;
        padding: 12px 0;
    }

    .header-search-wrapper {
        max-width: 100%;
    }

    .site-title a {
        font-size: 1.1rem;
    }

    .site-header .site-brand-link {
        gap: 0;
    }

    .site-brand-logo {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .site-header .site-brand-logo {
        width: 55px;
        height: 55px;
        flex-basis: 55px;
    }

    .theme-toggle-button,
    .logout-link,
    .header-link,
    .header-actions > button.header-menu-item,
    .header-menu-button {
        font-size: 0.8rem;
        padding: 5px 10px;
    }

    .header-menu-item {
        width: 72px;
        min-height: 86px;
        padding: 6px;
    }

    .header-menu-icon {
        width: 32px;
        height: 32px;
    }

    .page-container {
        width: 94%;
    }

    .panel-card {
        padding: 18px;
    }

    .approval-actions {
        flex-direction: column;
    }

    .approval-actions button {
        width: 100%;
    }

    .notification-card {
        align-items: stretch;
        flex-direction: column;
    }

    .notification-card-actions,
    .notification-card-actions form,
    .notification-action-button {
        width: 100%;
    }
}


/* MAIN PAGE CONTAINER */
.page-container {
    width: 90%;
    padding-top: 70px; 
    max-width: 1100px;
    margin: 0 auto;
}


/* SECTIONS 2 AND 3 LAYOUT */
.profile-about-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    margin-bottom: 32px;
}


/* SECTION 2: PROFILE CARD */
.profile-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}


/* PROFILE IMAGE */
.profile-image {
    width: 170px;
    height: 170px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #111827;
    background-color: #dddddd;
    margin-bottom: 16px;
}

.generated-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background-color: #e5e7eb;
    color: #374151;
    font-weight: bold;
    text-align: center;
}

.profile-image-placeholder {
    width: 112px;
    height: 112px;
    min-height: 112px;
    margin: 0 auto 16px;
    font-size: 2.25rem;
    line-height: 1;
    border-width: 3px;
}

.photo-placeholder {
    min-height: 210px;
}

.logon-simple-header {
    width: min(94%, 960px);
    margin: 18px auto 0;
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 22px;
    background-color: #111827;
    color: #ffffff;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.logon-page-body {
    padding-top: 0;
    padding-bottom: 80px;
    background:
        linear-gradient(180deg, rgba(17, 24, 39, 0.08), rgba(244, 244, 244, 0) 320px),
        #f4f4f4;
}

.logon-simple-header a,
.logon-simple-header a:hover {
    color: #ffffff;
    text-decoration: none;
}

.logon-brand {
    font-size: 1.35rem;
    font-weight: bold;
    letter-spacing: 0;
}

.logon-theme-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 104px;
    min-height: 48px;
    border-radius: 8px;
}

.logon-theme-button .header-menu-icon {
    width: 28px;
    height: 28px;
}

.logon-simple-page {
    width: min(94%, 960px);
    margin: 28px auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 18px;
    align-items: start;
}

.logon-button-grid {
    display: grid;
    grid-template-columns: repeat(3, 158px);
    justify-content: center;
    gap: 44px 24px;
}

.logon-button-grid form {
    margin: 0;
}

.logon-account-button {
    width: 158px;
    height: 56px;
    border: 3px solid #111827;
    color: #111827;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font: inherit;
    text-decoration: none;
    line-height: 1.1;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    transition: transform 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.logon-account-button span {
    font-size: 0.75rem;
    font-weight: normal;
}

.logon-account-button:hover {
    background-color: #eff6ff;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.14);
    transform: translateY(-2px);
    text-decoration: none;
}

.asteroid-logon-section,
.guest-logon-section {
    min-height: 100%;
    margin: 0;
    padding: 18px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.asteroid-logon-section {
    border-top: 6px solid #2563eb;
}

.guest-logon-section {
    border-top: 6px solid #111827;
}

.asteroid-logon-section h1,
.guest-logon-section h2 {
    color: #111827;
    font-size: 1.25rem;
    line-height: 1.2;
    margin-bottom: 10px;
}

.demo-access-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.demo-access-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: grid;
    gap: 8px;
    padding: 12px;
}

.demo-access-card h2 {
    color: #111827;
    font-size: 1rem;
    line-height: 1.2;
}

.demo-access-card p {
    font-size: 0.92rem;
    line-height: 1.4;
    margin-bottom: 0;
}

.demo-access-side-stack {
    display: grid;
    gap: 12px;
}

.voyager-demo-card {
    align-content: start;
}

.voyager-demo-image {
    border: 2px solid hsl(221, 39%, 11%);
    border-radius: 50%;
    height: 54px;
    object-fit: cover;
    width: 54px;
}

.server-status-note {
    align-items: center;
    display: flex;
    gap: 12px;
    margin: 0;
    padding: 10px 12px;
}

.server-status-image {
   border: 2px solid hsl(221, 39%, 11%);
    border-radius: 50%;
    height: 77px;
    object-fit: cover;
    width: 77px;
}

.server-status-note p {
    min-width: 0;
    margin: 0;
}

.asteroid-logon-section p,
.guest-logon-section p {
    margin-bottom: 16px;
    color: #374151;
}

.asteroid-limit-note {
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background-color: #eff6ff;
    color: #1e3a8a;
    font-weight: bold;
    font-size: 0.86rem;
    padding: 8px 10px;
}

.asteroid-logon-button,
.guest-logon-button {
    display: inline-flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border: 3px solid #111827;
    border-radius: 8px;
    background-color: #111827;
    color: #ffffff;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    font: inherit;
}

.asteroid-logon-button:hover,
.guest-logon-button:hover {
    background-color: #374151;
    text-decoration: none;
}

.signup-logon-button {
    align-items: center;
    background-color: #f97316;
    border: 3px solid #9a3412;
    border-radius: 8px;
    color: #ffffff;
    display: inline-flex;
    font: inherit;
    font-weight: bold;
    justify-content: center;
    min-height: 48px;
    text-decoration: none;
    width: 100%;
}

.signup-logon-button:hover {
    background-color: #ea580c;
    text-decoration: none;
}

.signup-page,
.terms-page {
    margin: 28px auto 0;
    width: min(94%, 560px);
}

.signup-section {
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    border-top: 6px solid #f97316;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    padding: 20px;
}

.signup-section h1 {
    color: #111827;
    font-size: 1.35rem;
    line-height: 1.2;
    margin-bottom: 10px;
}

.signup-access-note {
    background-color: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    color: #7c2d12;
    font-weight: bold;
    margin-bottom: 16px;
    padding: 10px 12px;
}

.signup-form label {
    display: grid;
    gap: 6px;
}

.signup-form label span {
    color: #374151;
    font-size: 0.9rem;
    font-weight: bold;
}

.signup-check-row {
    align-items: start;
    display: grid;
    gap: 10px;
    grid-template-columns: 20px 1fr;
}

.signup-check-row input {
    height: 18px;
    margin-top: 3px;
    width: 18px;
}

.signup-check-row span {
    line-height: 1.35;
}

.signup-submit-button {
    background-color: #111827;
}

.signup-back-link {
    display: inline-block;
    font-weight: bold;
    margin-top: 16px;
}

body.dark-mode .signup-section {
    background-color: #1f2937;
    border-color: #334155;
    color: #e2e8f0;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

body.dark-mode .signup-section h1 {
    color: #ffffff;
}

body.dark-mode .signup-access-note {
    background-color: #431407;
    border-color: #9a3412;
    color: #fed7aa;
}

body.dark-mode .signup-form label span {
    color: #cbd5e1;
}

body.dark-mode .signup-logon-button {
    background-color: #f97316;
    border-color: #fdba74;
    color: #111827;
}

body.dark-mode .signup-logon-button:hover {
    background-color: #fb923c;
}

body.dark-mode .logon-page-body,
body.dark-mode.logon-page-body {
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.98) 320px),
        #0f172a;
}

body.dark-mode .logon-simple-header {
    background-color: #0f172a;
}

body.dark-mode .asteroid-logon-section,
body.dark-mode .guest-logon-section {
    background-color: #1f2937;
    border-color: #334155;
    color: #e2e8f0;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

body.dark-mode .asteroid-logon-section h1,
body.dark-mode .guest-logon-section h2 {
    color: #ffffff;
}

body.dark-mode .asteroid-logon-section p,
body.dark-mode .guest-logon-section p {
    color: #cbd5e1;
}

body.dark-mode .demo-access-card {
    border-color: #334155;
}

body.dark-mode .demo-access-card h2 {
    color: #ffffff;
}

body.dark-mode .voyager-demo-image {
    border-color: #64748b;
}

body.dark-mode .asteroid-limit-note {
    background-color: #172554;
    border-color: #2563eb;
    color: #bfdbfe;
}

body.dark-mode .guest-logon-section {
    border-top-color: #64748b;
}

body.dark-mode .logon-form input {
    background-color: #111827;
    border-color: #475569;
    color: #ffffff;
}

body.dark-mode .logon-form input::placeholder {
    color: #94a3b8;
}

body.dark-mode .form-error {
    color: #fca5a5;
}


/* PROFILE TEXT */
.profile-card h2 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.profile-star-summary {
    display: grid;
    gap: 8px;
    margin-top: 14px;
    text-align: left;
}

.profile-star-summary p {
    align-items: center;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    margin: 0;
    padding: 9px 10px;
}

.profile-star-summary span {
    color: #4b5563;
    font-size: 0.86rem;
    font-weight: bold;
}

.profile-star-summary strong {
    color: #111827;
    font-size: 0.9rem;
}

.profile-note {
    font-size: 0.9rem;
    color: #666666;
}


/* SECTION 3: ABOUT CARD */
.about-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.about-card h1 {
    font-size: 2rem;
    margin-bottom: 16px;
    color: #111827;
}

.about-card p {
    margin-bottom: 14px;
}

.profile-link-list {
    margin-bottom: 18px;
}

.about-edit-form {
    display: grid;
    gap: 8px;
    margin: 18px 0;
}

.about-edit-form[hidden] {
    display: none;
}

.about-edit-form label {
    color: #374151;
    font-size: 0.84rem;
    font-weight: bold;
}

.about-field-heading {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.about-character-counter {
    color: #6b7280;
    font-size: 0.78rem;
    font-weight: bold;
}

.about-edit-form input,
.about-edit-form textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    color: #111827;
    font: inherit;
    padding: 10px 12px;
}

.about-edit-form textarea {
    resize: vertical;
}

.about-save-button {
    border: 0;
    cursor: pointer;
    justify-self: start;
}

.about-edit-toggle {
    border: 0;
    cursor: pointer;
    font: inherit;
}


/* BUTTON STYLE LINK */
.button-link {
    display: inline-block;
    margin-top: 10px;
    background-color: #111827;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: bold;
}

.button-link:hover {
    background-color: #374151;
    text-decoration: none;
}

.subscription-button {
    border: 0;
    cursor: pointer;
    font: inherit;
}

.inline-action-form {
    display: inline;
    margin: 0;
}

.inline-action-form .button-link {
    border: 0;
    cursor: pointer;
    font: inherit;
}

.danger-button {
    background-color: #dc2626;
}

.danger-button:hover {
    background-color: #b91c1c;
}

.placeholder-link {
    cursor: pointer;
}


/* SECTION 4: REEL SECTION */
.reel-section {
    margin-bottom: 40px;
    clear: both;
}

.section-heading {
    margin-bottom: 18px;
    padding-top: 16px;
    position: relative;
    z-index: 1;
}

.section-heading h2 {
    font-size: 1.7rem;
    color: #111827;
}

.section-heading p {
    color: #555555;
}


/* BASE REEL CARD */
.reel-card {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 0;
    position: relative;
    background-color: #ffffff;
    border-radius: 16px;
    margin-bottom: 22px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}


/* IMAGE AREA */
.reel-image-box {
    background-color: #d1d5db;
    min-height: 190px;
}

.reel-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* IMAGE ONLY POSTS */
.image-only-post .reel-image-box {
    min-height: 240px;
}


/* REEL CONTENT */
.reel-content {
    padding: 22px;
}


/* TEXT ONLY POSTS */
.text-only-post {
    grid-template-columns: 1fr;
}

.text-only-post .reel-content {
    padding: 26px;
}

.feed-post-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.feed-post-author-image,
.feed-post-author-placeholder {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border-radius: 12px;
}

.feed-post-author-image {
    object-fit: cover;
    display: block;
    border: 2px solid rgba(17, 24, 39, 0.12);
}

.feed-post-author-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.feed-post-author-image-link,
.feed-reply-author-image-link {
    border-radius: 12px;
    display: inline-flex;
    flex: 0 0 auto;
    text-decoration: none;
}

.feed-post-author-name,
.feed-post-author-type {
    display: block;
}

.feed-post-author-name {
    color: #111827;
    font-size: 1.05rem;
    font-weight: bold;
    text-decoration: none;
}

.feed-post-author-name:hover,
.feed-reply-author-name:hover {
    text-decoration: underline;
}

.feed-post-author-type {
    color: #6b7280;
    font-size: 0.88rem;
    line-height: 1.3;
}

.feed-post-delete-form {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}

.feed-post-delete-button {
    width: 34px;
    height: 34px;
    border: 2px solid #dc2626;
    border-radius: 50%;
    background-color: #ffffff;
    color: #dc2626;
    cursor: pointer;
    font: inherit;
    font-size: 1.35rem;
    font-weight: bold;
    line-height: 1;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.feed-post-delete-button:hover {
    background-color: #dc2626;
    color: #ffffff;
    transform: scale(1.04);
}


/* POST TEXT */
.reel-content h3 {
    font-size: 1.35rem;
    margin-top: 8px;
    margin-bottom: 6px;
    color: #111827;
}

.post-meta {
    font-size: 0.9rem;
    color: #666666;
    margin-bottom: 12px;
}


/* REEL ACTIONS */
.reel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 14px;
}

.reel-actions a {
    font-weight: bold;
}

.star-rating-form {
    align-items: center;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    min-height: 36px;
}

.star-rating-label {
    color: #4b5563;
    font-size: 0.86rem;
    font-weight: bold;
    margin-right: 4px;
}

.star-rating-average {
    color: #4b5563;
    font-size: 0.86rem;
    font-weight: bold;
    margin-left: 6px;
}

.star-button {
    align-items: center;
    background-color: transparent;
    border: 0;
    color: #9ca3af;
    cursor: pointer;
    display: inline-flex;
    font-size: 1.55rem;
    font-weight: bold;
    height: 32px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    transition: color 0.2s ease, transform 0.2s ease;
    width: 32px;
}

.star-button:hover,
.star-button:focus,
.star-button.is-selected {
    color: #f59e0b;
    transform: scale(1.08);
}

.reply-star-rating-form {
    margin: 6px 0 4px;
}

.blog-star-rating-form {
    display: flex;
    flex: 1 1 100%;
    flex-wrap: wrap;
    gap: 4px;
    max-width: 100%;
    min-width: 0;
    overflow-x: visible;
}

.blog-star-rating-form .star-rating-label,
.blog-star-rating-form .star-rating-average {
    flex: 0 1 auto;
    min-width: 0;
    white-space: normal;
}

.blog-star-rating-form .star-button {
    flex: 0 0 32px;
}

.broadcast-card {
    grid-template-columns: 1fr;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    width: 100%;
}

.broadcast-card .reel-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.broadcast-message {
    margin-bottom: 0;
}

.broadcast-action-panel {
    margin-top: 12px;
}

.broadcast-form,
.broadcast-response-form {
    margin-top: 10px;
}

.broadcast-inner-card {
    border: 1px solid rgba(17, 24, 39, 0.14);
    border-radius: 8px;
    background-color: #f9fafb;
    color: inherit;
    display: block;
    max-width: 100%;
    padding: 16px;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.broadcast-inner-card:hover,
.broadcast-inner-card:focus {
    border-color: #2563eb;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.14);
    transform: translateY(-1px);
}

.broadcast-unavailable-card,
.broadcast-unavailable-card:hover,
.broadcast-unavailable-card:focus {
    border-color: rgba(220, 38, 38, 0.3);
    box-shadow: none;
    transform: none;
}

.broadcast-photo-preview {
    align-items: center;
    background-color: #f3f4f6;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    overflow: hidden;
    width: 100%;
}

.broadcast-photo-preview img {
    display: block;
    height: auto;
    max-height: 520px;
    max-width: 100%;
    object-fit: contain;
    width: auto;
}

.broadcast-star-rating-form {
    flex: 1 1 100%;
    max-width: 100%;
}

.broadcast-response-section {
    margin-top: 0;
}

.classifieds-page-container {
    padding-bottom: 8rem;
}

.classified-advanced-search {
    margin: 0 0 1.25rem;
}

.classified-advanced-search [hidden] {
    display: none !important;
}

.classified-advanced-search-panel {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.75rem;
    max-width: 520px;
    padding: 1rem;
    background-color: #ffffff;
    border: 1px solid #d6dbe4;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.classified-advanced-search-panel select,
.classified-post-form select,
.classified-post-form input[type="text"],
.classified-post-form textarea {
    width: 100%;
    border: 1px solid #d6dbe4;
    border-radius: 6px;
    padding: 0.7rem 0.8rem;
    font: inherit;
}

.classified-card {
    grid-template-columns: 1fr;
}

.classified-card .reel-content,
.classified-text-card .reel-content,
.classified-photo-card .reel-content {
    padding: 26px;
    width: 100%;
}

.classified-title {
    margin: 0.3rem 0 0.75rem;
}

.classified-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.6rem;
    margin: 0.85rem 0;
}

.classified-photo-link {
    aspect-ratio: 4 / 3;
}

.classified-photo-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.classified-footer-profile-link {
    display: inline-flex;
    align-items: center;
}

.classified-post-button img {
    object-fit: contain;
}

.classified-advanced-search .button-link,
.classified-advanced-search-panel button,
.classified-post-form button,
.classified-post-form .button-link,
.classified-card .reel-actions a,
.classified-card .broadcast-form button,
.classified-card .feed-reply-toggle-link,
.classified-card .feed-reply-form button {
    border: 0;
    border-radius: 8px;
    background-color: #2563eb;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font: inherit;
    font-size: 0.9rem;
    font-weight: bold;
    line-height: 1.2;
    min-height: 38px;
    padding: 9px 14px;
    text-decoration: none;
}

.classified-advanced-search .button-link:hover,
.classified-advanced-search-panel button:hover,
.classified-post-form button:hover,
.classified-post-form .button-link:hover,
.classified-card .reel-actions a:hover,
.classified-card .broadcast-form button:hover,
.classified-card .feed-reply-toggle-link:hover,
.classified-card .feed-reply-form button:hover {
    background-color: #1d4ed8;
    color: #ffffff;
}

.classified-advanced-search-panel .entry-cancel-button,
.classified-post-form .entry-cancel-button,
.classified-card .feed-reply-form .entry-cancel-button {
    background-color: #ffffff;
    border: 1px solid #9ca3af;
    color: #374151;
}

.classified-advanced-search-panel .entry-cancel-button:hover,
.classified-post-form .entry-cancel-button:hover,
.classified-card .feed-reply-form .entry-cancel-button:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.placeholder-action-button {
    border: 0;
    border-radius: 8px;
    background-color: #374151;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-weight: bold;
    padding: 8px 12px;
}

.placeholder-action-button:hover {
    background-color: #111827;
}

.feed-status-list {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.feed-status-message {
    border-left: 6px solid #2563eb;
    border-radius: 8px;
    background-color: #ffffff;
    color: #111827;
    font-weight: bold;
    padding: 12px 14px;
}

.feed-status-message.error {
    border-left-color: #dc2626;
}

.feed-status-message.success {
    border-left-color: #16a34a;
}

.feed-load-status {
    color: #4b5563;
    font-weight: bold;
    min-height: 24px;
    padding: 6px 0 14px;
    text-align: center;
}

.feed-load-sentinel {
    height: 1px;
}

.feed-loading-bar {
    position: fixed;
    right: 18px;
    bottom: 8px;
    left: 18px;
    display: flex;
    gap: 140px;
    height: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease;
    z-index: 1080;
}

.feed-loading-bar.is-active {
    opacity: 1;
}

.feed-loading-bar span {
    flex: 1 1 0;
    overflow: hidden;
    border-radius: 999px;
    background-color: rgba(17, 24, 39, 0.18);
}

.feed-loading-bar span::before {
    display: block;
    width: 42%;
    height: 100%;
    border-radius: inherit;
    background-color: #2563eb;
    content: "";
    animation: feed-loading-slide 0.9s ease-in-out infinite;
}

@keyframes feed-loading-slide {
    0% {
        transform: translateX(-110%);
    }

    100% {
        transform: translateX(260%);
    }
}

.feed-footer-status-row {
    position: fixed;
    left: 18px;
    bottom: 18px;
    right: 88px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 8px;
    pointer-events: none;
    z-index: 1085;
}

.feed-floating-status {
    flex: 0 1 auto;
    max-width: min(300px, 100%);
    padding: 6px 9px;
    border-radius: 999px;
    background-color: rgba(17, 24, 39, 0.86);
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: bold;
    line-height: 1.25;
    pointer-events: none;
}

.feed-action-status {
    border-left: 4px solid #16a34a;
}

.feed-action-status.success {
    background-color: rgba(17, 24, 39, 0.9);
}

.empty-feed-card {
    border-left: 8px solid #6b7280;
}


/* SOURCE COLOUR SYSTEM */

/* Logged-in user posts: blue */
.logged-in-user-card {
    border-left: 8px solid #2563eb;
}

.logged-in-user-card .reel-content {
    background-color: #eff6ff;
}

.logged-in-user-card .post-type-label {
    background-color: #dbeafe;
    color: #1d4ed8;
}


/* Visitor posts: green */
.visitor-card {
    border-left: 8px solid #16a34a;
}

.visitor-card .reel-content {
    background-color: #f0fdf4;
}

.visitor-card .post-type-label {
    background-color: #dcfce7;
    color: #15803d;
}


/* VIP posts: gold */
.vip-card {
    border-left: 8px solid #d4af37;
}

.vip-card .reel-content {
    background-color: #fff7d6;
}

.vip-card .post-type-label {
    background-color: #fde68a;
    color: #854d0e;
}


/* Advertiser posts: orange */
.advertiser-card {
    border-left: 8px solid #f97316;
}
.advertiser-card .reel-content {
    background-color: #fff7ed;
}

.advertiser-card .post-type-label {
    background-color: #ffedd5;
    color: #c2410c;
}


/* POST LABELS */
.post-type-label,
.post-format-label,
.post-feed-owner-label,
.post-source-label {
    display: inline-block;
    margin-right: 6px;
    margin-bottom: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: bold;
}

.post-format-label {
    background-color: #e5e7eb;
    color: #111827;
}

.image-only-post .post-format-label {
    background-color: #ede9fe;
    color: #6d28d9;
}

.image-blog-post .post-format-label {
    background-color: #e0f2fe;
    color: #0369a1;
}

.text-only-post .post-format-label {
    background-color: #fef9c3;
    color: #854d0e;
}

.post-feed-owner-label {
    background-color: #e0f2fe;
    color: #075985;
    text-decoration: none;
}

.post-source-label {
    background-color: #ede9fe;
    color: #5b21b6;
    text-decoration: none;
}

.post-feed-owner-label:hover,
.post-source-label:hover {
    text-decoration: none;
    filter: brightness(0.96);
}

.feed-reply-section {
    display: grid;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(17, 24, 39, 0.12);
}

.feed-reply-list {
    display: grid;
    gap: 10px;
}

.feed-reply-card {
    position: relative;
    padding: 14px;
    border: 1px solid rgba(17, 24, 39, 0.12);
    border-left: 5px solid #0f766e;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.72);
}

.feed-reply-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding-right: 32px;
}

.feed-reply-author-image,
.feed-reply-author-placeholder {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 10px;
}

.feed-reply-author-image {
    object-fit: cover;
    display: block;
    border: 2px solid rgba(17, 24, 39, 0.1);
}

.feed-reply-author-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}

.feed-reply-author-name,
.feed-reply-author-type {
    display: block;
}

.feed-reply-author-name {
    color: #111827;
    font-size: 0.95rem;
    font-weight: bold;
}

.feed-reply-author-type,
.feed-reply-meta {
    color: #6b7280;
    font-size: 0.78rem;
}

.feed-reply-meta {
    margin: 2px 0 8px;
}

.feed-reply-content {
    margin-bottom: 10px;
}

.post-reply-from-label,
.post-replied-to-label {
    display: inline-block;
    margin-right: 5px;
    margin-bottom: 7px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: bold;
    text-decoration: none;
}

.post-reply-from-label {
    background-color: #ccfbf1;
    color: #115e59;
}

.post-replied-to-label {
    background-color: #e0e7ff;
    color: #3730a3;
}

.post-reply-from-label:hover,
.post-replied-to-label:hover {
    text-decoration: none;
    filter: brightness(0.96);
}

.feed-reply-form {
    display: grid;
    gap: 8px;
}

.feed-reply-form[hidden] {
    display: none;
}

.feed-reply-to-reply-form {
    margin-top: 10px;
}

.feed-reply-toggle-link {
    display: inline-block;
    color: #0f766e;
    font-size: 0.82rem;
    font-weight: bold;
    text-decoration: none;
}

.feed-reply-post-toggle-link {
    justify-self: start;
}

.feed-reply-toggle-link:hover {
    color: #115e59;
    text-decoration: underline;
}

.feed-reply-form label {
    color: #374151;
    font-size: 0.82rem;
    font-weight: bold;
}

.feed-reply-form textarea {
    width: 100%;
    min-height: 74px;
    resize: vertical;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background-color: #ffffff;
    color: #111827;
    font: inherit;
    line-height: 1.4;
    padding: 10px;
}

.feed-reply-form button,
.feed-replies-expand-button {
    justify-self: start;
    border: 0;
    border-radius: 8px;
    background-color: #111827;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-size: 0.86rem;
    font-weight: bold;
    padding: 8px 12px;
}

.entry-action-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.entry-cancel-button,
.feed-reply-form .entry-cancel-button,
.footer-input-row .entry-cancel-button {
    border: 1px solid #9ca3af;
    border-radius: 8px;
    background-color: #ffffff;
    color: #374151;
    cursor: pointer;
    font: inherit;
    font-size: 0.86rem;
    font-weight: bold;
    padding: 8px 12px;
}

.entry-cancel-button:hover,
.feed-reply-form .entry-cancel-button:hover,
.footer-input-row .entry-cancel-button:hover {
    background-color: #f3f4f6;
    filter: none;
}

.post-comment-toggle-button,
.post-comment-submit-button,
.feed-reply-form .post-reply-submit-button {
    border: 0;
    border-radius: 8px;
    background-color: #16a34a;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    font: inherit;
    font-size: 0.86rem;
    font-weight: bold;
    justify-self: start;
    line-height: 1.2;
    padding: 8px 12px;
    text-decoration: none;
}

.post-comment-toggle-button:hover,
.post-comment-submit-button:hover,
.feed-reply-form .post-reply-submit-button:hover {
    background-color: #15803d;
    color: #ffffff;
    filter: none;
    text-decoration: none;
}

.feed-replies-expand-button {
    background-color: #0f766e;
}

.feed-reply-form button:hover,
.feed-replies-expand-button:hover {
    filter: brightness(1.08);
}

.feed-reply-delete-form {
    position: absolute;
    top: 10px;
    right: 10px;
}

.feed-reply-delete-button {
    width: 26px;
    height: 26px;
    border: 1px solid #dc2626;
    border-radius: 50%;
    background-color: #ffffff;
    color: #dc2626;
    cursor: pointer;
    font: inherit;
    font-size: 1rem;
    font-weight: bold;
    line-height: 1;
}

.feed-reply-delete-button:hover {
    background-color: #dc2626;
    color: #ffffff;
}


/* 
    SECTION 5: HEY ICON BUTTON
    This stays visible at the bottom of the page.
*/
.hey-button {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    width: 96px;
    height: 96px;
    border: none;
    border-radius: 22px;
    background-color: #ffffff;
    cursor: pointer;
    z-index: 1100;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    padding: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}


/* HEY ICON IMAGE */
.hey-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* HOVER EFFECT */
.hey-button:hover {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.3);
}


/* 
    MESSAGE FOOTER
    Hidden by default.
    JavaScript adds .footer-open when the HEY icon is clicked.
*/
.site-footer {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%) translateY(110%);
    width: 100%;
    background-color: #111827;
    color: #ffffff;
    z-index: 1200;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease;
}


/* FOOTER OPEN STATE */
.site-footer.footer-open {
    transform: translateX(-50%) translateY(0);
}


/* FOOTER INNER */
.footer-inner {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 0;
}


/* FOOTER TOP ROW */
.footer-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.footer-top-row h2 {
    font-size: 1.2rem;
}


/* CLOSE BUTTON */
.close-footer-button {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background-color: #374151;
    color: #ffffff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.close-footer-button:hover {
    background-color: #4b5563;
}


/* FOOTER FORM */
.footer-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-main-label {
    font-size: 0.9rem;
    font-weight: bold;
}


/* RADIO OPTIONS */
.message-options {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.message-option {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    color: #e5e7eb;
}


/* MESSAGE INPUT ROW */
.footer-input-row {
    display: flex;
    gap: 10px;
}

.footer-input-row input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
}

.footer-input-row button {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    background-color: #2563eb;
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
}

.footer-input-row button:hover {
    background-color: #1d4ed8;
}


/* IMAGE UPLOAD PLACEHOLDER */
.upload-placeholder {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.upload-placeholder label {
    font-size: 0.9rem;
    font-weight: bold;
}

.upload-placeholder input {
    color: #ffffff;
}

.placeholder-note {
    font-size: 0.85rem;
    color: #d1d5db;
}


/* FOOTER STATUS */
.footer-status {
    font-size: 0.8rem;
    color: #d1d5db;
    margin-top: 8px;
}


/* TABLET VIEW */
@media screen and (max-width: 850px) {

    .demo-access-grid {
        grid-template-columns: 1fr;
    }

    .profile-about-layout {
        grid-template-columns: 1fr;
    }

    .reel-card {
        grid-template-columns: 1fr;
    }

    .reel-image-box {
        height: 240px;
    }

    .text-only-post {
        grid-template-columns: 1fr;
    }

}


/* MOBILE VIEW */
@media screen and (max-width: 600px) {

    body {
        padding-top: 184px;
        padding-bottom: 110px;
    }

    .site-header {
        width: 100%;
        border-radius: 0;
    }

    .header-inner {
        padding: 0 14px;
    }

    .site-title a {
        font-size: 1.1rem;
    }

    .site-header .site-brand-link {
        gap: 0;
    }

    .site-brand-logo {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .site-header .site-brand-logo {
        width: 55px;
        height: 55px;
        flex-basis: 55px;
    }

    .login-link {
        padding: 5px 10px;
        font-size: 0.85rem;
    }

    .demo-access-grid {
        grid-template-columns: 1fr;
    }

    .page-container {
        width: 94%;
    }

    .about-card,
    .profile-card,
    .reel-content,
    .text-only-post .reel-content {
        padding: 18px;
    }

    .broadcast-inner-card {
        padding: 14px;
    }

    .broadcast-photo-preview img {
        max-height: 420px;
    }

    .broadcast-star-rating-form {
        align-items: flex-start;
        gap: 3px;
    }

    .broadcast-star-rating-form .star-rating-label,
    .broadcast-star-rating-form .star-rating-average {
        flex: 1 1 100%;
    }

    .about-card h1 {
        font-size: 1.55rem;
    }

    .section-heading h2 {
        font-size: 1.4rem;
    }

    .profile-image {
        width: 130px;
        height: 130px;
    }

    .reel-image-box {
        height: 210px;
    }

    .hey-button {
        width: 76px;
        height: 76px;
        bottom: 14px;
        border-radius: 18px;
    }

    .feed-loading-bar {
        gap: 108px;
        height: 4px;
    }

    .feed-footer-status-row {
        left: 10px;
        bottom: 14px;
        right: 92px;
        gap: 6px;
    }

    .feed-floating-status {
        max-width: min(170px, 100%);
        padding: 5px 7px;
        font-size: 0.66rem;
    }

    .footer-input-row {
        flex-direction: column;
    }

    .footer-input-row button {
        width: 100%;
    }

}
/* MESSAGE TYPE BUTTONS */
.message-type-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    
}

.message-type-button {
    background-color: #2563eb;
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

.message-type-button:hover {
    background-color: #1d4ed8;
}

.message-input-section {
    margin-top: 10px;
}

#messageTypeIndicator {
    font-size: 0.9rem;
    color: #e5e7eb;
    margin-bottom: 10px;
    font-weight: bold;
}


.header-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    flex-wrap: nowrap;
}

.header-search-input {
    flex: 1 1 220px;
    min-width: 0;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.header-search-input::placeholder {
    color: rgba(255, 255, 255, 0.75);
}

.header-search-button,
.header-search-cancel-button {
    background-color: #2563eb;
    border: none;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 12px;
    cursor: pointer;
    white-space: nowrap;
}

.header-search-button:hover {
    background-color: #1d4ed8;
}

.header-search-cancel-button {
    background-color: #6b7280;
}

.header-search-cancel-button:hover {
    background-color: #4b5563;
}

@media screen and (max-width: 600px) {
    .header-search-form {
        gap: 6px;
    }

    .header-search-button,
    .header-search-cancel-button {
        padding: 9px 12px;
        font-size: 0.78rem;
    }
}

.header-search-wrapper {
    position: relative;
    width: 100%;
    max-width: 680px;
    min-width: 0;
    order: 3;
    transform: translateY(-24px);
}

.header-search-results {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 20;
    width: min(420px, 100%);
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
    overflow: hidden;
}

.header-search-results.search-results-visible {
    display: block;
}

.search-result-item {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    color: #111827;
    text-decoration: none;
    border-bottom: 1px solid #e5e7eb;
}

.search-result-item:hover {
    background-color: #eff6ff;
}

.search-result-type {
    width: fit-content;
    padding: 3px 8px;
    border-radius: 999px;
    background-color: #dbeafe;
    color: #1e40af;
    font-size: 0.78rem;
    font-weight: bold;
}

.search-result-item p,
.search-empty-message {
    margin: 0;
    color: #4b5563;
    font-size: 0.92rem;
}

.search-empty-message {
    padding: 12px 14px;
}

.search-more-link {
    display: block;
    padding: 12px 14px;
    background-color: #f9fafb;
    color: #2563eb;
    font-weight: bold;
    text-decoration: none;
}

.search-more-link:hover {
    background-color: #eff6ff;
}

.profile-type-label,
.profile-identity {
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 8px;
    background-color: #dbeafe;
    color: #1e40af;
    font-size: 0.9rem;
    font-weight: bold;
}

.profile-identity {
    margin: 0 0 12px;
}

.search-page-section {
    margin-bottom: 40px;
}

.search-page-results {
    display: grid;
    gap: 12px;
    max-width: 720px;
}

.search-page-results .search-result-item {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-left: 8px solid #2563eb;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

body.dark-mode .header-search-results,
body.dark-mode .search-page-results .search-result-item {
    background-color: #111827;
    border-color: #374151;
}

body.dark-mode .search-result-item {
    color: #f9fafb;
}

body.dark-mode .search-result-item:hover,
body.dark-mode .search-more-link:hover {
    background-color: #1f2937;
}

body.dark-mode .search-result-item p,
body.dark-mode .search-empty-message {
    color: #d1d5db;
}

body.dark-mode .search-more-link {
    background-color: #111827;
    color: #93c5fd;
}


/* =========================================================
   BLOG PAGE STYLES
   Add these styles to the existing style.css file.
   ========================================================= */


/* BLOG REEL SECTION */

.blog-reel-section {
    margin-bottom: 40px;
}

.blog-feed-card,
.blog-detail-card,
.blog-detail-comments {
    grid-template-columns: 1fr;
}

.blog-feed-card .reel-content,
.blog-detail-card .reel-content,
.blog-detail-comments .reel-content {
    width: 100%;
}

.blog-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    background-color: #ffffff;
    border-radius: 16px;
    margin-bottom: 22px;
    overflow: hidden;
    border-left: 8px solid #2563eb;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.blog-card-image {
    background-color: #d1d5db;
    min-height: 250px;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Blog card content */

.blog-card-content {
    padding: 26px;
    background-color: #eff6ff;
}

.blog-card-content h2,
.blog-feed-title {
    font-size: 1.6rem;
    margin-top: 8px;
    margin-bottom: 8px;
    color: #111827;
}

.blog-preview {
    margin-bottom: 16px;
    color: #374151;
}

.blog-summary {
    color: #374151;
    font-weight: bold;
}

.blog-body-content {
    color: #111827;
    display: grid;
    gap: 12px;
    line-height: 1.65;
    margin-top: 18px;
}

.blog-body-content h2,
.blog-body-content p {
    margin: 0;
}

.blog-body-content h2 {
    font-size: 1.35rem;
}

.blog-text-center {
    text-align: center;
}

.blog-detail-card,
.blog-detail-comments {
    margin-bottom: 18px;
}

.blog-directory-section {
    margin-bottom: 40px;
}

.directory-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 22px;
}

.directory-filter-button {
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    color: #374151;
    font-weight: bold;
    padding: 9px 14px;
    text-decoration: none;
}

.directory-filter-button:hover,
.directory-filter-button.is-active {
    background-color: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.blog-directory-search-form {
    display: grid;
    gap: 8px;
    margin: 0 0 22px;
    max-width: 760px;
}

.blog-directory-search-form label {
    color: #374151;
    font-weight: bold;
}

.blog-directory-search-row {
    display: flex;
    gap: 10px;
}

.blog-directory-search-row input {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    flex: 1;
    font: inherit;
    min-width: 0;
    padding: 10px 12px;
}

.blog-directory-search-row button {
    background-color: #2563eb;
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-weight: bold;
    padding: 10px 16px;
}

.blog-directory-search-row button:hover {
    background-color: #1d4ed8;
}

.blog-directory-action-row {
    display: flex;
    margin: -6px 0 22px;
}

.blog-directory-list {
    display: grid;
    gap: 18px;
}

.blog-directory-card {
    margin-bottom: 0;
}

.blog-directory-rating {
    color: #6b7280;
    font-size: 0.92rem;
    font-weight: bold;
    margin-top: 8px;
}

/* Blog action links */

.blog-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.blog-action-link {
    display: inline-block;
    background-color: #2563eb;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
}

.blog-action-link:hover {
    background-color: #1d4ed8;
    text-decoration: none;
}

.blog-action-link.secondary {
    background-color: #374151;
}

.blog-action-link.secondary:hover {
    background-color: #1f2937;
}


/* =========================================================
   TYPEWRITER BLOG BUTTON
   Equivalent to hey-button, but for blog.html.
   ========================================================= */

.type-button {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    width: 96px;
    height: 96px;
    border: none;
    border-radius: 22px;
    background-color: #ffffff;
    cursor: pointer;
    z-index: 1100;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    padding: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.type-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.type-button:hover {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.3);
}


/* =========================================================
   BLOG FOOTER PANEL
   ========================================================= */

.blog-footer {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%) translateY(110%);
    width: 100%;
    background-color: #111827;
    color: #ffffff;
    z-index: 1200;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease;
    max-height: 88vh;
    overflow-y: auto;
}

.blog-footer.footer-open {
    transform: translateX(-50%) translateY(0);
}

.blog-footer-inner {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 0;
}

.blog-post-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.blog-post-form[hidden] {
    display: none;
}

/* Initial footer button row */

.blog-footer-button-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.blog-form-open-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border: none;
    border-radius: 8px;
    background-color: #2563eb;
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
}

.blog-form-open-button:hover {
    background-color: #1d4ed8;
}

/* Blog form fields */

.blog-input-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.blog-input-section[hidden] {
    display: none;
}

.blog-form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.blog-form-group label {
    font-weight: bold;
    font-size: 0.95rem;
}

.blog-form-group input[type="text"],
.blog-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    font-family: Arial, Helvetica, sans-serif;
}

.blog-form-group textarea {
    resize: vertical;
    line-height: 1.6;
}

#blogBody {
    min-height: 260px;
}

#blogSummary {
    min-height: 86px;
}

.blog-character-counter {
    align-self: flex-start;
    color: #d1d5db;
    margin-top: -2px;
}

.about-character-counter.is-near-limit,
.blog-character-counter.is-near-limit {
    color: #f59e0b;
}

.about-character-counter.is-at-limit,
.blog-character-counter.is-at-limit {
    color: #ef4444;
}

.blog-format-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-format-toolbar button {
    min-width: 38px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background-color: #f8fafc;
    color: #111827;
    cursor: pointer;
    font: inherit;
    font-weight: bold;
    padding: 7px 10px;
}

.blog-format-toolbar button:hover,
.blog-format-toolbar button:focus {
    border-color: #93c5fd;
    color: #1d4ed8;
}

/* Blog form buttons */

.blog-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.submit-blog-button,
.draft-blog-button {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
}

.submit-blog-button {
    background-color: #16a34a;
}

.submit-blog-button:hover {
    background-color: #15803d;
}

.draft-blog-button {
    background-color: #2563eb;
}

.draft-blog-button:hover {
    background-color: #1d4ed8;
}

.clear-blog-button {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    background-color: #dc2626;
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
}

.clear-blog-button:hover {
    background-color: #b91c1c;
}

.blog-form-note {
    font-size: 0.85rem;
    color: #d1d5db;
}

.blog-draft-edit-form {
    margin-top: 14px;
}

.blog-draft-edit-form .blog-form-group input[type="text"],
.blog-draft-edit-form .blog-form-group textarea {
    background-color: #ffffff;
    color: #111827;
}


/* =========================================================
   DARK MODE SUPPORT
   These assume JavaScript toggles .dark-mode on the body.
   ========================================================= */

body.dark-mode {
    background-color: #0f172a;
    color: #e5e7eb;
}

body.dark-mode .profile-card,
body.dark-mode .about-card,
body.dark-mode .blog-card {
    background-color: #1f2937;
    color: #e5e7eb;
}

body.dark-mode .directory-filter-button {
    background-color: #111827;
    border-color: #374151;
    color: #e5e7eb;
}

body.dark-mode .directory-filter-button:hover,
body.dark-mode .directory-filter-button.is-active {
    background-color: #60a5fa;
    border-color: #60a5fa;
    color: #0f172a;
}

body.dark-mode .about-card h1,
body.dark-mode .blog-card-content h2,
body.dark-mode .blog-feed-title,
body.dark-mode .blog-body-content,
body.dark-mode .blog-body-content h2,
body.dark-mode .section-heading h2 {
    color: #ffffff;
}

body.dark-mode .profile-note,
body.dark-mode .section-heading p,
body.dark-mode .post-meta,
body.dark-mode .blog-preview {
    color: #cbd5e1;
}

body.dark-mode .blog-summary {
    color: #dbeafe;
}

body.dark-mode .feed-post-author-name {
    color: #ffffff;
}

body.dark-mode .feed-post-author-type {
    color: #cbd5e1;
}

body.dark-mode .star-rating-label {
    color: #cbd5e1;
}

body.dark-mode .star-rating-average {
    color: #cbd5e1;
}

body.dark-mode .profile-star-summary p {
    background-color: rgba(15, 23, 42, 0.72);
    border-color: rgba(226, 232, 240, 0.18);
}

body.dark-mode .profile-star-summary span {
    color: #cbd5e1;
}

body.dark-mode .profile-star-summary strong {
    color: #ffffff;
}

body.dark-mode .feed-reply-section {
    border-top-color: rgba(226, 232, 240, 0.18);
}

body.dark-mode .feed-reply-card {
    border-color: rgba(226, 232, 240, 0.18);
    background-color: rgba(15, 23, 42, 0.72);
}

body.dark-mode .feed-reply-author-name {
    color: #ffffff;
}

body.dark-mode .feed-reply-author-type,
body.dark-mode .feed-reply-meta,
body.dark-mode .feed-reply-form label {
    color: #cbd5e1;
}

body.dark-mode .feed-reply-form textarea {
    border-color: #475569;
    background-color: #111827;
    color: #ffffff;
}

body.dark-mode .broadcast-inner-card {
    background-color: rgba(15, 23, 42, 0.72);
    border-color: rgba(226, 232, 240, 0.18);
    color: #e5e7eb;
}

body.dark-mode .broadcast-inner-card:hover,
body.dark-mode .broadcast-inner-card:focus {
    border-color: #60a5fa;
}

body.dark-mode .broadcast-unavailable-card {
    border-color: rgba(248, 113, 113, 0.45);
}

body.dark-mode .blog-card-content {
    background-color: #172033;
}

body.dark-mode .blog-card {
    border-left-color: #60a5fa;
}

body.dark-mode .blog-action-link {
    background-color: #3b82f6;
}

body.dark-mode .blog-action-link:hover {
    background-color: #2563eb;
}

body.dark-mode .blog-action-link.secondary {
    background-color: #4b5563;
}

body.dark-mode .blog-action-link.secondary:hover {
    background-color: #374151;
}

body.dark-mode .type-button {
    background-color: #1f2937;
}

body.dark-mode .blog-footer {
    background-color: #020617;
}

body.dark-mode .blog-form-group input[type="text"],
body.dark-mode .blog-form-group textarea {
    background-color: #111827;
    color: #ffffff;
    border-color: #475569;
}

body.dark-mode .blog-form-group input[type="text"]::placeholder,
body.dark-mode .blog-form-group textarea::placeholder {
    color: #94a3b8;
}


/* =========================================================
   RESPONSIVE BLOG LAYOUT
   ========================================================= */

@media screen and (max-width: 850px) {

    .blog-card {
        grid-template-columns: 1fr;
    }

    .blog-card-image {
        height: 260px;
    }

}

@media screen and (max-width: 600px) {

    .type-button {
        width: 76px;
        height: 76px;
        bottom: 14px;
        border-radius: 18px;
    }

    .blog-card-content {
        padding: 18px;
    }

    .blog-card-actions,
    .blog-form-actions {
        flex-direction: column;
    }

    .blog-action-link,
    .submit-blog-button,
    .clear-blog-button,
    .blog-form-open-button {
        width: 100%;
        text-align: center;
    }

    .blog-form-group textarea {
        min-height: 220px;
    }

}

body.dark-mode .blog-format-toolbar button {
    background-color: #111827;
    border-color: #475569;
    color: #ffffff;
}

@media screen and (max-width: 620px) {
    .logon-simple-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 14px;
    }

    .logon-brand {
        font-size: 1.12rem;
        white-space: normal;
    }

    .logon-theme-button {
        width: 100%;
    }

    .logon-simple-page {
        grid-template-columns: 1fr;
        margin-top: 28px;
    }

    .logon-button-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .logon-account-button {
        width: min(100%, 260px);
        justify-self: center;
    }

    .guest-logon-section {
        margin-top: 34px;
    }
}
/* Brainyap frontback dynamic Django additions */
.header-logout-form {
    display: inline;
    margin: 0;
}

.header-logout-form .logout-link {
    border: 1px solid #ffffff;
    cursor: pointer;
    font-family: inherit;
}

@media screen and (max-width: 700px) {
    body {
        padding-top: 184px;
    }

    .header-inner {
        padding: 0 14px;
    }

    .header-main-row {
        gap: 10px;
        padding: 12px 0;
    }

    .header-search-wrapper {
        max-width: 100%;
    }

    .site-title a {
        font-size: 1.1rem;
    }

    .theme-toggle-button,
    .logout-link,
    .header-link,
    .header-actions > button.header-menu-item,
    .header-menu-button {
        font-size: 0.8rem;
        padding: 5px 10px;
    }

    .header-menu-item {
        width: 72px;
        min-height: 86px;
        padding: 6px;
    }

    .header-menu-icon {
        width: 32px;
        height: 32px;
    }
}

.logon-form {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.logon-form input {
    border: 1px solid var(--border-color, #c7c7c7);
    border-radius: 6px;
    font: inherit;
    padding: 12px;
}

.form-error {
    color: #a32121;
    font-weight: 700;
}

.logon-demo-notice {
    display: inline-flex;
    max-width: min(720px, 92vw);
    margin-left: 18px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.46);
    border-radius: 6px;
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.35;
}

@media (max-width: 720px) {
    .logon-simple-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .logon-demo-notice {
        margin-left: 0;
    }
}

.shanespace-alert-overlay {
    align-items: center;
    background-color: rgba(15, 23, 42, 0.62);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 20px;
    position: fixed;
    z-index: 5000;
}

.shanespace-alert-dialog {
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.35);
    max-width: 460px;
    padding: 24px;
    width: min(100%, 460px);
}

.shanespace-alert-dialog h2 {
    color: #111827;
    font-size: 1.25rem;
    line-height: 1.2;
    margin-bottom: 12px;
}

.shanespace-alert-dialog p {
    color: #374151;
    margin-bottom: 18px;
}

.shanespace-alert-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.shanespace-alert-button {
    align-items: center;
    background-color: #111827;
    border: 3px solid #111827;
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: bold;
    justify-content: center;
    min-height: 44px;
    min-width: 96px;
    padding: 8px 18px;
}

.directory-filter-row button.directory-filter-button {
    cursor: pointer;
    font: inherit;
}

.demo-comment-section {
    margin-top: 18px;
}

.demo-comment-section .feed-reply-card[hidden] {
    display: none;
}

.notification-menu-item {
    position: relative;
}

.shanespace-alert-secondary-button {
    background-color: #ffffff;
    color: #111827;
}

.shanespace-alert-button:hover,
.shanespace-alert-button:focus {
    background-color: #374151;
}

.shanespace-alert-secondary-button:hover,
.shanespace-alert-secondary-button:focus {
    background-color: #f3f4f6;
}

body.dark-mode .shanespace-alert-dialog {
    background-color: #1f2937;
    border-color: #334155;
}

body.dark-mode .shanespace-alert-dialog h2 {
    color: #ffffff;
}

body.dark-mode .shanespace-alert-dialog p {
    color: #cbd5e1;
}

body.dark-mode .shanespace-alert-secondary-button {
    background-color: #1f2937;
    border-color: #64748b;
    color: #ffffff;
}

body.dark-mode .shanespace-alert-secondary-button:hover,
body.dark-mode .shanespace-alert-secondary-button:focus {
    background-color: #334155;
}

.album-preview-grid,
.album-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-top: 24px;
}

.album-preview-card,
.album-photo-card {
    border: 1px solid var(--border-color, #d8d8d8);
    border-radius: 8px;
    overflow: hidden;
    padding: 14px;
}

.album-preview-card img,
.album-photo-card img {
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
    width: 100%;
}

.profile-link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.subscription-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.subscription-search-form {
    display: grid;
    gap: 8px;
    margin: 0 0 24px;
    max-width: 760px;
}

.subscription-search-form label {
    color: #374151;
    font-weight: bold;
}

.subscription-search-row {
    display: flex;
    gap: 10px;
}

.subscription-search-row input {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    flex: 1;
    font: inherit;
    min-width: 0;
    padding: 10px 12px;
}

.subscription-search-row button {
    background-color: #2563eb;
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-weight: bold;
    padding: 10px 16px;
}

.subscription-search-row button:hover {
    background-color: #1d4ed8;
}

.subscription-list {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.subscription-item {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-left: 8px solid #2563eb;
    border-radius: 8px;
    background-color: #f9fafb;
}

.subscription-item h3 {
    color: #111827;
    margin-bottom: 4px;
}

.subscription-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.empty-list-message {
    color: #4b5563;
}

body.dark-mode .subscription-item {
    background-color: #111827;
    border-color: #374151;
}

body.dark-mode .subscription-item h3 {
    color: #ffffff;
}

body.dark-mode .empty-list-message {
    color: #cbd5e1;
}

body.dark-mode .subscription-search-form label {
    color: #cbd5e1;
}

body.dark-mode .subscription-search-row input {
    background-color: #111827;
    border-color: #374151;
    color: #e5e7eb;
}

body.dark-mode .feed-load-status {
    color: #cbd5e1;
}

body.dark-mode .feed-loading-bar span {
    background-color: rgba(226, 232, 240, 0.22);
}

body.dark-mode .feed-loading-bar span::before {
    background-color: #93c5fd;
}

body.dark-mode .feed-floating-status {
    background-color: rgba(226, 232, 240, 0.9);
    color: #111827;
}

@media screen and (max-width: 850px) {
    .subscription-grid {
        grid-template-columns: 1fr;
    }

    .subscription-search-row {
        flex-direction: column;
    }
}

/* frontback v1.17 photo uploads, counters, and comments */
.profile-picture-preview-frame {
    width: 170px;
    height: 170px;
    border: 4px solid #111827;
    border-radius: 50%;
    overflow: hidden;
    background-color: #e5e7eb;
}

.profile-picture-preview-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.profile-picture-preview-placeholder {
    width: 100%;
    min-height: 100%;
    font-size: 2.25rem;
}

.profile-picture-position-grid {
    display: grid;
    gap: 8px;
}

.profile-picture-position-grid input[type="range"] {
    width: 100%;
}

.camera-counter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.photo-comment-section {
    border-top: 1px solid #e5e7eb;
    display: grid;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
}

.photo-comment-list {
    display: grid;
    gap: 10px;
}

.photo-comment-card {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 42px 10px 10px;
    position: relative;
}

.photo-comment-delete-form {
    top: 8px;
    right: 8px;
}

.photo-comment-card p {
    margin: 4px 0;
}

.photo-comment-reply-context,
.album-photo-upload-date {
    color: #6b7280;
    display: block;
    font-size: 0.84rem;
    margin-top: 4px;
}

.photo-comment-card span,
.photo-comment-empty {
    color: #6b7280;
    font-size: 0.84rem;
}

.album-photo-caption {
    margin-top: 16px;
    text-align: center;
}

.photo-comment-form {
    display: grid;
    gap: 8px;
}

.photo-comment-form[hidden],
.album-caption-edit-form[hidden] {
    display: none;
}

.photo-comment-form textarea,
.camera-upload-form textarea {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font: inherit;
    padding: 10px 12px;
    resize: vertical;
    width: 100%;
}

.feed-image-card-media {
    background-color: #e5e7eb;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
    max-height: 520px;
    max-width: 760px;
    overflow: hidden;
    text-decoration: none;
    width: 100%;
}

.image-post-card {
    grid-template-columns: 1fr;
}

.image-post-card .reel-content {
    width: 100%;
}

.feed-image-card-media img {
    display: block;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    width: 100%;
}

.feed-image-card-caption {
    margin-top: 16px;
    text-align: center;
}

.image-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.image-card-actions a,
.image-card-actions .button-link {
    background-color: #2563eb;
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font-weight: bold;
    padding: 8px 12px;
    text-decoration: none;
}

.image-card-actions a:hover,
.image-card-actions .button-link:hover {
    background-color: #1d4ed8;
    text-decoration: none;
}

.image-card-actions .report-picture-button {
    background-color: #dc2626;
}

.image-card-actions .report-picture-button:hover {
    background-color: #b91c1c;
}

.album-photo-card {
    position: relative;
}

.album-photo-full-link {
    display: block;
    text-decoration: none;
}

.album-photo-delete-form {
    position: absolute;
    right: 8px;
    top: 8px;
    z-index: 2;
}

.photo-feed-comment-section {
    margin-top: 4px;
}

.album-photo-owner-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}

.album-caption-edit-form,
.photo-comment-reply-form {
    margin: 10px 0;
}

.photo-comments-detail-link {
    background: transparent;
    color: #2563eb;
    font-size: 0.86rem;
    justify-self: start;
    line-height: 1.2;
    margin-top: 4px;
    padding: 0;
    text-decoration: underline;
}

.photo-comments-detail-link:hover {
    color: #1d4ed8;
}

.photo-detail-card {
    display: grid;
    gap: 16px;
    margin: 0 auto;
    max-width: 960px;
}

.photo-detail-card > img {
    background-color: #e5e7eb;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    display: block;
    max-height: 70vh;
    object-fit: contain;
    width: 100%;
}

.image-lightbox[hidden] {
    display: none;
}

.image-lightbox {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: fixed;
    z-index: 6000;
}

.image-lightbox-backdrop {
    background-color: rgba(15, 23, 42, 0.78);
    inset: 0;
    position: absolute;
}

.image-lightbox-dialog {
    align-items: center;
    display: flex;
    justify-content: center;
    max-height: 92vh;
    max-width: 94vw;
    position: relative;
    z-index: 1;
}

.image-lightbox-image {
    background-color: #111827;
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
    display: block;
    max-height: 92vh;
    max-width: 94vw;
    object-fit: contain;
}

.image-lightbox-close {
    align-items: center;
    background-color: #ffffff;
    border: 3px solid #111827;
    border-radius: 50%;
    color: #111827;
    cursor: pointer;
    display: inline-flex;
    font-size: 1.5rem;
    font-weight: bold;
    height: 44px;
    justify-content: center;
    line-height: 1;
    position: absolute;
    right: -16px;
    top: -16px;
    width: 44px;
    z-index: 2;
}

.image-lightbox-close:hover,
.image-lightbox-close:focus {
    background-color: #f3f4f6;
}

body.image-lightbox-open {
    overflow: hidden;
}

body.dark-mode .profile-picture-preview-frame {
    border-color: #64748b;
    background-color: #111827;
}

body.dark-mode .photo-comment-section,
body.dark-mode .photo-comment-card {
    border-color: #374151;
}

body.dark-mode .photo-comment-card {
    background-color: #111827;
}

body.dark-mode .feed-image-card-media {
    background-color: #111827;
    border-color: #374151;
}

body.dark-mode .photo-detail-card > img {
    background-color: #111827;
    border-color: #374151;
}

body.dark-mode .image-lightbox-close {
    background-color: #1f2937;
    border-color: #e5e7eb;
    color: #ffffff;
}

@media screen and (min-width: 900px) {
    .image-post-card .reel-content {
        padding-left: 32px;
        padding-right: 32px;
    }
}

@media screen and (max-width: 650px) {
    .feed-image-card-media {
        max-height: none;
        width: 100%;
    }

    .feed-image-card-media img {
        max-height: none;
    }

    .image-lightbox {
        padding: 14px;
    }

    .image-lightbox-close {
        right: 8px;
        top: 8px;
    }
}

body.dark-mode .photo-comment-card span,
body.dark-mode .photo-comment-empty,
body.dark-mode .photo-comment-reply-context,
body.dark-mode .album-photo-upload-date {
    color: #cbd5e1;
}

body.dark-mode .classified-advanced-search-panel select,
body.dark-mode .classified-post-form select,
body.dark-mode .classified-post-form input[type="text"],
body.dark-mode .classified-post-form textarea {
    border-color: #3d4658;
    background: #161b24;
    color: #f4f6fb;
}
