/* ===================================
   Enhanced Project Showcase Experience
   Vista inmersiva y elegante para demos de proyectos
   =================================== */

/* ===== MODAL SHOWCASE PRINCIPAL ===== */

.project-showcase-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 10000 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    overflow: hidden !important;
}

.project-showcase-modal.active {
    opacity: 1 !important;
    visibility: visible !important;
}

/* ===== BACKDROP CON EFECTO BLUR ===== */

.showcase-backdrop {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(135deg,
        rgba(10, 10, 20, 0.98),
        rgba(20, 10, 30, 0.98),
        rgba(30, 10, 40, 0.98)) !important;
    backdrop-filter: blur(30px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(30px) saturate(150%) !important;
}

/* Partículas animadas de fondo */
.showcase-particles {
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
}

.particle {
    position: absolute !important;
    width: 4px !important;
    height: 4px !important;
    background: rgba(139, 92, 246, 0.4) !important;
    border-radius: 50% !important;
    animation: floatParticle 20s infinite linear !important;
}

@keyframes floatParticle {
    from {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    to {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* ===== CONTENEDOR PRINCIPAL ===== */

.showcase-container-main {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr 1.5fr !important;
    gap: 0 !important;
    z-index: 1 !important;
}

/* ===== PANEL IZQUIERDO - INFO DEL PROYECTO ===== */

.showcase-info-panel {
    background: linear-gradient(135deg,
        rgba(20, 20, 30, 0.95),
        rgba(30, 20, 40, 0.95)) !important;
    padding: 60px 40px !important;
    overflow-y: auto !important;
    border-right: 1px solid rgba(139, 92, 246, 0.2) !important;
    display: flex !important;
    flex-direction: column !important;
    animation: slideInLeft 0.6s ease-out !important;
}

/* Header del proyecto */
.project-header {
    margin-bottom: 40px !important;
}

.project-badge-container {
    display: flex !important;
    gap: 10px !important;
    margin-bottom: 20px !important;
    flex-wrap: wrap !important;
}

.project-badge-large {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 16px !important;
    background: linear-gradient(135deg,
        rgba(139, 92, 246, 0.2),
        rgba(168, 85, 247, 0.2)) !important;
    border: 1px solid rgba(139, 92, 246, 0.4) !important;
    border-radius: 30px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: var(--accent) !important;
    animation: glow 2s ease-in-out infinite !important;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
    }
}

.project-title-large {
    font-size: 3rem !important;
    font-weight: 900 !important;
    background: linear-gradient(135deg, #8b5cf6, #a78bfa) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    margin-bottom: 15px !important;
    line-height: 1.2 !important;
}

.project-subtitle {
    font-size: 1.3rem !important;
    color: var(--text-secondary) !important;
    margin-bottom: 30px !important;
    opacity: 0.9 !important;
}

/* Descripción expandida */
.project-description-full {
    font-size: 1.1rem !important;
    line-height: 1.8 !important;
    color: var(--text-primary) !important;
    margin-bottom: 40px !important;
    padding: 25px !important;
    background: rgba(0, 0, 0, 0.3) !important;
    border-radius: 16px !important;
    border-left: 4px solid var(--accent) !important;
}

/* Features del proyecto */
.project-features {
    margin-bottom: 40px !important;
}

.features-title {
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    margin-bottom: 20px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.features-title::before {
    content: '✨' !important;
    font-size: 1.5rem !important;
}

.features-grid {
    display: grid !important;
    gap: 15px !important;
}

.feature-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 15px !important;
    padding: 20px !important;
    background: rgba(139, 92, 246, 0.05) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(139, 92, 246, 0.2) !important;
    transition: all 0.3s ease !important;
}

.feature-item:hover {
    background: rgba(139, 92, 246, 0.1) !important;
    transform: translateX(10px) !important;
    border-color: var(--accent) !important;
}

.feature-icon {
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, var(--accent), #a78bfa) !important;
    border-radius: 10px !important;
    font-size: 1.2rem !important;
}

.feature-content h4 {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: var(--text-primary) !important;
    margin-bottom: 5px !important;
}

.feature-content p {
    font-size: 0.95rem !important;
    color: var(--text-secondary) !important;
    line-height: 1.5 !important;
}

/* Tech Stack avanzado */
.tech-stack-detailed {
    margin-bottom: 40px !important;
}

.tech-stack-title {
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    margin-bottom: 20px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.tech-stack-title::before {
    content: '🛠' !important;
    font-size: 1.5rem !important;
}

.tech-categories {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

.tech-category {
    padding: 15px !important;
    background: rgba(0, 0, 0, 0.2) !important;
    border-radius: 12px !important;
}

.tech-category-title {
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: var(--accent) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    margin-bottom: 10px !important;
}

.tech-tags-detailed {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

.tech-tag-detailed {
    padding: 6px 14px !important;
    background: rgba(139, 92, 246, 0.1) !important;
    border: 1px solid rgba(139, 92, 246, 0.3) !important;
    border-radius: 20px !important;
    font-size: 0.85rem !important;
    color: var(--text-primary) !important;
    transition: all 0.3s ease !important;
}

.tech-tag-detailed:hover {
    background: rgba(139, 92, 246, 0.2) !important;
    transform: scale(1.05) !important;
    border-color: var(--accent) !important;
}

/* Botones de acción */
.project-actions {
    display: flex !important;
    gap: 15px !important;
    margin-top: auto !important;
    padding-top: 30px !important;
}

.btn-project-action {
    flex: 1 !important;
    padding: 15px 25px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
}

.btn-github {
    background: linear-gradient(135deg, #24292e, #3a3f44) !important;
    color: white !important;
}

.btn-github:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

.btn-live-demo {
    background: linear-gradient(135deg, var(--accent), #a78bfa) !important;
    color: white !important;
}

.btn-live-demo:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.5) !important;
}

/* ===== PANEL DERECHO - SHOWCASE VISUAL ===== */

.showcase-visual-panel {
    position: relative !important;
    background: radial-gradient(ellipse at center,
        rgba(139, 92, 246, 0.1) 0%,
        rgba(0, 0, 0, 0.9) 100%) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    animation: slideInRight 0.6s ease-out !important;
}

/* Navegación de tabs */
.showcase-tabs {
    display: flex !important;
    padding: 20px 30px !important;
    background: rgba(0, 0, 0, 0.5) !important;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2) !important;
    gap: 20px !important;
}

.tab-btn {
    padding: 12px 24px !important;
    background: transparent !important;
    color: var(--text-secondary) !important;
    border: 1px solid transparent !important;
    border-radius: 10px !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.tab-btn:hover {
    background: rgba(139, 92, 246, 0.1) !important;
    border-color: rgba(139, 92, 246, 0.3) !important;
}

.tab-btn.active {
    background: rgba(139, 92, 246, 0.2) !important;
    color: var(--accent) !important;
    border-color: var(--accent) !important;
}

/* Contenido de tabs */
.tab-content {
    flex: 1 !important;
    position: relative !important;
    padding: 40px !important;
    display: none !important;
}

.tab-content.active {
    display: flex !important;
    flex-direction: column !important;
    animation: fadeIn 0.5s ease-out !important;
}

/* Video showcase mejorado */
.video-showcase-enhanced {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 30px !important;
}

.main-video-container {
    flex: 1 !important;
    position: relative !important;
    background: #000 !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5) !important;
}

.main-video {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

/* Timeline de videos */
.video-timeline {
    display: flex !important;
    gap: 15px !important;
    padding: 20px !important;
    background: rgba(0, 0, 0, 0.5) !important;
    border-radius: 16px !important;
    overflow-x: auto !important;
}

.timeline-item {
    min-width: 150px !important;
    height: 90px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    cursor: pointer !important;
    position: relative !important;
    transition: all 0.3s ease !important;
    border: 2px solid transparent !important;
}

.timeline-item:hover {
    transform: scale(1.05) !important;
    border-color: rgba(139, 92, 246, 0.5) !important;
}

.timeline-item.active {
    border-color: var(--accent) !important;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5) !important;
}

.timeline-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.timeline-play-overlay {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 40px !important;
    height: 40px !important;
    background: rgba(139, 92, 246, 0.8) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

.timeline-item:hover .timeline-play-overlay {
    opacity: 1 !important;
}

/* Screenshots gallery */
.screenshots-gallery {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    gap: 20px !important;
    padding: 20px !important;
}

.screenshot-item {
    position: relative !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

.screenshot-item:hover {
    transform: scale(1.05) translateY(-10px) !important;
    box-shadow: 0 20px 50px rgba(139, 92, 246, 0.4) !important;
}

.screenshot-item img {
    width: 100% !important;
    height: auto !important;
}

/* Code preview */
.code-preview {
    background: #1e1e2e !important;
    border-radius: 16px !important;
    padding: 30px !important;
    font-family: 'Fira Code', monospace !important;
    overflow: auto !important;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5) !important;
}

.code-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 20px !important;
    padding-bottom: 15px !important;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2) !important;
}

.code-filename {
    color: var(--accent) !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
}

.code-language {
    padding: 5px 12px !important;
    background: rgba(139, 92, 246, 0.2) !important;
    border-radius: 20px !important;
    font-size: 0.85rem !important;
    color: var(--text-primary) !important;
}

pre code {
    color: #f8f8f2 !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
}

/* ===== BOTÓN DE CIERRE ===== */

.showcase-close-btn {
    position: fixed !important;
    top: 30px !important;
    right: 30px !important;
    width: 50px !important;
    height: 50px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 100 !important;
    transition: all 0.3s ease !important;
}

.showcase-close-btn:hover {
    background: rgba(239, 68, 68, 0.2) !important;
    border-color: rgba(239, 68, 68, 0.5) !important;
    transform: rotate(90deg) scale(1.1) !important;
}

.showcase-close-btn::before,
.showcase-close-btn::after {
    content: '' !important;
    position: absolute !important;
    width: 20px !important;
    height: 2px !important;
    background: white !important;
}

.showcase-close-btn::before {
    transform: rotate(45deg) !important;
}

.showcase-close-btn::after {
    transform: rotate(-45deg) !important;
}

/* ===== ANIMACIONES ===== */

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1200px) {
    .showcase-container-main {
        grid-template-columns: 1fr !important;
    }

    .showcase-info-panel {
        display: none !important;
    }

    .showcase-visual-panel {
        grid-column: 1 / -1 !important;
    }

    /* Mostrar info compacta en móvil */
    .mobile-project-info {
        display: block !important;
        padding: 20px !important;
        background: rgba(0, 0, 0, 0.5) !important;
    }
}

@media (max-width: 768px) {
    .showcase-tabs {
        overflow-x: auto !important;
        gap: 10px !important;
    }

    .tab-btn {
        white-space: nowrap !important;
        padding: 10px 20px !important;
    }

    .project-title-large {
        font-size: 2rem !important;
    }

    .screenshots-gallery {
        grid-template-columns: 1fr !important;
    }

    .video-timeline {
        padding: 10px !important;
    }

    .timeline-item {
        min-width: 120px !important;
        height: 70px !important;
    }
}

/* ===== ESTADOS DE CARGA ===== */

.showcase-loading {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

.loading-spinner {
    width: 60px !important;
    height: 60px !important;
    border: 3px solid rgba(139, 92, 246, 0.2) !important;
    border-top-color: var(--accent) !important;
    border-radius: 50% !important;
    animation: spin 1s linear infinite !important;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}