/**
 * PHLEXMOD v2.0.1 - Estilos para Componente Integrado MIA Architecture
 * Sin fondo propio, se integra perfectamente con el entorno del sitio
 */

/* Estilos para la sección completa */
#phlexmod-activity {
    background-image: url('../assets/img/hero.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

#phlexmod-activity::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(1, 62, 112, 0.85) 0%,
        rgba(8, 7, 14, 0.75) 50%,
        rgba(8, 7, 14, 0.85) 100%
    );
    pointer-events: none;
    z-index: 0;
}

#phlexmod-activity .container {
    position: relative;
    z-index: 1;
}

.phlexmod-activity-component {
    max-width: 400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 28px;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.phlexmod-activity-component::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(1, 62, 112, 0.1) 0%, 
        transparent 50%
    );
    pointer-events: none;
    z-index: 0;
}

.phlexmod-activity-component > * {
    position: relative;
    z-index: 1;
}

/* Header */
.component-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    text-align: center;
}

.demo-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(10, 90, 211, 0.1);
    color: #3b82f6;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.component-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.component-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

/* Framework Status */
.framework-status {
    margin-bottom: 24px;
}

.status-grid {
    display: grid;
    gap: 12px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.status-item:last-child {
    border-bottom: none;
}

.status-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.status-value {
    color: #fff;
    font-weight: 500;
    font-size: 0.85rem;
}

.status-ready {
    color: #10b981 !important;
}

/* Activity List */
.activity-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding-right: 4px;
}

.activity-list::-webkit-scrollbar {
    width: 4px;
}

.activity-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.activity-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.activity-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.activity-item {
    padding: 16px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.activity-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(1, 62, 112, 0.1) 0%, 
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.activity-item:hover::before {
    opacity: 1;
}

.activity-item:last-child {
    margin-bottom: 0;
}

.commit-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.commit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(10, 90, 211, 0.1);
    border-radius: 6px;
    color: #3b82f6;
    flex-shrink: 0;
    margin-top: 2px;
}

.commit-info {
    flex: 1;
    min-width: 0;
}

.commit-message {
    color: #fff;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 8px;
    font-weight: 500;
}

.commit-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.commit-author {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    font-weight: 500;
}

.commit-time {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
}

/* Footer */
.component-footer {
    text-align: center;
}

.refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.refresh-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.refresh-btn:active {
    transform: translateY(0);
}

.refresh-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.status-value.status-version {
    color: #10b981 !important;
    font-weight: 600;
    animation: pulse 2s ease-in-out;
}

/* Animación pulse para actualizaciones */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Loading and Error States */
.loading {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.error {
    text-align: center;
    padding: 20px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    color: #f87171;
    font-size: 0.85rem;
}

.no-activity {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Animations */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .phlexmod-activity-component {
        margin: 0 16px;
        padding: 20px;
    }
    
    .status-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .status-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 6px 0;
    }
    
    .commit-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .activity-list {
        max-height: 250px;
    }
}

@media (max-width: 480px) {
    .phlexmod-activity-component {
        padding: 16px;
    }
    
    .component-header h3 {
        font-size: 1.25rem;
    }
    
    .activity-item {
        padding: 12px;
    }
    
    .commit-icon {
        width: 28px;
        height: 28px;
    }
}
