/* static/css/statuscheck.css */

/* 
 * heyyo.io - Classic AIM Theme (Windows 95/98 Style)
 */

:root {
    /* Classic Palette */
    --aim-bg-desktop: #000080;
    /* Retro Blue desktop background */
    --aim-bg-window: #c0c0c0;
    /* Standard Win95 Grey */
    --aim-bg-window-surface: #ffffff;
    /* Window content surface */
    --aim-bg-input: var(--aim-bg-window-surface);
    --aim-bg-highlight: #FFCC00;
    /* Heyyo Yellow */

    --aim-border-light: #ffffff;
    --aim-border-dark: #808080;
    --aim-border-darker: #404040;

    --aim-text-main: #000000;
    --aim-text-disabled: #808080;
    --aim-text-highlight: #000000;

    --aim-font-ui: "MS Sans Serif", "Segoe UI", Tahoma, sans-serif;
    --aim-font-mono: "Courier New", monospace;

    /* Spacing & Sizing */
    --aim-header-height: 28px;
    /* Slimmer title bar */
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--aim-bg-desktop);
    background-image: url('../images/retro_wallpaper.png');
    background-repeat: repeat;
    color: var(--aim-text-main);
    font-family: var(--aim-font-ui);
    margin: 0;
    padding-top: 74px;
    /* Space for app bar (64px + 10px) */
    font-size: 13px;
}

/* Utility: Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

a {
    color: #0000ff;
    text-decoration: underline;
}

a:hover {
    color: #ff0000;
}

/* --- App Bar (Title Bar Style) --- */
.aim-app-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--aim-bg-window);
    border-bottom: 2px solid var(--aim-border-dark);
    z-index: 1000;
    box-shadow: inset 1px 1px 0 var(--aim-border-light);
    display: flex;
    align-items: stretch;
    padding: 0 4px;
}

.aim-app-bar__inner {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 0 10px;
}

.aim-app-bar__brand {
    font-weight: bold;
    color: var(--aim-text-main);
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 6px;
    position: relative;
}

.aim-app-bar__logo {
    height: auto;
    max-height: 48px;
    width: auto;
    image-rendering: pixelated;
}

/* Hamburger Toggle Button - Hidden on Desktop */
.aim-app-bar__toggle {
    display: none;
    background: none;
    border: 1px solid transparent;
    padding: 2px 6px;
    cursor: pointer;
    font-size: 16px;
    color: var(--aim-text-main);
}

.aim-app-bar__toggle:hover {
    border-top: 1px solid var(--aim-border-light);
    border-left: 1px solid var(--aim-border-light);
    border-right: 1px solid var(--aim-border-dark);
    border-bottom: 1px solid var(--aim-border-dark);
}

.aim-app-bar__toggle-icon::before {
    content: '☰';
    font-size: 18px;
}

/* Navigation */
.aim-app-bar__nav {
    display: flex;
    gap: 12px;
}

.aim-app-bar__link {
    color: var(--aim-text-main);
    text-decoration: none;
    padding: 2px 6px;
    border: 1px solid transparent;
    white-space: nowrap;
}

.aim-app-bar__link:hover {
    border-top: 1px solid var(--aim-border-light);
    border-left: 1px solid var(--aim-border-light);
    border-right: 1px solid var(--aim-border-dark);
    border-bottom: 1px solid var(--aim-border-dark);
    color: var(--aim-text-main);
}

/* Mobile Navigation */
@media (max-width: 767px) {
    .aim-app-bar {
        height: auto;
        min-height: 32px;
    }

    .aim-app-bar__toggle {
        display: block;
    }

    .aim-app-bar__nav {
        position: absolute;
        top: 100%;
        right: 0;
        background: var(--aim-bg-window);
        border: 2px solid var(--aim-border-dark);
        border-top: none;
        flex-direction: column;
        gap: 0;
        display: none;
        box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        min-width: 150px;
    }

    .aim-app-bar__nav.is-open {
        display: flex;
    }

    .aim-app-bar__link {
        padding: 6px 12px;
        border: none;
        border-bottom: 1px solid var(--aim-border-dark);
    }

    .aim-app-bar__link:last-child {
        border-bottom: none;
    }

    .aim-app-bar__link:hover {
        background: var(--aim-bg-highlight);
        color: var(--aim-text-highlight);
        border: none;
    }
}

/* --- Layout --- */
.aim-layout {
    max-width: 900px;
    margin: 0 auto;
    padding: 10px;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.aim-layout>* {
    min-width: 0;
    /* Allow grid items to shrink below content size */
}

@media (max-width: 768px) {
    .aim-layout {
        grid-template-columns: 1fr;
    }
}

.aim-layout-single {
    width: 100%;
    padding: 0;
}

/* --- Windows 95 Card Style --- */
.aim-card {
    background: var(--aim-bg-window);
    border-top: 2px solid var(--aim-border-light);
    border-left: 2px solid var(--aim-border-light);
    border-right: 2px solid var(--aim-border-darker);
    border-bottom: 2px solid var(--aim-border-darker);
    padding: 2px;
    box-shadow: 1px 1px 0 0 #000;
    max-width: 100%;
}

/* --- User Panel --- */
.user-panel {
    padding: 8px;
}

.user-panel-header {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.user-avatar-wrapper {
    position: relative;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border: 2px solid var(--aim-border-dark);
    border-top-color: var(--aim-border-darker);
    border-left-color: var(--aim-border-darker);
    border-right-color: var(--aim-border-light);
    border-bottom-color: var(--aim-border-light);
    background: #fff;
    object-fit: cover;
}

.user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    /* Enable truncation in flex child */
}

.user-info__top {
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-info__name {
    font-weight: bold;
    font-size: 14px;
}

.user-info__status {
    font-style: italic;
    color: #444;
    margin-top: 2px;
    /* Truncation styles */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.user-info__meta {
    font-size: 11px;
    color: var(--aim-text-disabled);
}

.aim-divider {
    border: 0;
    border-top: 1px solid var(--aim-border-dark);
    border-bottom: 1px solid var(--aim-border-light);
    margin: 8px 0;
}

/* --- Forms (Restored Omnibox & Availability) --- */
.status-form label {
    display: block;
    margin-bottom: 2px;
    font-size: 11px;
}

.status-form input[type="text"],
.status-form textarea {
    width: 100%;
    background: var(--aim-bg-input);
    border: 2px solid var(--aim-border-dark);
    border-top-color: var(--aim-border-darker);
    border-left-color: var(--aim-border-darker);
    border-right-color: var(--aim-border-light);
    border-bottom-color: var(--aim-border-light);
    padding: 3px;
    font-family: var(--aim-font-ui);
    font-size: 12px;
    margin-bottom: 8px;
}

/* Omnibox Styles */
.status-combobox {
    position: relative;
    margin-bottom: 8px;
}

.status-combobox__field {
    display: flex;
}

.status-combobox__field input {
    flex: 1;
    margin-bottom: 0;
    height: 28px;
    /* Explicit height to match trigger */
    box-sizing: border-box;
}

.status-combobox__trigger {
    width: 20px;
    height: 28px;
    /* Explicit height to match input */
    box-sizing: border-box;
    background: var(--aim-bg-window);
    border-top: 2px solid var(--aim-border-light);
    border-left: 2px solid var(--aim-border-light);
    border-right: 2px solid var(--aim-border-darker);
    border-bottom: 2px solid var(--aim-border-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.status-combobox__trigger:active {
    border-top: 2px solid var(--aim-border-darker);
    border-left: 2px solid var(--aim-border-darker);
    border-right: 2px solid var(--aim-border-light);
    border-bottom: 2px solid var(--aim-border-light);
}

.status-combobox__list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--aim-bg-input);
    border: 1px solid #000;
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 100;
    max-height: 150px;
    overflow-y: auto;
}

.status-combobox__option {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 2px 4px;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
}

.status-combobox__option:hover {
    background: var(--aim-bg-highlight);
    color: var(--aim-text-highlight);
}

/* Availability Picker */
.status-availability-combobox {
    position: relative;
    width: 100%;
}

.status-availability-combobox select {
    display: none;
    /* Hide the default Django widget */
}

.status-availability-combobox__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--aim-bg-input);
    border: 2px solid var(--aim-border-dark);
    border-top-color: var(--aim-border-darker);
    border-left-color: var(--aim-border-darker);
    border-right-color: var(--aim-border-light);
    border-bottom-color: var(--aim-border-light);
    padding: 3px;
    cursor: pointer;
    height: 28px;
    /* Match other inputs */
    box-sizing: border-box;
}

/* Compact Bottom Row Layout */
.status-form-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
    margin-bottom: 0;
}

.status-form__availability {
    flex: 0 0 auto;
    /* Don't grow */
    width: auto;
    /* Auto width based on content */
    margin-bottom: 0 !important;
    /* Override form-group margin */
}

.status-availability-combobox {
    width: auto;
    min-width: 40px;
    /* Minimum width for dot + caret */
}

.status-availability-combobox__trigger {
    width: auto;
    gap: 4px;
    justify-content: center;
}

.status-submit {
    flex: 1;
    /* Take remaining space */
    height: 28px;
    /* Match height */
    margin-top: 0;
    /* Remove potential margin */
}

.save-for-later-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 11px;
}

.checkbox-group {
    /* Legacy class, keeping just in case but overriding for this specific use */
    display: none;
}

.status-availability-combobox__list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--aim-bg-input);
    border: 1px solid #000;
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 100;
}

.status-availability-combobox__option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
}

.status-availability-combobox__option:hover {
    background: var(--aim-bg-highlight);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.status-submit {
    width: 100%;
    padding: 4px;
    background: var(--aim-bg-window);
    border-top: 2px solid var(--aim-border-light);
    border-left: 2px solid var(--aim-border-light);
    border-right: 2px solid var(--aim-border-darker);
    border-bottom: 2px solid var(--aim-border-darker);
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding-top: 2px;
    box-sizing: border-box;
}

.status-submit:active {
    border-top: 2px solid var(--aim-border-darker);
    border-left: 2px solid var(--aim-border-darker);
    border-right: 2px solid var(--aim-border-light);
    border-bottom: 2px solid var(--aim-border-light);
}

/* --- Generic Retro Components --- */
.aim-container {
    max-width: 1100px;
    /* Increased max-width to accommodate 2 columns better */
    margin: 0 auto;
    padding: 10px;
}

.aim-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .aim-grid {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

.about-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    align-items: start;
}

.about-title {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: bold;
}

@media (max-width: 900px) {
    .about-layout {
        grid-template-columns: 1fr;
    }
}

.questions-list {
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.questions-list dt {
    font-weight: bold;
}

.questions-list dd {
    margin: 0 0 4px 0;
    padding-left: 12px;
}

.aim-window {
    background: var(--aim-bg-window);
    border-top: 2px solid var(--aim-border-light);
    border-left: 2px solid var(--aim-border-light);
    border-right: 2px solid var(--aim-border-darker);
    border-bottom: 2px solid var(--aim-border-darker);
    padding: 2px;
    margin-bottom: 16px;
    box-shadow: 1px 1px 0 0 #000;
}

.about-layout .aim-window {
    background: var(--aim-bg-window);
}

.about-layout .aim-window .aim-window-body {
    background: var(--aim-bg-window-surface);
}

.aim-window-header {
    background: var(--aim-bg-highlight);
    color: var(--aim-text-highlight);
    padding: 4px 8px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.aim-window-body {
    padding: 10px;
}

.aim-btn {
    background: var(--aim-bg-window);
    border-top: 2px solid var(--aim-border-light);
    border-left: 2px solid var(--aim-border-light);
    border-right: 2px solid var(--aim-border-darker);
    border-bottom: 2px solid var(--aim-border-darker);
    color: var(--aim-text-main);
    padding: 4px 12px;
    font-family: var(--aim-font-ui);
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
}

.aim-btn:active {
    border-top: 2px solid var(--aim-border-darker);
    border-left: 2px solid var(--aim-border-darker);
    border-right: 2px solid var(--aim-border-light);
    border-bottom: 2px solid var(--aim-border-light);
    padding-top: 5px;
    /* Visual press effect */
    padding-bottom: 3px;
}

.aim-btn.primary {
    font-weight: bold;
}

.aim-btn.danger {
    color: #ff0000;
}

.aim-input {
    background: var(--aim-bg-input);
    border: 2px solid var(--aim-border-dark);
    border-top-color: var(--aim-border-darker);
    border-left-color: var(--aim-border-darker);
    border-right-color: var(--aim-border-light);
    border-bottom-color: var(--aim-border-light);
    padding: 4px;
    font-family: var(--aim-font-ui);
    font-size: 12px;
    width: 100%;
}

.aim-inset {
    background: #fff;
    border: 2px solid var(--aim-border-dark);
    border-top-color: var(--aim-border-darker);
    border-left-color: var(--aim-border-darker);
    border-right-color: var(--aim-border-light);
    border-bottom-color: var(--aim-border-light);
    padding: 4px;
}

.aim-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.aim-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px;
    border-bottom: 1px dotted #ccc;
}

@media (max-width: 480px) {
    .aim-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .aim-list-item>div:last-child {
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }
}

/* Overrides for Bootstrap if present */
.btn {
    border-radius: 0 !important;
}

/* Force retro look on Bootstrap form controls inside aim-window */
.aim-window .form-control {
    border-radius: 0 !important;
    border: 2px solid var(--aim-border-dark) !important;
    border-top-color: var(--aim-border-darker) !important;
    border-left-color: var(--aim-border-darker) !important;
    border-right-color: var(--aim-border-light) !important;
    border-bottom-color: var(--aim-border-light) !important;
    background-color: var(--aim-bg-input) !important;
    box-shadow: none !important;
    font-family: var(--aim-font-ui) !important;
    font-size: 12px !important;
    padding: 4px !important;
}

.aim-window .form-control:focus {
    box-shadow: none !important;
    border-color: var(--aim-border-darker) !important;
}


/* --- Friend List --- */
.friend-list {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 400px;
}

.friend-list-header {
    background: var(--aim-bg-highlight);
    /* Title bar blue */
    color: #fff;
    /* Title bar blue */
    color: #fff;
    padding: 4px 8px;
    min-height: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 12px;
}

.friend-search {
    border: 1px solid #fff;
    padding: 1px 4px;
    font-size: 11px;
    width: 120px;
}

.friend-groups-container {
    flex: 1;
    background: #fff;
    /* White list background */
    border: 2px solid var(--aim-border-dark);
    border-top-color: var(--aim-border-darker);
    border-left-color: var(--aim-border-darker);
    border-right-color: var(--aim-border-light);
    border-bottom-color: var(--aim-border-light);
    overflow-y: auto;
    padding: 4px;
}

.friend-group {
    margin-bottom: 4px;
}

.group-header {
    cursor: pointer;
    font-weight: bold;
    padding: 2px 0;
    display: flex;
    align-items: center;
    user-select: none;
}

.group-header:hover {
    background-color: #eee;
}

.group-arrow {
    font-family: monospace;
    margin-right: 4px;
    font-size: 10px;
    display: inline-block;
    /* Required for transform */
    transition: transform 0.2s ease;
}

.group-header[aria-expanded="true"] .group-arrow {
    transform: rotate(90deg);
}

.group-count {
    font-weight: normal;
    color: #666;
    margin-left: 4px;
    font-size: 11px;
}

.group-body {
    padding-left: 0;
}

.friend-row {
    display: flex;
    align-items: flex-start;
    padding: 2px 0;
    cursor: default;
}

.friend-row:hover {
    background-color: #e0e0e0;
}

.friend-avatar {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    /* Slight increase in margin for better proportion */
    margin-top: 0;
}

.friend-info {
    flex: 1;
    display: flex;
    align-items: baseline;
    gap: 6px;
    overflow: hidden;
    min-width: 0;
    /* Enable truncation */
    max-width: 100%;
    /* Ensure it doesn't overflow the container */
}

.friend-name {
    font-weight: bold;
    font-size: 12px;
    white-space: nowrap;
}

.friend-status {
    color: #666;
    font-size: 11px;
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    flex: 1;
    /* Take up remaining horizontal space */
}

/* Message Expansion Styles */
.status-message--expanded {
    white-space: normal !important;
    overflow: visible !important;
    word-break: break-word;
    display: block;
    /* Ensure it behaves as a block container */
}

.presence-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.presence-dot.is-green {
    background: #00ff00;
}

.presence-dot.is-yellow {
    background: #ffff00;
}

.presence-dot.is-red {
    background: #ff0000;
}

.presence-dot.is-grey {
    background: #cccccc;
}

.friend-actions {
    display: none;
}

.friend-row:hover .friend-actions {
    display: flex;
    gap: 2px;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
    padding: 0 2px;
    opacity: 0.6;
}

.action-btn:hover {
    opacity: 1;
}

.new-group-container {
    padding: 4px;
    text-align: center;
    background: var(--aim-bg-window);
}

.btn-new-group {
    font-size: 11px;
    padding: 2px 8px;
    background: var(--aim-bg-window);
    border: 1px solid var(--aim-border-dark);
    cursor: pointer;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .aim-layout {
        grid-template-columns: 1fr;
    }

    .friend-list {
        min-height: auto;
    }
}

/* --- Homepage Styles --- */
.home-layout {
    min-height: 100vh;
    margin-top: -74px;
    padding-top: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
    background: linear-gradient(135deg, #000080 0%, #4B0082 100%);
}

.home-hero {
    max-width: 600px;
    width: 100%;
    text-align: center;
    color: #fff;
}

.home-hero__logo {
    margin-bottom: 20px;
}

.home-logo-img {
    width: 120px;
    height: 120px;
    image-rendering: pixelated;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.home-hero__title {
    font-family: 'VT323', monospace;
    font-size: 72px;
    margin: 0 0 10px 0;
    letter-spacing: 2px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.home-hero__tagline {
    font-size: 24px;
    margin: 0 0 40px 0;
    color: #fff;
    font-weight: 300;
}

.home-value-props {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.home-value-prop {
    text-align: center;
    flex: 0 1 auto;
}

.home-value-prop__icon {
    font-size: 48px;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.home-value-prop__text {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.home-signup {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.home-signup__title {
    font-size: 24px;
    margin: 0 0 20px 0;
    color: #fff;
    font-weight: bold;
}

.home-signup__form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.home-signup__input,
.home-signup__field input {
    width: 100%;
    box-sizing: border-box;
    /* Ensure padding doesn't add to width */
    padding: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.9);
    font-family: var(--aim-font-ui);
    font-size: 14px;
    border-radius: 4px;
}

.home-signup__input::placeholder,
.home-signup__field input::placeholder {
    color: #666;
}

.home-signup__input:focus,
.home-signup__field input:focus {
    outline: none;
    border-color: var(--aim-bg-highlight);
    background: #fff;
}

.home-signup__button {
    width: 100%;
    box-sizing: border-box;
    padding: 14px;
    background: var(--aim-bg-highlight);
    color: var(--aim-text-highlight);
    border: none;
    font-family: var(--aim-font-ui);
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: transform 0.1s, box-shadow 0.1s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.home-signup__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.home-signup__button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.home-signup__alt {
    margin: 16px 0 0 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}

.home-signup__alt a {
    color: var(--aim-bg-highlight);
    text-decoration: underline;
    font-weight: bold;
}

.home-signup__alt a:hover {
    color: #fff;
}

@media (max-width: 768px) {
    .home-hero__title {
        font-size: 56px;
    }

    .home-hero__tagline {
        font-size: 18px;
    }

    .home-value-props {
        gap: 30px;
        margin-bottom: 40px;
    }

    .home-value-prop__icon {
        font-size: 36px;
    }

    .home-logo-img {
        width: 100px;
        height: 100px;
    }

    .home-signup {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .home-hero__title {
        font-size: 48px;
    }

    .home-value-props {
        gap: 20px;
    }

    .home-value-prop__icon {
        font-size: 32px;
    }

    .home-value-prop__text {
        font-size: 12px;
    }
}

/* Status Timestamp */
.status-timestamp {
    display: none;
    font-size: 0.9em;
    color: #888;
    margin-top: 4px;
    text-align: right;
    width: 100%;
    /* Ensure it acts as a block */
    float: right;
    clear: both;
}

.status-message--expanded .status-timestamp {
    display: block;
}

/* CSS for Homepage Redesign */

.home-grid-container {
    max-width: 100%;
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
}

.home-grid-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 20px;
    margin-top: 20px;
    align-items: stretch;
}

.home-grid-cell {
    flex: 1;
    min-width: 300px;
    /* Ensure stacking on mobile */
    display: flex;
    flex-direction: column;
}

/* Row 1 Specifics */
.home-cell-a {
    /* Logo & Signup */
    align-items: center;
    text-align: center;
    color: #fff;
}

.home-cell-a {
    width: 50%;
    min-width: 320px;
}

.home-signup {
    width: 66%;
    min-width: 310px;
}

.home-cell-b {
    /* Value Props */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Value Box (Cell B Content) */
.home-value-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 30px;
    width: 100%;
    height: 100%;
    /* Fill the cell */
    color: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.home-value-box h3 {
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
    text-align: center;
    font-weight: bold;
}

.home-value-props-vertical {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.home-value-props-vertical .home-value-prop {
    display: flex;
    /* Horizontal alignment for icon + text */
    align-items: flex-start;
    text-align: left;
    gap: 15px;
}

.home-value-props-vertical .home-value-prop__icon {
    font-size: 32px;
    margin-bottom: 0;
    line-height: 1;
}

.home-value-props-vertical .home-value-prop__text {
    font-size: 18px;
    margin-bottom: 4px;
}

.home-value-prop__desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-weight: normal;
}


/* Row 2 Specifics */
.home-grid-row--triplet .home-grid-cell {
    flex: 1 1 30%;
    /* Roughly 1/3 */
}

.home-placeholder-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 30px;
    height: 100%;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: #333;
}

.placeholder-img {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.placeholder-img img {
    max-width: 100%;
    max-height: 320px;
    object-fit: contain;
    display: block;
}

.home-placeholder-card h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: bold;
}

.home-placeholder-card p {
    font-size: 14px;
    color: #555;
    margin: 0;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .home-grid-row {
        flex-direction: column;
    }

    .home-grid-cell {
        width: 100%;
        min-width: 0;
    }

    .home-grid-row--triplet .home-grid-cell {
        flex: 1 1 100%;
    }

    .home-placeholder-card {
        padding: 12px;
    }

    .placeholder-img {
        padding: 8px;
    }
}