/* Header Styles - Diseño basado en imagen de referencia */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    border-bottom: 1px solid #333;
    padding: 12px 0;
    z-index: 1000;
    height: 60px;
    display: flex;
    align-items: center;
}

/* Efecto de destello en el borde inferior del header */
.app-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(192, 132, 252, 0.3) 25%,
        rgba(192, 132, 252, 0.8) 50%,
        rgba(192, 132, 252, 0.3) 75%,
        transparent 100%
    );
    animation: headerShimmer 3s ease-in-out infinite;
}

.app-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 25%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.1) 75%,
        transparent 100%
    );
    animation: headerShimmer 3s ease-in-out infinite reverse;
}

.header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 36px;
}

/* Logo Kleep (izquierda) */
.header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 6px;
}

.header-icon {
    width: 24px;
    height: 24px;
    filter: brightness(1);
}

.header-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: -0.5px;
}

/* Centro vacío */
.header-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

/* Registrarme (ahora en la derecha) */
.header-register {
    background: transparent;
    color: #ffffff;
    border: 1px solid #404040;
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.header-register:hover {
    background: #525252;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(64, 64, 64, 0.3);
}

.header-register:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(64, 64, 64, 0.3);
}

/* Botones (derecha) */
.header-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 12px;
}

.header-btn-aprender {
    background: #8b5cf6;
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-btn-aprender:hover {
    background: #7c3aed;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.header-btn-aprender:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        padding: 0 16px;
    }

    .header-register {
        padding: 6px 16px;
        font-size: 13px;
        height: 32px;
    }

    .header-btn-aprender {
        padding: 6px 16px 8px 16px;
        font-size: 13px;
        height: 32px;
    }

    .header-title {
        font-size: 16px;
    }

    .header-icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .app-header {
        height: 65px;
        padding: 8px 0;
    }

    .header-container {
        padding: 0 12px;
    }

    .header-content {
        height: 32px;
    }

    .header-right {
        gap: 8px;
    }

    .header-register {
        padding: 8px 16px;
        font-size: 12px;
        height: 34px;
        border-radius: 16px;
    }

    .header-btn-aprender { 
        font-size: 12px;
        height: 34px;
        border-radius: 16px;
    }

    .header-title {
        font-size: 15px;
    }

    .header-icon {
        width: 70px;
        height: 32px;
    }
}

/* Asegurar que el body tenga padding-top para el header fijo */
body {
    padding-top: 60px;
}

@media (max-width: 480px) {
    body {
        padding-top: 56px;
    }
}

/* Animación del efecto shimmer para el header */
@keyframes headerShimmer {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}
