/**
 * JUDÔ360 - Estilos da HOME
 * CSS específico para a página inicial
 * VERSÃO CORRIGIDA - Faixa 40° e trapézios alinhados
 */

/* ===== RESET PARA GARANTIR 100VH ===== */
html, body {
    height: 100%;
    overflow: hidden;
}

body {
    margin: 0;
    padding: 0;
}

/* ===== HERO SECTION - TELA ÚNICA (SEM SCROLL) ===== */
.hero-section {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    overflow: hidden;
    background: var(--color-primary);
}

/* Trapézio Azul Marinho (Esquerda) - AJUSTADO para 40° */
.hero-left {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 45%;
    background: linear-gradient(135deg, var(--color-primary) 0%, #0d1829 100%);
    /* Clip-path ajustado para 40 graus - mais inclinado */
    clip-path: polygon(0 0, 100% 0, 70% 100%, 0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
    z-index: 3;
}

.hero-content {
    max-width: 500px;
    text-align: left;
    margin-right: 10%;
}

.hero-subtitle {
    font-family: var(--font-title);
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 3px;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.hero-title {
    font-family: var(--font-title);
    font-size: 5rem;
    font-weight: 900;
    color: var(--color-white);
    line-height: 0.9;
    margin-bottom: 1.2rem;
    letter-spacing: 3px;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.4);
}

.hero-description {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    letter-spacing: 1px;
    line-height: 1.5;
    text-transform: uppercase;
}

.btn-hero {
    padding: 1rem 2.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Trapézio Bege (Direita) - AJUSTADO para 40° */
.hero-right {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 57%;
    background: linear-gradient(135deg, var(--color-beige) 0%, #E8E2D5 100%);
    /* Clip-path ajustado para acompanhar a faixa de 40 graus */
    clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%);
    display: flex;
    flex-direction: column;
    padding: 0;
    z-index: 2;
}

.hero-right-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0 5% 0 18%;
}

/* Header da parte direita */
.hero-right-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.platform-text {
    font-family: var(--font-title);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 0.5px;
    max-width: 300px;
    line-height: 1.4;
    text-transform: uppercase;
}

.btn-login-hero {
    border: 2px solid var(--color-primary);
    background-color: transparent;
    color: var(--color-primary);
    padding: 0.75rem 2.5rem;
    border-radius: 30px;
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-transform: uppercase;
    white-space: nowrap;
}

.btn-login-hero:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 43, 74, 0.3);
}

/* Cards Section */
.quick-access-integrated {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding-right: 1rem;
}

.quick-access-integrated::-webkit-scrollbar {
    width: 8px;
}

.quick-access-integrated::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.quick-access-integrated::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 4px;
}

.cards-title {
    font-family: var(--font-title);
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding-bottom: 2rem;
}

/* Card Styles - FORMATO TRAPEZOIDAL */
.access-card {
    background: var(--color-white);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    position: relative;
    
    /* TRANSFORMAÇÃO TRAPEZOIDAL - 12 graus */
    transform: perspective(800px) rotateY(-2deg) skewY(-1deg);
    transform-style: preserve-3d;
}

.access-card:hover {
    transform: perspective(800px) rotateY(-2deg) skewY(-1deg) translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--color-gold);
}

/* Alternância de inclinação para criar efeito visual */
.access-card:nth-child(odd) {
    transform: perspective(800px) rotateY(-2deg) skewY(-1deg);
}

.access-card:nth-child(even) {
    transform: perspective(800px) rotateY(2deg) skewY(1deg);
}

.access-card:nth-child(odd):hover {
    transform: perspective(800px) rotateY(-2deg) skewY(-1deg) translateY(-5px);
}

.access-card:nth-child(even):hover {
    transform: perspective(800px) rotateY(2deg) skewY(1deg) translateY(-5px);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon .japanese-text {
    font-family: var(--font-japanese);
    font-size: 3.5rem;
    font-weight: 700;
}

.card-title {
    font-family: var(--font-title);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
}

.card-description {
    font-size: 0.9rem;
    color: var(--color-gray);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.btn-card {
    background: var(--color-gold);
    color: var(--color-primary);
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-card:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: scale(1.05);
}

/* Faixa Diagonal Dourada (OBI) - 40 GRAUS */
.diagonal-belt {
    position: absolute;
    top: -5%;
    left: 41%;
    width: 25px;
    height: 110%;
    background: linear-gradient(135deg, 
        var(--color-gold) 0%, 
        #E8C547 25%,
        var(--color-gold) 50%,
        #B8941F 75%,
        var(--color-gold) 100%
    );
    /* INCLINAÇÃO DE 40 GRAUS */
    transform: skewX(-40deg);
    z-index: 10;
    box-shadow: 
        -3px 0 15px rgba(0, 0, 0, 0.3),
        3px 0 15px rgba(0, 0, 0, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 4rem;
    }
    
    .cards-container {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    
    .hero-right-content {
        padding: 0 4% 0 15%;
    }
}

@media (max-width: 991px) {
    .hero-section {
        flex-direction: column;
    }
    
    .hero-left,
    .hero-right {
        position: relative;
        width: 100%;
        clip-path: none;
    }
    
    .hero-left {
        height: 45%;
        padding: 2rem;
        justify-content: center;
    }
    
    .hero-right {
        height: 55%;
        padding: 0;
    }
    
    .hero-content {
        text-align: center;
        max-width: 100%;
        margin-right: 0;
    }
    
    .hero-right-content {
        padding: 2rem;
    }
    
    .hero-right-header {
        padding: 1rem 0;
        margin-bottom: 1rem;
    }
    
    /* Faixa horizontal no mobile */
    .diagonal-belt {
        width: 100%;
        height: 20px;
        left: 0;
        top: 45%;
        transform: translateY(-50%);
    }
    
    /* Cards sem transformação trapezoidal no mobile */
    .access-card,
    .access-card:nth-child(odd),
    .access-card:nth-child(even) {
        transform: none;
    }
    
    .access-card:hover,
    .access-card:nth-child(odd):hover,
    .access-card:nth-child(even):hover {
        transform: translateY(-5px);
    }
    
    /* Cards em coluna única no mobile */
    .cards-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .access-card {
        padding: 1.5rem;
    }
    
    .card-icon {
        font-size: 2.5rem;
        height: 50px;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .card-description {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .platform-text {
        font-size: 0.95rem;
    }
    
    .btn-login-hero {
        padding: 0.6rem 1.5rem;
        font-size: 0.85rem;
    }
    
    .cards-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-left {
        height: 40%;
    }
    
    .hero-right {
        height: 60%;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 0.8rem;
    }
    
    .hero-description {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }
    
    .btn-hero {
        padding: 0.7rem 1.5rem;
        font-size: 0.85rem;
    }
    
    .hero-right-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-login-hero {
        width: 100%;
    }
    
    .diagonal-belt {
        top: 40%;
        height: 15px;
    }
}