/* public/assets/css/public.css */

/* Reset básico / tipografia */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    background: linear-gradient(180deg, #0f1f3e 0%, #1a3a52 50%, #0d2a47 100%);
    color: #fff;
    min-height: 100vh;
}

a {
    color: #34d399;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

textarea {
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Container genérico */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Botões base */
.btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.05s ease;
}

.btn:active {
    transform: translateY(1px);
}

/* Botões antigos (mantidos para compatibilidade interna) */
.btn-primary {
    background-color: #0d8c52;
    color: #fff;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
    background-color: #0a6e3f;
}

.btn-secondary {
    background-color: #ffffff;
    color: #0d8c52;
    border: 1px solid #0d8c52;
}

.btn-secondary:hover {
    background-color: #f1faf5;
}

.btn-link {
    background: none;
    border: none;
    color: #34d399;
    padding: 0;
    font-weight: 500;
}

.btn-block {
    width: 100%;
}

/* Botões tema Gold */
.btn-primary-gold {
    background: linear-gradient(135deg, #34d399, #2dd4a4);
    color: #0f1f3e;
    box-shadow: 0 10px 30px rgba(52, 211, 153, 0.3);
}

.btn-primary-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 45px rgba(52, 211, 153, 0.5);
}

.btn-secondary-gold {
    background: transparent;
    color: #d4af37;
    border: 2px solid #d4af37;
}

.btn-secondary-gold:hover {
    background: #d4af37;
    color: #0f1f3e;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(212, 175, 55, 0.4);
}

/* Alerts genéricos (público) */
.alert {
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 12px;
}

.alert-error {
    background-color: #fde2e1;
    color: #7f1d1d;
}

.alert-success {
    background-color: #dcf5e7;
    color: #14532d;
}

/* Formulários */
.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
    border-color: #0d8c52;
    box-shadow: 0 0 0 2px rgba(13, 140, 82, 0.15);
}

/* ===== HOME GOLD THEME ===== */

.hero {
    padding: 0;
}

/* Bloco principal da home */
.hero-gold {
    padding: 3rem 1.5rem 4rem;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 1.5rem;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
    gap: 2.5rem;
    align-items: center;
}

/* Hero texto */
.hero-title-gold {
    font-size: 3rem;
    line-height: 1.2;
    margin: 0 0 1rem;
    background: linear-gradient(135deg, #ffffff, #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

.hero-highlight {
    background: linear-gradient(135deg, #d4af37, #87ceeb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle-gold {
    font-size: 1.05rem;
    color: #a0d4e8;
    margin-bottom: 2.2rem;
    max-width: 640px;
    line-height: 1.7;
}

.hero-actions-gold {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.hero-note-gold {
    font-size: 0.9rem;
    color: #b0c4de;
}

/* Card de destaque no hero */
.hero-showcase {
    display: flex;
    justify-content: flex-end;
}

.gold-card {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.12), rgba(212, 175, 55, 0.12));
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid rgba(212, 175, 55, 0.5);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.6);
    max-width: 380px;
    width: 100%;
    backdrop-filter: blur(12px);
}

.gold-card-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.gold-badge {
    display: inline-block;
    background: linear-gradient(135deg, #d4af37, #f0d991);
    color: #0f1f3e;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.gold-badge-secondary {
    display: inline-block;
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    border: 1px solid rgba(135, 206, 235, 0.7);
    font-size: 0.75rem;
    color: #a0d4e8;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.gold-card-title {
    font-size: 0.95rem;
    color: #b0c4de;
    margin: 0 0 0.5rem;
}

.gold-card-prize {
    font-size: 1.8rem;
    font-weight: 900;
    margin: 0 0 0.8rem;
    background: linear-gradient(135deg, #d4af37, #f0d991);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gold-card-text {
    font-size: 0.9rem;
    color: #a0d4e8;
    margin: 0 0 1.2rem;
}

.gold-card-footer {
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    padding-top: 0.8rem;
}

.action-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: #34d399;
}

/* Linha dourada */
.gold-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    margin: 2.5rem auto;
    max-width: 1200px;
}

/* Seção de features / cards gold */
.hero-gold-secondary {
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 1.5rem 3rem;
}

.section-header-gold {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

.section-header-gold h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #d4af37, #87ceeb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

.section-header-gold p {
    font-size: 0.95rem;
    color: #b0c4de;
}

/* Grid de cards (reaproveita o conceito de network-grid) */
.network-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.group-card {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.08), rgba(212, 175, 55, 0.06));
    border: 2px solid rgba(212, 175, 55, 0.4);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.group-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #34d399, #d4af37, #87ceeb);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s;
}

.group-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.12), transparent);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.35s;
}

.group-card:hover {
    transform: translateY(-10px);
    border-color: #d4af37;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}

.group-card:hover::before {
    transform: scaleX(1);
}

.group-card:hover::after {
    opacity: 1;
}

.group-name {
    font-size: 1.4rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 0.4rem;
}

.group-description {
    color: #a0d4e8;
    font-size: 0.95rem;
    margin-bottom: 1.4rem;
    line-height: 1.6;
}

/* Stats dentro dos cards */
.group-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-bottom: 1.8rem;
    padding: 1.2rem;
    background: rgba(52, 211, 153, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(52, 211, 153, 0.15);
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 1.7rem;
    font-weight: 900;
    background: linear-gradient(135deg, #d4af37, #f0d991);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.75rem;
    color: #87ceeb;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 700;
}

/* Botões dentro dos cards */
.group-action {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.action-btn {
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(135deg, #34d399, #2dd4a4);
    color: #0f1f3e;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-size: 0.85rem;
    box-shadow: 0 8px 20px rgba(52, 211, 153, 0.25);
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(52, 211, 153, 0.4);
}

/* Mega stats (bloco inferior) */
.mega-stats {
    margin-top: 2.5rem;
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.1), rgba(212, 175, 55, 0.08));
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    padding: 2.4rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.8rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.mega-stat {
    text-align: center;
    padding: 1.2rem;
}

.mega-stat-value {
    font-size: 2.3rem;
    font-weight: 900;
    display: block;
    margin-bottom: 0.6rem;
    background: linear-gradient(135deg, #d4af37, #f0d991);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mega-stat-label {
    font-size: 0.9rem;
    color: #87ceeb;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    font-weight: 700;
}

/* Como funciona + CTA no tema gold */
.how-it-works-gold {
    margin-top: 3rem;
    padding: 2rem 0 0;
}

.how-it-works-gold h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    background: linear-gradient(135deg, #d4af37, #87ceeb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.steps {
    max-width: 760px;
    margin: 0 auto;
    padding-left: 18px;
    font-size: 14px;
    line-height: 1.6;
    color: #dbeafe;
}

.steps li + li {
    margin-top: 6px;
}

/* CTA final */
.cta-final-gold {
    margin-top: 3rem;
    text-align: center;
    padding: 2.5rem 0 0.5rem;
}

.cta-final-gold h2 {
    font-size: 1.9rem;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, #ffffff, #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-final-gold p {
    max-width: 620px;
    margin: 0 auto 1.6rem;
    font-size: 0.95rem;
    color: #cbd5f5;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===== PÁGINAS DE AUTENTICAÇÃO (login/registro) ===== */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.auth-page-gold {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem 4rem;
    background: radial-gradient(circle at top left, #233b5d, #050c1a);
    color: #f8f9fa;
}

/* card mais largo e premium, em 2 colunas */
.auth-card {
    width: 100%;
    max-width: 760px;
    background: radial-gradient(circle at top, #111a2b, #050a14);
    border-radius: 20px;
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.7);
    padding: 2.4rem 2.8rem 2.6rem;
    border: 1px solid rgba(255, 215, 128, 0.45);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
    column-gap: 2.4rem;
}

.auth-header {
    text-align: left;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding-right: 1.8rem;
    margin: 0;
}

.auth-title {
    font-size: 2rem;
    margin: 0 0 0.75rem;
    color: #ffe082;
}

.auth-subtitle {
    font-size: 0.98rem;
    color: #e1e5eb;
    margin: 0;
}

.auth-header-extra {
    margin-top: 1.4rem;
    font-size: 0.9rem;
    color: #adb5bd;
}

.auth-form-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.auth-footer {
    margin-top: 14px;
    text-align: center;
    font-size: 13px;
}

.auth-footer p {
    margin: 4px 0;
}

/* campos do formulário */

.form-row {
    display: flex;
    flex-direction: column;
}

.form-row-inline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
}

.form-row label {
    font-size: 0.86rem;
    color: #e0e0e0;
    margin-bottom: 0.25rem;
}

/* força largura total na coluna direita */
.auth-form .form-row input,
.auth-form .form-row-inline input {
    width: 100%;
    box-sizing: border-box;
}

.form-row input {
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background-color: rgba(6, 16, 34, 0.9);
    padding: 0.7rem 0.8rem;
    font-size: 0.96rem;
    color: #f8f9fa;
    outline: none;
}

.form-row input::placeholder {
    color: #6c757d;
}

.form-row input:focus {
    border-color: #ffca28;
    box-shadow: 0 0 0 1px rgba(255, 202, 40, 0.35);
}

.btn-full {
    width: 100%;
    margin-top: 0.4rem;
}

/* === Layout específico: "Meus grupos" === */
/* aplica apenas quando o card tiver a classe meus-grupos */
.card-gold.meus-grupos .network-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.card-gold.meus-grupos .group-card {
    background: rgba(5, 17, 35, 0.96);
    border: 1px solid rgba(212, 175, 55, 0.6);
    border-radius: 14px;
    padding: 1rem 1.4rem;
}

/* Responsividade */
@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        padding-top: 1rem;
    }

    .hero-showcase {
        justify-content: flex-start;
    }

    .hero-title-gold {
        font-size: 2.4rem;
    }

    .auth-card {
        grid-template-columns: 1fr;
        padding: 2rem 1.8rem 2.2rem;
    }

    .auth-header {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-right: 0;
        padding-bottom: 1.4rem;
        margin-bottom: 1.2rem;
    }

.auth-page-gold {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem 4rem;
    background: radial-gradient(circle at top left, #233b5d, #050c1a);
    color: #f8f9fa;
}

}
table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
}
.table-responsive,
.page-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
}
@media (max-width: 768px) {
    .hero-gold {
        padding: 2rem 1.25rem 3rem;
    }

    .network-grid {
        grid-template-columns: 1fr;
    }

    .mega-stats {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .mega-stat-value {
        font-size: 2.1rem;
    }
}
