/* Explain: Styles for UI components including buttons, inputs, cards, and a new background for flashes. */
.share-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    min-height: 2.75rem;
    padding: 0.5rem 0.9rem;
    border: 0;
    border-radius: 1rem;
    background: transparent;
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 700;
    text-align: start;
    cursor: pointer;
    transition: background 200ms ease, color 200ms ease;
}

.share-menu-item:hover,
.share-menu-item:focus-visible {
    background: var(--primary-color);
    color: #fff;
}

.flashes-panel-bg {
    background-color: var(--surface-color);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%233B82F6' stroke-opacity='0.13' stroke-width='1.6'%3E%3Ccircle cx='16' cy='16' r='7'/%3E%3Cpath d='M12.3 17.6 Q16 21 19.7 17.6' stroke-linecap='round'/%3E%3Ccircle cx='13.4' cy='14' r='0.95' fill='%233B82F6' fill-opacity='0.13' stroke='none'/%3E%3Ccircle cx='18.6' cy='14' r='0.95' fill='%233B82F6' fill-opacity='0.13' stroke='none'/%3E%3Ccircle cx='48' cy='16' r='7'/%3E%3Cpath d='M44.3 17.6 Q48 21 51.7 17.6' stroke-linecap='round'/%3E%3Ccircle cx='45.4' cy='14' r='0.95' fill='%233B82F6' fill-opacity='0.13' stroke='none'/%3E%3Ccircle cx='50.6' cy='14' r='0.95' fill='%233B82F6' fill-opacity='0.13' stroke='none'/%3E%3Ccircle cx='32' cy='48' r='7'/%3E%3Cpath d='M28.3 49.6 Q32 53 35.7 49.6' stroke-linecap='round'/%3E%3Ccircle cx='29.4' cy='46' r='0.95' fill='%233B82F6' fill-opacity='0.13' stroke='none'/%3E%3Ccircle cx='34.6' cy='46' r='0.95' fill='%233B82F6' fill-opacity='0.13' stroke='none'/%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(180deg, var(--surface-color), var(--surface-deep));
    background-size: 96px 96px, 100% 100%;
    background-repeat: repeat, no-repeat;
    background-attachment: local, local;
}

.organic-blob {
    border-radius: var(--radius-organic);
}

.organic-blob-soft {
    border-radius: 58% 42% 44% 56% / 50% 56% 44% 50%;
}

.organic-frame {
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-frame);
}

.organic-frame::after {
    content: "";
    position: absolute;
    inset: 0.8rem;
    border: 1px solid rgba(255, 248, 236, 0.62);
    border-radius: inherit;
    pointer-events: none;
}

.terracotta-label {
    background: rgba(226, 114, 91, 0.94);
    color: #fff8ec;
    box-shadow: 0 16px 35px rgba(95, 54, 43, 0.22);
}

.side-menu-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--text-muted);
    transition: color 220ms ease, transform 220ms ease;
}

.side-menu-link::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: var(--sand-color);
    transition: background 220ms ease, transform 220ms ease;
}

.side-menu-link:hover,
.side-menu-link:focus-visible {
    color: var(--olive-color);
    transform: translateX(0.2rem);
}

.side-menu-link:hover::before,
.side-menu-link:focus-visible::before {
    background: var(--terracotta-color);
    transform: scale(1.35);
}

.service-input {
    min-height: 3.25rem;
    border: 1px solid rgba(255, 248, 236, 0.42);
    background: rgba(255, 248, 236, 0.92);
    color: var(--text-color);
    border-radius: 999px;
}

.service-input::placeholder {
    color: rgba(36, 48, 38, 0.52);
}

.connect-form-card {
    border-radius: 2rem;
    isolation: isolate;
}

.connect-form-card::before {
    content: "";
    position: absolute;
    inset: -16% -8% auto auto;
    z-index: 0;
    width: min(24rem, 62%);
    height: min(24rem, 62%);
    border-radius: 999px;
    background: rgba(242, 201, 76, 0.14);
    transform: rotate(-12deg);
}

.connect-form-card label {
    color: var(--cream-color);
}

.connect-form-card .service-input {
    box-shadow: inset 0 0 0 1px rgba(60, 74, 62, 0.05);
}

@media (min-width: 768px) {
    .connect-form-card {
        border-radius: 4.5rem 7rem 5rem 6rem / 5rem 4.5rem 6rem 5.5rem;
    }
}

.service-submit {
    min-height: 3.25rem;
    border-radius: 999px;
    background: var(--terracotta-color);
    color: #fff8ec;
    border: 0;
    transition: transform 220ms ease, background 220ms ease, box-shadow 220ms ease;
    box-shadow: 0 14px 30px rgba(226, 114, 91, 0.28);
}

.service-submit:hover,
.service-submit:focus-visible {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(226, 114, 91, 0.34);
}

.status-note {
    border-radius: 1.25rem;
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
}

.status-note.success {
    background: rgba(255, 248, 236, 0.92);
    color: var(--olive-color);
}

.status-note.error {
    background: rgba(226, 114, 91, 0.16);
    color: #fff8ec;
    border: 1px solid rgba(255, 248, 236, 0.32);
}

.floating-request {
    box-shadow: 0 18px 45px rgba(36, 48, 38, 0.28);
}

.video-filter-btn {
    min-height: 2.75rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    color: var(--olive-color);
    padding: 0 1.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 220ms ease, color 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.video-filter-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.video-filter-btn.is-active {
    background: var(--terracotta-color);
    border-color: var(--terracotta-color);
    color: #fff8ec;
}

.reaction-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 2.35rem;
    padding: 0 0.65rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--surface-deep);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background 200ms ease, color 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.reaction-chip:hover,
.reaction-chip:focus-visible {
    transform: translateY(-2px);
    border-color: var(--terracotta-color);
    color: var(--terracotta-color);
}

.reaction-chip.is-active {
    background: var(--terracotta-color);
    border-color: var(--terracotta-color);
    color: #fff8ec;
}

.reaction-chip .reaction-emoji {
    font-size: 1.05rem;
    line-height: 1;
}

.reaction-chip .reaction-count {
    font-size: 0.78rem;
    font-weight: 800;
    opacity: 0.9;
}

.flashes-smile-bg {
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.8'%3E%3Ccircle cx='16' cy='16' r='7'/%3E%3Ccircle cx='13.4' cy='14' r='0.95' fill='%23ffffff' stroke='none'/%3E%3Ccircle cx='18.6' cy='14' r='0.95' fill='%23ffffff' stroke='none'/%3E%3Cpath d='M12.3 17.6 Q16 21 19.7 17.6' stroke-linecap='round'/%3E%3Ccircle cx='48' cy='16' r='7'/%3E%3Ccircle cx='45.4' cy='14' r='0.95' fill='%23ffffff' stroke='none'/%3E%3Ccircle cx='50.6' cy='14' r='0.95' fill='%23ffffff' stroke='none'/%3E%3Cpath d='M44.3 17.6 Q48 21 51.7 17.6' stroke-linecap='round'/%3E%3Ccircle cx='32' cy='48' r='7'/%3E%3Ccircle cx='29.4' cy='46' r='0.95' fill='%23ffffff' stroke='none'/%3E%3Ccircle cx='34.6' cy='46' r='0.95' fill='%23ffffff' stroke='none'/%3E%3Cpath d='M28.3 49.6 Q32 53 35.7 49.6' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 56px 56px;
    opacity: 0.85;
    animation: flashes-smile-drift 24s linear infinite;
}

@keyframes flashes-smile-drift {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 56px 56px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .flashes-smile-bg {
        animation: none;
    }
}
