/*
====================================================================
  SEÇÃO PROJETOS - DESKTOP CSS
  Local: sites/public/componentes/landingpage_portifolio/05_projetos/desktop/05_projetos_desktop.css
  
  DESCRIÇÃO:
    Estilos específicos para desktop da seção de projetos.
  
  PADRÃO DE BREAKPOINTS DO PROJETO (MOBILE FIRST)
    320px  - smartphones pequenos
    480px  - smartphones grandes
    600px  - tablets pequenos
    768px  - tablets
    992px  - notebooks/desktops pequenos
    1200px - desktops grandes
    1400px - telas muito grandes

  Autor: #@HD
  Data de criação: 12/07/2025
  Última atualização: 14/08/2025
====================================================================
*/

/* Sessão Projetos - CSS Específico Desktop */
.projetos {
    width: 100%;
    box-sizing: border-box;
}

/* ====================================================================
   SISTEMA DE BORDAS DESKTOP - SEÇÃO PROJETOS
   ==================================================================== */
/* Usar apenas o sistema de containers desktop - sem estilos customizados */

/* Título no estilo da seção Wiki */
.projetos .main-text {
    width: 100%;
    text-align: center;
    color: var(--hover-color);
    margin-bottom: 1.5rem;
}
.projetos .main-text h2 {
    font-weight: 700;
    font-size: var(--normal-font);
    margin-bottom: 0.5rem;
}
.projetos .main-text span {
    color: #fdfdfd;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 1px;
    display: block;
    text-transform: uppercase;
}

/* Menu de Filtros - Desktop */
.fillter-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Filtros Desktop */
.fillter-buttons.desktop-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--hover-color);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: none;
    font-size: 0.9rem;
}

.filter-btn:hover {
    background: var(--hover-color);
    color: var(--bg-color);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--hover-color);
    color: var(--bg-color);
    box-shadow: 0 0 10px var(--hover-color);
}

/* Projeto Card - Design Horizontal com Expansão */
.projeto-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--neon-box-shadow);
    transition: none;
    cursor: pointer;
    height: 220px;
    width: 100%;
    display: flex;
    position: relative;
    border: 1px solid var(--hover-color);
    outline: 2px solid var(--bg-color);
}

.projeto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px var(--hover-color);
    border-color: var(--hover-color);
}

/* Imagem do Projeto (Lado Esquerdo) */
.projeto-img {
    flex: 1;
    position: relative;
    overflow: hidden;
    transition: none;
    min-width: 120px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.projeto-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: none;
    display: block;
    opacity: 1;
    visibility: visible;
}

.projeto-card.expanded .projeto-img {
    flex: 1;
    min-width: 120px;
}

/* Área branca (informações) - SEPARADA */
.projeto-info {
    width: 0; /* fechado: somente o botão visível */
    min-width: 0;
    position: relative;
    display: flex;
    flex-shrink: 0;
    transition: none;
    z-index: 10;
    cursor: pointer;
    background: #12f7ff;
    border-right: none;
    overflow: visible; /* permite o botão aparecer fora da largura 0 */
}

.projeto-card.expanded .projeto-info {
    width: 400px;
    min-width: 400px;
    z-index: 30;
    background: transparent;
    border-right: 2px solid var(--hover-color);
}

/* Detalhes expandidos dentro da área branca */
.projeto-detalhes {
    position: absolute;
    top: 0;
    left: 0; /* ocupa desde o início quando expandido */
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6); /* preto translúcido */
    color: #fff;
    padding: 1rem;
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    z-index: 30;
    border-right: 2px solid var(--hover-color);
    transition: none;
    animation: none;
}

.projeto-card.expanded .projeto-detalhes {
    display: flex;
    transition: none;
    animation: none;
}

/* Evita duplicidade: ao expandir, esconda o bloco compacto */
.projeto-card.expanded .projeto-info-content {
    display: none;
}

/* Garantir visibilidade do botão de link mesmo expandido */
.projeto-card.expanded .projeto-link {
    display: flex !important;
    opacity: 0.95 !important;
}

/* Conteúdo das Informações */
.projeto-info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: none;
}

/* Categoria */
.projeto-category {
    font-size: 0.75rem;
    color: var(--hover-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

/* Título */
.projeto-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    line-height: 1.3;
    transition: none;
}

.projeto-card.expanded .projeto-info h4 {
    color: var(--hover-color);
}

/* Descrição */
.projeto-info p {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.4;
    line-clamp: 3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: none;
}

.projeto-card.expanded .projeto-info p {
    line-clamp: 4;
    -webkit-line-clamp: 4;
}

/* Ícones das Tecnologias */
.projeto-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin-top: 0.3rem;
    opacity: 0.7;
    transition: none;
}

.projeto-card.expanded .projeto-icons {
    opacity: 1;
}

.projeto-icons img {
    width: 14px !important;
    height: 14px !important;
    border-radius: 2px;
    background: rgba(255,255,255,0.15);
    padding: 1px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Link do Projeto */
.projeto-link {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: var(--bg-color) !important;
    color: var(--hover-color);
    width: 35px;
    height: 35px;
    /* Borda igual aos botões de idioma e links sociais */
    border: 1px solid var(--hover-color) !important;
    outline: 2px solid var(--bg-color) !important;
    box-shadow: var(--neon-box-shadow) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: none;
    opacity: 0.95;
    z-index: 60; /* acima de qualquer overlay/infos */
}

.projeto-link:hover {
    opacity: 1;
    transform: scale(1.1);
    background: var(--hover-color) !important;
    color: #fff;
    box-shadow: 0 0 20px var(--hover-color) !important;
    border-color: var(--hover-color) !important;
}

.projeto-link i {
    font-size: 1rem;
}

/* Botão de Toggle */
.projeto-toggle {
    position: absolute;
    top: 50%;
    right: -5px; /* sempre fixo na borda direita do card */
    transform: translateY(-50%);
    background: var(--bg-color);
    color: var(--hover-color);
    width: 15px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--hover-color);
    outline: 2px solid var(--bg-color);
    border-radius: 8px 0 0 8px;
    transition: none;
    opacity: 0.95;
    z-index: 30;
    box-shadow: var(--neon-box-shadow);
}

.projeto-toggle:hover {
    opacity: 1;
    width: 15px;
    box-shadow: 0 0 20px var(--hover-color);
}

.projeto-toggle i {
    font-size: 1.2rem;
    transition: none;
}

.projeto-card.expanded .projeto-toggle i {
    transform: rotate(180deg); /* de right -> left */
}

/* Ao expandir, mover o botão para a borda direita da área */
.projeto-card.expanded .projeto-toggle {
    right: -5px;
}

/* Conteúdo dos detalhes expandidos */
.projeto-detalhes-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    padding-right: 50px;
}

.projeto-detalhes-content h4 {
    color: var(--hover-color);
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.projeto-detalhes-content p {
    color: #e0e0e0;
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

/* Desktop Gallery - Formato Horizontal */
.desktop-gallery {
    display: none; /* Escondido por padrão, mostrado apenas no desktop */
    grid-template-columns: repeat(4, 1fr);
    padding: 2rem 0;
    overflow-y: auto; /* rolagem quando exceder duas linhas */
}

/* Grid de Projetos */
.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
    width: 100%;
}

/* Scrollbar visível na .project-gallery */
.project-gallery::-webkit-scrollbar {
    width: 8px;
}

.project-gallery::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.project-gallery::-webkit-scrollbar-thumb {
    background: rgba(18, 247, 255, 0.6);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.project-gallery::-webkit-scrollbar-thumb:hover {
    background: rgba(18, 247, 255, 0.8);
}

/* Desktop Only - Mostrar apenas em desktop */
.desktop-only {
    display: block;
}

/* Estilo do contador de projetos */
.projetos .projects-counter {
    display: inline-block;
    margin-left: 10px;
    font-size: 0.9rem;
    color: var(--hover-color);
    font-weight: 600;
    background: rgba(18, 247, 255, 0.1);
    padding: 4px 8px;
    border-radius: 12px;
    border: 1px solid rgba(18, 247, 255, 0.3);
    transition: all 0.3s ease;
}

.projetos .projects-counter:hover {
    background: rgba(18, 247, 255, 0.2);
    border-color: rgba(18, 247, 255, 0.6);
    transform: scale(1.05);
}

.projetos .project-gallery {
    margin-top: -1.5rem !important;
    padding-top: 1rem !important;
}
