/* ========================================
   PROTECTIONADULT - PÁGINA DE SELEÇÃO
   Escolha: Homem, Mulher ou Apoiador
   Layout: 3 colunas iguais (desktop)
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: #0a0a0a;
    color: #fafafa;
    overflow-x: hidden;
}

/* ========================================
   HEADER SIMPLES
   ======================================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: clamp(15px, 3vw, 20px) clamp(20px, 5vw, 40px);
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: clamp(36px, 8vw, 42px);
    height: clamp(36px, 8vw, 42px);
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(18px, 4vw, 20px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.25);
}

.logo span {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: #fafafa;
}

.btn-voltar {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #a1a1aa;
    text-decoration: none;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.btn-voltar:hover {
    color: #fafafa;
    background: rgba(255, 255, 255, 0.1);
}

/* ========================================
   CONTAINER PRINCIPAL - 3 COLUNAS
   ======================================== */

.selection-container {
    display: grid;
    /* ✅ Desktop: 3 colunas iguais */
    grid-template-columns: 1fr 1fr 1fr;
    min-height: 100vh;
    padding-top: 70px; /* Espaço para o header fixo */
}

/* ========================================
   CARDS DE SELEÇÃO (Base)
   ======================================== */

.selection-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: clamp(30px, 5vw, 60px);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Imagem de fundo */
.selection-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.5s ease, filter 0.5s ease;
    z-index: 0;
}

/* Overlay escuro */
.selection-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 10, 0.3) 0%,
        rgba(10, 10, 10, 0.7) 100%
    );
    transition: background 0.5s ease;
    z-index: 1;
}

/* Hover: zoom na imagem */
.selection-card:hover::before {
    transform: scale(1.05);
}

/* Hover: overlay mais claro */
.selection-card:hover::after {
    background: linear-gradient(
        180deg,
        rgba(10, 10, 10, 0.2) 0%,
        rgba(10, 10, 10, 0.5) 100%
    );
}

/* ========================================
   CARD HOMEM - Estilo Azul
   ======================================== */

.card-homem {
    background: #1a1a2e;
}

.card-homem::before {
    background-image: 
        linear-gradient(135deg, rgba(59, 130, 246, 0.2), transparent),
        url('https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=800&q=80');
}

.card-homem:hover {
    box-shadow: inset 0 0 100px rgba(59, 130, 246, 0.1);
}

.card-homem .selection-content h2 {
    color: #60a5fa;
}

.card-homem .selection-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.card-homem .selection-btn:hover {
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
}

/* ========================================
   CARD MULHER - Estilo Rosa
   ======================================== */

.card-mulher {
    background: #2a1a2e;
}

.card-mulher::before {
    background-image: 
        linear-gradient(135deg, rgba(236, 72, 153, 0.2), transparent),
        url('https://images.unsplash.com/photo-1494790108377-be9c29b29330?w=800&q=80');
}

.card-mulher:hover {
    box-shadow: inset 0 0 100px rgba(236, 72, 153, 0.1);
}

.card-mulher .selection-content h2 {
    color: #f472b6;
}

.card-mulher .selection-btn {
    background: linear-gradient(135deg, #ec4899, #db2777);
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.3);
}

.card-mulher .selection-btn:hover {
    box-shadow: 0 15px 40px rgba(236, 72, 153, 0.4);
}

/* ========================================
   CARD APOIADOR - Estilo Verde
   ======================================== */

.card-apoiador {
    background: #1a2e1a;
}

.card-apoiador::before {
    background-image: 
        linear-gradient(135deg, rgba(34, 197, 94, 0.2), transparent),
        url('https://images.unsplash.com/photo-1529156069898-49953e39b3ac?w=800&q=80');
}

.card-apoiador:hover {
    box-shadow: inset 0 0 100px rgba(34, 197, 94, 0.1);
}

.card-apoiador .selection-content h2 {
    color: #4ade80;
}

.card-apoiador .selection-btn {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.3);
}

.card-apoiador .selection-btn:hover {
    box-shadow: 0 15px 40px rgba(34, 197, 94, 0.4);
}

/* ========================================
   CONTEÚDO DOS CARDS
   ======================================== */

.selection-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 350px;
}

.selection-icon {
    font-size: clamp(50px, 10vw, 70px);
    margin-bottom: clamp(15px, 3vw, 25px);
    display: block;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.selection-content h2 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: clamp(10px, 2vw, 15px);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.selection-content p {
    color: #d1d5db;
    font-size: clamp(0.85rem, 2vw, 1rem);
    line-height: 1.6;
    margin-bottom: clamp(20px, 4vw, 30px);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.selection-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: clamp(12px, 2.5vw, 16px) clamp(25px, 5vw, 40px);
    border-radius: 12px;
    font-weight: 600;
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.selection-btn:hover {
    transform: translateY(-3px);
}

.selection-btn span {
    transition: transform 0.3s ease;
}

.selection-btn:hover span {
    transform: translateX(5px);
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */

/* TABLETS */
@media (max-width: 1024px) {
    .selection-container {
        /* Tablet: 3 colunas ainda, mas menores */
        grid-template-columns: 1fr 1fr 1fr;
    }
    
    .selection-content {
        max-width: 280px;
    }
    
    .selection-icon {
        font-size: clamp(40px, 8vw, 60px);
    }
}

/* CELULARES - EMPILHADO */
@media (max-width: 768px) {
    .selection-container {
        /* ✅ Mobile: 1 coluna (empilhado) */
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }
    
    .selection-card {
        min-height: 33.33vh;
        padding: 40px 20px;
    }
    
    .selection-content {
        max-width: 100%;
    }
    
    .selection-icon {
        font-size: 50px;
        margin-bottom: 15px;
    }
    
    .selection-content h2 {
        font-size: 1.75rem;
    }
    
    .selection-content p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
}

/* CELULARES PEQUENOS */
@media (max-width: 480px) {
    .selection-card {
        padding: 30px 15px;
    }
    
    .btn-voltar span.text {
        display: none;
    }
    
    .selection-btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
}

/* ========================================
   ANIMAÇÕES
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.selection-card {
    animation: fadeIn 0.8s ease forwards;
}

.card-homem {
    animation-delay: 0.1s;
}

.card-mulher {
    animation-delay: 0.2s;
}

.card-apoiador {
    animation-delay: 0.3s;
}

.selection-content {
    animation: slideUp 0.6s ease 0.3s forwards;
    opacity: 0;
}