/* mainpage.css — Galène landing page */

/* ── LAYOUT ──────────────────────────────────────────────── */
body {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background: #06060e;
    color: #f0f0f8;
    font-family: "DM Sans", sans-serif;
}

/* ── AMBIENT RINGS ───────────────────────────────────────── */
.bg-rings {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(124, 58, 237, 0.12);
}

.ring-1 {
    width: 600px;
    height: 600px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    animation: pulse-ring 6s ease-in-out infinite;
}

.ring-2 {
    width: 900px;
    height: 900px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    border-color: rgba(124, 58, 237, 0.07);
    animation: pulse-ring 6s ease-in-out 1.5s infinite;
}

.ring-3 {
    width: 1200px;
    height: 1200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    border-color: rgba(124, 58, 237, 0.04);
    animation: pulse-ring 6s ease-in-out 3s infinite;
}

@keyframes pulse-ring {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}

/* ── HOME CONTAINER ──────────────────────────────────────── */
.home {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem 2rem;
    text-align: center;
    min-height: calc(100vh - 60px);
}

/* ── BRAND ───────────────────────────────────────────────── */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-name {
    font-family: "Syne", sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #f0f0f8;
    letter-spacing: -0.04em;
    margin: 0;
    background: linear-gradient(135deg, #f0f0f8 40%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 1rem;
    color: #9494b8;
    margin: 0 0 2.5rem;
    line-height: 1.6;
    max-width: 320px;
}

/* ── JOIN CARD ───────────────────────────────────────────── */
.join-card {
    width: 100%;
    max-width: 420px;
    background: #0c0c1a;
    border: 1px solid rgba(148, 130, 255, 0.16);
    border-radius: 18px;
    padding: 1.75rem;
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(124, 58, 237, 0.08);
    margin-bottom: 2rem;
}

.join-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6666a0;
    margin-bottom: 8px;
    text-align: left;
}

.join-input-row {
    display: flex;
    gap: 8px;
}

.join-input {
    flex: 1;
    padding: 0.6rem 0.9rem;
    background: #18182c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #f0f0f8;
    font-family: "DM Sans", sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.join-input::placeholder {
    color: #44445e;
}

.join-input:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.25);
}

.join-btn {
    padding: 0.6rem 1.1rem;
    background: #7c3aed;
    border: 1px solid #7c3aed;
    border-radius: 8px;
    color: #fff;
    font-family: "DM Sans", sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 0.15s ease,
        box-shadow 0.15s ease;
    white-space: nowrap;
}

.join-btn:hover {
    background: #6d28d9;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4);
}

.errormessage {
    color: #f43f5e;
    font-size: 0.82rem;
    font-weight: 500;
    margin: 10px 0 0;
    min-height: 18px;
    text-align: left;
}

/* ── PUBLIC GROUPS ───────────────────────────────────────── */
.groups-section {
    width: 100%;
    max-width: 480px;
    animation: fade-in 0.4s ease;
}

.groups-section.nogroups {
    display: none;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.groups-title {
    font-family: "Syne", sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #55556e;
    margin: 0 0 12px;
}

.groups-table-wrap {
    background: #0c0c1a;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
}

.groups-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

#public-groups-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.15s ease;
}

#public-groups-table tr:last-child {
    border-bottom: none;
}
#public-groups-table tr:hover {
    background: #111122;
}

#public-groups-table td {
    padding: 10px 14px;
    color: #9494b8;
}

#public-groups-table tr a {
    margin-left: 0;
    font-weight: 600;
    color: #a78bfa;
    text-decoration: none;
    transition: color 0.15s ease;
}

#public-groups-table tr a:hover {
    color: #c4b5fd;
}

/* ── GENERAL LINKS ───────────────────────────────────────── */
a {
    text-decoration: none;
    color: #a78bfa;
    transition: color 0.15s ease;
}

a:hover {
    color: #c4b5fd;
}

label {
    display: block;
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media only screen and (max-width: 640px) {
    .brand-name {
        font-size: 2rem;
    }
    .tagline {
        font-size: 0.9rem;
    }
    .join-card {
        padding: 1.25rem;
        border-radius: 14px;
    }
    .home {
        padding: 3rem 1rem 2rem;
    }

    .join-input-row {
        flex-direction: column;
    }
    .join-btn {
        width: 100%;
    }
}
