/* css/rofi.css - ROFI COMO VENTANA FLOTANTE */

#mainpage {
  width: 100vw;
  height: 100vh;
  background: 
    linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.3)),
    url('../assets/images/lockscreen.png') center/cover no-repeat;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

#lockscreen-password {
  transition: all 0.2s ease;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}


.rofi-desktop {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14vh 20vw;      
  z-index: 2;
}

.rofi-wrapper {
  width: 40vw;     
  height: 45vh;      
  max-width: 1200px;
  max-height: 600px;
  min-width: 600px;
  min-height: 500px;
  background: var(--nord1);
  border: 1px solid var(--nord2);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.6),
    0 0 50px rgba(136, 192, 208, 0.25);
  backdrop-filter: blur(10px);
  overflow: hidden;
  animation: windowSlideIn 1000ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes windowSlideIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* TITLEBAR DE VENTANA */
.rofi-titlebar {
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--nord2) 0%, rgba(76, 86, 106, 0.5) 100%);
  border-bottom: 1px solid var(--nord3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--nord4);
  font-weight: 500;
  user-select: none;
  flex-shrink: 0;
}

.rofi-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rofi-title-icon {
  font-size: 14px;
}

.rofi-window-controls {
  display: flex;
  gap: 8px;
}

.rofi-window-btn {
  width: 28px;
  height: 28px;
  background: transparent;
  border: 1px solid var(--nord3);
  border-radius: 4px;
  color: var(--nord5);
  cursor: pointer;
  font-size: 12px;
  transition: all 150ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rofi-window-btn:hover {
  background: rgba(136, 192, 208, 0.15);
  border-color: var(--nord8);
  color: var(--nord8);
}

.rofi-window-btn.close:hover {
  background: rgba(83, 42, 46, 0.2);
  border-color: var(--nord11);
  color: var(--nord11);
}

/* HEADER BÚSQUEDA */
.rofi-header {
  margin: 16px;
  border-radius: 8px;
  padding: 12px; 
  border: 1px solid var(--nord3);
  background: url('../assets/images/lockscreen.png') center/cover no-repeat;
  display: flex;
  flex-direction: column; 
  gap: 12px;
  flex-shrink: 0;
}

.rofi-search {
  flex: 1;
  padding: 10px 12px;
  background: rgba(46, 52, 64, 0.8);
  border: 1px solid var(--nord2);
  border-radius: 6px;
  color: var(--nord4);
  font-family: var(--font-mono);
  font-size: 12px;
  transition: all 150ms ease;
}

.rofi-search:focus {
  outline: none;
  border-color: var(--nord8);
  background: rgba(136, 192, 208, 0.1);
  box-shadow: 0 0 12px rgba(136, 192, 208, 0.3);
}

.rofi-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.rofi-text {
  color: var(--nord4);
  display: flex;
  gap: 4px;
  font-size: 12px; 
  align-self: flex-end; 
  margin-top: auto;
  padding: 70px 8px 0px 50px;
}

.rofi-filters {
  display: flex;
  gap: 6px;
}

.rofi-filters .filter-btn:first-child {
  border: 1px solid var(--nord4) !important;
}

.filter-btn {
  padding: 6px 10px;
  background: rgba(76, 86, 106, 0.8);
  border: 1px solid var(--nord2);
  border-radius: 4px;
  font-size: 10px;
  color: var(--nord5);
  cursor: pointer;
  transition: all 100ms ease;
  white-space: nowrap;
}

.filter-btn:hover {
  background: rgba(136, 192, 208, 0.3);
  border-color: var(--nord8);
  color: var(--nord8);
}

/* CONTENIDO */
.rofi-content {
  flex: 1;
  display: flex;            
  overflow: hidden;
  min-height: 0;
}

.rofi-grid {
  flex: auto;                   
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr); 
  grid-template-rows: repeat(4, 1fr);     
  gap: 1px 14px;
  overflow-y: auto;
  border-right: none;         
  min-height: auto;
}

.rofi-grid::-webkit-scrollbar {
  width: 6px;
}

.rofi-grid::-webkit-scrollbar-track {
  background: transparent;
}

.rofi-grid::-webkit-scrollbar-thumb {
  background: var(--nord3);
  border-radius: 3px;
}

.rofi-grid::-webkit-scrollbar-thumb:hover {
  background: var(--nord8);
}

.rofi-item {
  padding: 0px 10px;
  background: rgba(52, 62, 82, 0.6);
  border: 1px solid var(--nord2);
  border-radius: 10px;
  cursor: pointer;
  display: flex;                      
  flex-direction: row;                
  align-items: center;               
  gap: 10px;                        
  text-align: left;                  
  transition: all 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
  height: 80%;                       
}

.rofi-item:hover {
  background: rgba(136, 192, 208, 0.1);
  border-color: var(--nord8);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(136, 192, 208, 0.15);
}

.rofi-icon {
  font-size: 18px;
  flex-shrink: 0;                     
  text-align: center;
}

.rofi-label {
  font-size: 14px;
  color: var(--nord5);
  line-height: 1.2;
  word-wrap: break-word;
}

.rofi-item:hover .rofi-label {
  color: var(--nord8);
}

/* SIDEBAR */
.rofi-sidebar {
  display: none;             
}

.rofi-socials {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.social-link {
  padding: 10px;
  background: rgba(76, 86, 106, 0.3);
  border: 1px solid var(--nord2);
  border-radius: 4px;
  color: var(--nord5);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  text-align: center;
  cursor: pointer;
  transition: all 150ms ease;
}

.social-link:hover {
  background: rgba(136, 192, 208, 0.12);
  border-color: var(--nord8);
  color: var(--nord8);
}

.social-link .icon {
  font-size: 14px;
}

/* FOOTER */
.rofi-footer {
  flex-shrink: 0;
  padding: 10px 18px;
  background: rgba(52, 62, 82, 0.8);
  border-top: 1px solid var(--nord2);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  font-size: 11px;
}

.rofi-back {
  display: none;
}

.rofi-back:hover {
  background: rgba(136, 192, 208, 0.1);
  border-color: var(--nord8);
  color: var(--nord8);
}

.rofi-user {
  color: var(--nord5);
  font-family: var(--font-mono);
  opacity: 0.85;
}

.rofi-sidebar::-webkit-scrollbar {
  width: 4px;
}

.rofi-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.rofi-sidebar::-webkit-scrollbar-thumb {
  background: var(--nord3);
  border-radius: 2px;
}
