﻿
/* =========================================================
   TECHCORDAS — MODAL DE APRESENTAÇÃO
   Visual premium • Responsivo • Desktop e Mobile
========================================================= */
#modalVideoTechCordas {
    --tc-modal-bg: #071426;
    --tc-modal-bg-secondary: #0b1c32;
    --tc-modal-blue: #299cff;
    --tc-modal-blue-hover: #1685e5;
    --tc-modal-text: #ffffff;
    --tc-modal-muted: #b4c4d8;
    --tc-modal-border: rgba(41, 156, 255, 0.28);
}

/* =========================================================
   JANELA DO MODAL
========================================================= */

#modalVideoTechCordas .modal-dialog {
    width: calc(100% - 32px);
    max-width: 850px;
    margin: 16px auto;
}

#modalVideoTechCordas .modal-content {
    animation: tcVideoModalEntrada 0.3s ease-out;
}

.tc-video-modal {
    position: relative;
    background: radial-gradient( ellipse at top right, rgba(41, 156, 255, 0.09), transparent 48% ), var(--tc-modal-bg);
    color: var(--tc-modal-text);
    border: 1px solid var(--tc-modal-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55), 0 0 35px rgba(41, 156, 255, 0.07);
}

    /* =========================================================
   CABEÇALHO
========================================================= */

    .tc-video-modal .modal-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        padding: 22px 26px;
        background: rgba(255, 255, 255, 0.018);
        border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    }

        .tc-video-modal .modal-header > div {
            min-width: 0;
        }

    .tc-video-modal .modal-title {
        display: flex;
        align-items: center;
        gap: 10px;
        color: var(--tc-modal-text);
        font-size: 1.3rem;
        font-weight: 800;
        letter-spacing: -0.035em;
        line-height: 1.3;
        margin: 0 0 6px;
    }

        .tc-video-modal .modal-title::before {
            content: "";
            display: block;
            flex: 0 0 4px;
            width: 4px;
            height: 25px;
            border-radius: 10px;
            background: var(--tc-modal-blue);
            box-shadow: 0 0 14px rgba(41, 156, 255, 0.4);
        }

    .tc-video-modal .modal-header small {
        display: block;
        color: var(--tc-modal-muted);
        font-size: 0.88rem;
        line-height: 1.5;
    }

    /* Botão de fechar */

    .tc-video-modal .btn-close {
        flex: 0 0 auto;
        width: 38px;
        height: 38px;
        padding: 11px;
        margin: 0;
        border-radius: 10px;
        background-color: rgba(255, 255, 255, 0.07);
        background-size: 12px;
        opacity: 0.85;
        transition: background-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
    }

        .tc-video-modal .btn-close:hover {
            background-color: rgba(41, 156, 255, 0.2);
            opacity: 1;
            transform: rotate(90deg);
        }

        .tc-video-modal .btn-close:focus-visible {
            outline: 2px solid var(--tc-modal-blue);
            outline-offset: 3px;
            box-shadow: none;
        }

    /* =========================================================
   CORPO
========================================================= */

    .tc-video-modal .modal-body {
        padding: 26px;
        text-align: center;
    }

/* =========================================================
   VÍDEO
========================================================= */

.tc-video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    isolation: isolate;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28), 0 0 0 4px rgba(255, 255, 255, 0.015);
}

    .tc-video-container iframe {
        position: absolute;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        border: 0;
    }

/* =========================================================
   DESCRIÇÃO
========================================================= */

.tc-video-descricao {
    max-width: 610px;
    margin: 22px auto 20px;
    color: #c5d2e1;
    font-size: 0.96rem;
    font-weight: 400;
    line-height: 1.8;
}

/* =========================================================
   BOTÃO — CRIAR PERFIL TÉCNICO
========================================================= */

.tc-video-botao {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    min-height: 50px;
    padding: 14px 25px;
    background: linear-gradient( 135deg, #36a8ff 0%, #1685e5 100% );
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 11px;
    box-shadow: 0 7px 20px rgba(41, 156, 255, 0.2);
    font-size: 0.96rem;
    font-weight: 750;
    line-height: 1.3;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

    .tc-video-botao i {
        font-size: 1rem;
    }

    .tc-video-botao:hover {
        background: linear-gradient( 135deg, #52b5ff 0%, #1685e5 100% );
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 11px 26px rgba(41, 156, 255, 0.3);
    }

    .tc-video-botao:active {
        transform: translateY(0);
        box-shadow: 0 4px 12px rgba(41, 156, 255, 0.18);
    }

    .tc-video-botao:focus-visible {
        outline: 2px solid #fff;
        outline-offset: 4px;
    }

/* =========================================================
   MENSAGEM — CONTINUAR NAVEGANDO
========================================================= */

.tc-video-continuar {
    max-width: 540px;
    margin: 20px auto 0;
    padding: 12px 16px;
    color: #9fb2c9;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    font-size: 0.82rem;
    line-height: 1.7;
}

    .tc-video-continuar strong {
        color: #dceaff;
        font-weight: 750;
    }

/* =========================================================
   ANIMAÇÃO DE ENTRADA
========================================================= */

@keyframes tcVideoModalEntrada {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =========================================================
   TABLETS
========================================================= */

@media (max-width: 768px) {
    #modalVideoTechCordas .modal-dialog {
        max-width: 680px;
    }

    .tc-video-modal .modal-header {
        padding: 20px;
    }

    .tc-video-modal .modal-body {
        padding: 20px;
    }

    .tc-video-modal .modal-title {
        font-size: 1.18rem;
    }

    .tc-video-descricao {
        margin-top: 18px;
        font-size: 0.92rem;
    }
}

/* =========================================================
   CELULARES
========================================================= */

@media (max-width: 576px) {
    #modalVideoTechCordas .modal-dialog {
        width: calc(100% - 20px);
        margin: 10px auto;
    }

    .tc-video-modal {
        border-radius: 15px;
    }

        .tc-video-modal .modal-header {
            gap: 12px;
            padding: 16px;
        }

        .tc-video-modal .modal-title {
            gap: 8px;
            font-size: 1.05rem;
            letter-spacing: -0.02em;
        }

            .tc-video-modal .modal-title::before {
                height: 21px;
            }

        .tc-video-modal .modal-header small {
            font-size: 0.78rem;
        }

        .tc-video-modal .btn-close {
            width: 34px;
            height: 34px;
            padding: 10px;
            background-size: 11px;
        }

        .tc-video-modal .modal-body {
            padding: 14px;
        }

    .tc-video-container {
        border-radius: 10px;
    }

    .tc-video-descricao {
        margin: 16px auto;
        font-size: 0.86rem;
        line-height: 1.7;
    }

    .tc-video-botao {
        display: flex;
        width: 100%;
        min-height: 48px;
        padding: 13px 12px;
        gap: 9px;
        border-radius: 10px;
        font-size: 0.9rem;
    }

    .tc-video-continuar {
        margin-top: 15px;
        padding: 10px 12px;
        font-size: 0.77rem;
        line-height: 1.6;
    }
}

/* =========================================================
   CELULARES MUITO PEQUENOS
========================================================= */

@media (max-width: 360px) {
    #modalVideoTechCordas .modal-dialog {
        width: calc(100% - 14px);
        margin: 7px auto;
    }

    .tc-video-modal .modal-header {
        padding: 13px;
    }

    .tc-video-modal .modal-body {
        padding: 11px;
    }

    .tc-video-modal .modal-title {
        font-size: 0.98rem;
    }

    .tc-video-modal .modal-header small {
        font-size: 0.73rem;
    }

    .tc-video-descricao {
        font-size: 0.82rem;
    }

    .tc-video-continuar {
        font-size: 0.74rem;
    }
}

/* =========================================================
   ACESSIBILIDADE — REDUZIR ANIMAÇÕES
========================================================= */

@media (prefers-reduced-motion: reduce) {
    #modalVideoTechCordas .modal-content {
        animation: none;
    }

    .tc-video-modal .btn-close,
    .tc-video-botao {
        transition: none;
    }
}


