/**
 * 🎴 Glassmorphism Components - BitForward
 * Cards y componentes con efecto de vidrio moderno
 */

/* Base glassmorphism mixin */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    background: var(--glass-bg-hover);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        var(--glass-shadow),
        0 12px 48px rgba(0, 0, 0, 0.4);
}

/* Feature Cards */
.feature-card {
    padding: 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Glow effect al hover */
.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--cyan-500) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.feature-card:hover::before {
    opacity: 0.1;
}

.feature-card:hover {
    background: var(--glass-bg-hover);
    border-color: var(--cyan-500);
    transform: translateY(-8px) scale(1.03);
    box-shadow: 
        0 0 30px rgba(6, 182, 212, 0.3),
        var(--shadow-xl);
}

/* Iconos con gradiente */
.feature-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 1.5rem;
    background: var(--gradient-main);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: var(--shadow-glow-cyan);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-glow-purple);
}

/* Título de feature */
.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Descripción */
.feature-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* Product Cards */
.product-card {
    padding: 2.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.product-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-main);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.product-card:hover::after {
    transform: scaleX(1);
}

.product-card:hover {
    background: var(--glass-bg-hover);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-6px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(139, 92, 246, 0.2);
}

/* Badge premium */
.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--gradient-main);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-glow-cyan);
}

/* Stats card */
.stats-card {
    padding: 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
}

.stats-card:hover {
    background: var(--glass-bg-hover);
    transform: translateY(-2px);
}

.stats-value {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stats-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Info card con border gradient */
.info-card {
    position: relative;
    padding: 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: var(--gradient-main);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* Dashboard card */
.dashboard-card {
    padding: 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    background: var(--glass-bg-hover);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 
        var(--shadow-xl),
        0 0 30px rgba(6, 182, 212, 0.15);
}

/* Grid de cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

/* Stagger animation para cards */
.cards-grid > * {
    animation: fadeInUp 0.6s ease backwards;
}

.cards-grid > *:nth-child(1) { animation-delay: 0.1s; }
.cards-grid > *:nth-child(2) { animation-delay: 0.2s; }
.cards-grid > *:nth-child(3) { animation-delay: 0.3s; }
.cards-grid > *:nth-child(4) { animation-delay: 0.4s; }
.cards-grid > *:nth-child(5) { animation-delay: 0.5s; }
.cards-grid > *:nth-child(6) { animation-delay: 0.6s; }

/* Loading skeleton */
.card-skeleton {
    background: linear-gradient(
        90deg,
        var(--glass-bg) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        var(--glass-bg) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Responsive */
@media (max-width: 768px) {
    .feature-card,
    .product-card,
    .dashboard-card {
        padding: 1.5rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
    .glass-card,
    .feature-card,
    .product-card,
    .dashboard-card,
    .stats-card,
    .info-card {
        background: rgba(0, 0, 0, 0.3);
        border-color: rgba(255, 255, 255, 0.05);
    }
}
