/* CSS específico para plataforma.html */

/* Override para header específico da plataforma */
.plataforma .header {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(0, 120, 170, 0.1) !important;
}

.plataforma .header.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
}

/* Footer específico da plataforma */
.plataforma .footer {
    background: #1a1a1a;
    color: white;
    padding: 4rem 0 2rem;
}

.plataforma .footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.plataforma .footer__content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.plataforma .footer__brand img {
    height: 40px;
    width: auto;
    margin-bottom: 1rem;
}

.plataforma .footer__brand p {
    color: #9ca3af;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.plataforma .footer__links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.plataforma .footer__column h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.plataforma .footer__column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plataforma .footer__column ul li {
    margin-bottom: 0.5rem;
}

.plataforma .footer__column ul li a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.plataforma .footer__column ul li a:hover {
    color: var(--color-primary);
}

.plataforma .footer__column ul li:not(:has(a)) {
    color: #9ca3af;
}

.plataforma .footer__bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
}

.plataforma .footer__bottom p {
    color: #9ca3af;
    margin: 0;
}

@media (max-width: 768px) {
    .plataforma .footer__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .plataforma .footer__links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Fontes modernas para tech */
body.plataforma {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    font-weight: 400;
}

.plataforma .font-mono {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
}

/* Grid tecnológico de fundo */
.plataforma .tech-grid {
    background-image: 
        linear-gradient(rgba(0, 120, 170, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 120, 170, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Elementos flutuantes hexagonais */
.plataforma .floating-hex {
    position: absolute;
    opacity: 0.08;
    animation: float 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
}

/* Cards com efeitos tech */
.plataforma .tech-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 120, 170, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.plataforma .tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 120, 170, 0.15);
}

.plataforma .tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

/* Conectores visuais */
.plataforma .connection-line::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -25px;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), transparent);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Animações shimmer */
@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.plataforma .shimmer::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 3s infinite;
}

/* Botões modernos */
.plataforma .btn-tech {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.plataforma .btn-tech:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 120, 170, 0.3);
}

.plataforma .btn-tech::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.plataforma .btn-tech:hover::before {
    left: 100%;
}

/* Números animados */
.plataforma .counter {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Estilos para a interface de módulos */
.plataforma .modules-interface {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 600px;
}

.plataforma .modules-sidebar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(0, 120, 170, 0.1);
    box-shadow: 0 10px 30px rgba(0, 120, 170, 0.1);
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.plataforma .module-item {
    width: 100%;
    text-align: left;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.plataforma .module-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.plataforma .module-item.active {
    color: white !important;
    border: none !important;
    transform: scale(1.02);
}

.plataforma .module-content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid rgba(0, 120, 170, 0.1);
    box-shadow: 0 10px 30px rgba(0, 120, 170, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 600px;
}

.plataforma .module-detail {
    display: none;
}

.plataforma .module-detail.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive design */
@media (max-width: 1200px) {
    .plataforma .modules-interface {
        grid-template-columns: 300px 1fr;
        gap: 2rem;
        max-width: 1200px;
    }

    .plataforma .modules-sidebar {
        padding: 1.5rem;
    }

    .plataforma .module-content {
        padding: 2rem;
    }
}

@media (max-width: 992px) {
    .plataforma .modules-interface {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 100%;
    }

    .plataforma .modules-sidebar {
        position: static;
        order: 2;
        margin-top: 2rem;
    }

    .plataforma .module-content {
        order: 1;
        min-height: auto;
    }

    /* Layout dos módulos em tablet/mobile agora é vertical */
    .plataforma .module-detail {
        text-align: center;
    }

    .plataforma .module-detail img {
        max-width: 100% !important;
        margin: 0 auto 2rem auto;
    }

    .plataforma .module-detail h3 {
        font-size: 2.2rem !important;
    }

    .plataforma .module-detail p {
        font-size: 1.3rem !important;
    }
}

@media (max-width: 768px) {
    .plataforma .floating-hex { display: none; }
    .plataforma .connection-line::after { display: none; }

    .plataforma .modules-interface {
        padding: 0 1rem;
        gap: 1.5rem;
    }

    .plataforma .modules-sidebar {
        padding: 1.5rem;
        border-radius: 15px;
    }

    .plataforma .module-content {
        padding: 1.5rem;
        border-radius: 15px;
    }

    .plataforma .module-item {
        padding: 1rem;
        margin-bottom: 0.8rem;
        border-radius: 12px;
    }

    .plataforma .module-item h4 {
        font-size: 1rem !important;
    }

    .plataforma .module-item p {
        font-size: 0.8rem !important;
    }

    .plataforma .module-detail h3 {
        font-size: 2rem !important;
    }

    .plataforma .module-detail p {
        font-size: 1.2rem !important;
    }

    .plataforma .module-detail ul {
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    .plataforma .modules-sidebar h3 {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }

    .plataforma .module-item {
        padding: 0.8rem;
    }

    .plataforma .module-item > div {
        gap: 0.8rem !important;
    }

    .plataforma .module-item > div > div:first-child {
        width: 40px !important;
        height: 40px !important;
    }

    .plataforma .module-item svg {
        width: 20px !important;
        height: 20px !important;
    }

    .plataforma .module-detail h3 {
        font-size: 1.8rem !important;
        margin-bottom: 0.8rem !important;
    }

    .plataforma .module-detail > div > div:first-child h4 {
        font-size: 1rem !important;
    }

    .plataforma .module-detail img {
        max-width: 200px !important;
    }

    .plataforma .module-content {
        min-height: auto;
        padding: 1rem;
    }
}

/* Estilos para o modal de imagem */
.plataforma .image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
    backdrop-filter: blur(5px);
}

.plataforma .modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    animation: modalZoom 0.3s ease;
}

@keyframes modalZoom {
    from { transform: translateY(-50%) scale(0.8); opacity: 0; }
    to { transform: translateY(-50%) scale(1); opacity: 1; }
}

.plataforma .modal-content .close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s ease;
}

.plataforma .modal-content .close:hover {
    color: var(--color-accent);
}

.plataforma .modal-content img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    max-height: 80vh;
    object-fit: contain;
}

.plataforma .modal-content #modalCaption {
    color: white;
    font-size: 1.2rem;
    margin-top: 1rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Responsive para o modal */
@media (max-width: 768px) {
    .plataforma .modal-content {
        max-width: 95%;
        max-height: 95%;
    }

    .plataforma .modal-content .close {
        top: -30px;
        right: 10px;
        font-size: 30px;
    }

    .plataforma .modal-content #modalCaption {
        font-size: 1rem;
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    .plataforma .modal-content .close {
        top: 10px;
        right: 10px;
        background: rgba(0, 0, 0, 0.7);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
    }
}

/* Estilos para navegação do modal */
.plataforma .modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    opacity: 0.8;
}

.plataforma .modal-nav-btn.show {
    display: flex !important;
}

.plataforma .modal-prev-btn {
    left: 20px;
}

.plataforma .modal-next-btn {
    right: 20px;
}

.plataforma .modal-nav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
}

.plataforma .modal-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

/* Estilos para indicadores do modal */
#modalIndicators {
    display: none;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.plataforma .modal-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.plataforma .modal-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.plataforma .modal-indicator.active {
    background: white;
    transform: scale(1.2);
}
}

/* Estilos para o carrossel de imagens */
.plataforma .image-carousel {
    text-align: center;
    margin-bottom: 3rem;
}

.plataforma .carousel-container {
    position: relative;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    background: transparent;
    overflow: hidden;
}

.plataforma .carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
    border-radius: 15px;
}

.plataforma .carousel-slide {
    min-width: 100%;
    position: relative;
}

.plataforma .carousel-slide img {
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: block;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.plataforma .carousel-slide img:hover {
    transform: scale(1.02);
}

/* Botões de navegação do carrossel */
.plataforma .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.plataforma .carousel-btn:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    background: white;
}

.plataforma .carousel-btn.prev {
    left: 20px;
}

.plataforma .carousel-btn.next {
    right: 20px;
}

.plataforma .carousel-btn svg {
    pointer-events: none;
}

/* Indicadores do carrossel */
.plataforma .carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
    padding: 5px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.plataforma .carousel-indicators .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 1;
}

.plataforma .carousel-indicators .indicator:hover {
    transform: scale(1.1);
}

.plataforma .carousel-indicators .indicator.active {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.6);
    border: 2px solid white;
}

/* Responsive para carrossel */
@media (max-width: 768px) {
    .plataforma .carousel-container {
        max-width: 100%;
        margin: 0;
    }

    .plataforma .carousel-btn {
        width: 40px;
        height: 40px;
        opacity: 0.9;
    }

    .plataforma .carousel-btn.prev {
        left: 10px;
    }

    .plataforma .carousel-btn.next {
        right: 10px;
    }

    .plataforma .carousel-btn svg {
        width: 16px;
        height: 16px;
    }

    .plataforma .carousel-indicators {
        gap: 6px;
        margin-top: 12px;
    }

    .plataforma .carousel-indicators .indicator {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .plataforma .carousel-btn {
        width: 35px;
        height: 35px;
    }

    .plataforma .carousel-btn.prev {
        left: 5px;
    }

    .plataforma .carousel-btn.next {
        right: 5px;
    }

    .plataforma .carousel-btn svg {
        width: 14px;
        height: 14px;
    }

    .plataforma .carousel-indicators .indicator {
        width: 8px;
        height: 8px;
    }

    /* Ocultar botões em telas muito pequenas e usar apenas gestos touch */
    .plataforma .carousel-btn {
        opacity: 0.6;
    }
}

/* Animações suaves para mudança de módulo */
.plataforma .carousel-container {
    animation: carouselFadeIn 0.4s ease;
}

@keyframes carouselFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}