/*
 * Apple Watch simplified home screen.
 *
 * These rules only take effect once DeviceDetector adds the `.apple-watch`
 * class to <body>. On every other device the block below is inert, so the
 * normal Google-style landing page is untouched.
 */

/* The simplified screen is hidden by default; only shown on the watch. */
.apple-watch-screen {
    display: none;
}

.apple-watch .apple-watch-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 12px 10px;
    box-sizing: border-box;
    text-align: center;
    background: #000;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
    -webkit-user-select: none;
    user-select: none;
}

/* Hide the full Google landing layout on the watch. */
.apple-watch .google-header,
.apple-watch .google-body,
.apple-watch .login-container,
.apple-watch .google-footer,
.apple-watch .connection-status {
    display: none !important;
}

.apple-watch-title {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin: 0;
}

.apple-watch-sub {
    font-size: 12px;
    line-height: 1.35;
    opacity: 0.7;
    margin: 0;
    max-width: 90%;
}

/* Big, thumb-friendly tap target sized for the small display. */
.apple-watch-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88%;
    max-width: 180px;
    min-height: 52px;
    padding: 12px 16px;
    border: none;
    border-radius: 26px;
    background: #0a84ff;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.apple-watch-action:active {
    background: #0060df;
}

/* Circular emoji/icon badge above the title. */
.apple-watch-badge {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    font-size: 30px;
    line-height: 1;
}

/*
 * Hidden unread indicator: a thin bar pinned to the very bottom edge.
 * It looks like a decorative accent line, but its colour encodes who has
 * unread messages. Colours mirror the main page's per-user tints:
 *   Dune  -> amber   (card-tint-blue on the main page)
 *   Thyke -> violet  (card-tint-violet on the main page)
 *   none  -> dim neutral, indistinguishable from a plain divider.
 * When both have unread messages the bar splits into two coloured halves.
 */
.apple-watch-status {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    display: flex;
}

.apple-watch-status .ws-seg {
    flex: 1 1 auto;
    height: 100%;
}

/* Default / no-unread: near-invisible neutral line. */
.apple-watch-status .ws-seg-none {
    background: rgba(255, 255, 255, 0.06);
}

/* Dune has unread -> amber (matches card-tint-blue #fef7e0 family). */
.apple-watch-status .ws-seg-dune {
    background: #f5a623;
}

/* Thyke has unread -> violet (matches card-tint-violet #f3f0ff family). */
.apple-watch-status .ws-seg-thyke {
    background: #8b5cf6;
}
