/* ==========================================================================
   Dashboard Styles - iOS Liquid Design (Siri-Vibrancy & Squircles)
   ========================================================================== */

/* ── Liquid Blobs Background (Siri Style) ───────────────────────────────── */
.iphone-liquid-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  z-index: 1;
  animation: liquidSiriBlob 15s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.iphone-liquid-blob.blob-1 {
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, #ff2a85 0%, rgba(255,42,133,0) 70%);
  top: -10%;
  left: -10%;
  animation-delay: 0s;
}

.iphone-liquid-blob.blob-2 {
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, #00d2ff 0%, rgba(0,210,255,0) 70%);
  bottom: -20%;
  right: -10%;
  animation-delay: -5s;
}

.iphone-liquid-blob.blob-3 {
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, #aa00ff 0%, rgba(170,0,255,0) 70%);
  top: 30%;
  left: 40%;
  animation-delay: -10s;
}

@keyframes liquidSiriBlob {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  33% { transform: translate(10%, -10%) scale(1.1) rotate(45deg); }
  66% { transform: translate(-5%, 15%) scale(0.9) rotate(-45deg); }
  100% { transform: translate(-15%, -5%) scale(1.2) rotate(20deg); }
}

/* ── Base Squircles (Vibrancy Panels) ───────────────────────────────────── */
.glass-panel, .dashboard-card {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border-radius: 2.5rem; /* Extreme Apple Squircles */
  padding: 2rem 2.25rem;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 
    0 10px 40px -10px rgba(0, 0, 0, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.2), 
    inset 0 -1px 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  z-index: 5;
}

.glass-panel::before, .dashboard-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.glass-panel:hover, .dashboard-card:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: scale(1.01);
  box-shadow: 
    0 20px 50px -10px rgba(0, 0, 0, 0.4),
    inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

/* ── Typografie (Scharf, Vibrant) ────────────────────────────────────────── */
.dash-headline {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.dash-subtitle {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 500;
}

.dash-stat-value {
  color: #ffffff;
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 20px rgba(255,255,255,0.3);
}

.dash-stat-label {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.5rem;
}

/* ── Liquid Action Pills (Bento Sub-Cards) ───────────────────────────────── */
.bento-action-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  border-radius: 2rem; /* Squircles for internal components */
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px) saturate(150%);
  cursor: pointer;
  height: 100%;
  min-height: 140px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 
    0 4px 15px rgba(0,0,0,0.1),
    inset 0 1px 0 rgba(255,255,255,0.1);
  text-align: center;
}

.bento-action-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-5px) scale(1.02);
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.2),
    inset 0 2px 5px rgba(255, 255, 255, 0.2);
}

/* Weiches Glow-Icon-Wrapper */
.bento-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2), inset 0 2px 2px rgba(255,255,255,0.2);
}

.bento-action-card:hover .bento-icon-box {
  background: #ffffff;
  color: #000b1d; /* Deep TEF Navy */
  box-shadow: 0 8px 25px rgba(255,255,255,0.4);
  transform: scale(1.1);
}

.bento-action-title {
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
}

.bento-arrow { display: none; /* Im Pill-Design ausblenden */ }

/* ── Spezifische Liquid-Subtiles (kleiner, horizontaler) ────────────────── */
.bento-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.2s ease;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.bento-list-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(4px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.1);
}

/* ── Responsive Helpers / Bento Structuring ─────────────────────────────── */
.bento-grid {
  display: grid;
  gap: 1.5rem; /* Größerer Gap für Squircles */
  width: 100%;
}

@media (min-width: 768px) {
  .bento-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-hero { grid-column: span 2; }
}

@media (min-width: 1024px) {
  .bento-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bento-hero { grid-column: span 4; }
  .bento-span-2 { grid-column: span 2; }
  .bento-span-3 { grid-column: span 3; }
  .bento-col-1  { grid-column: span 1; }
  .bento-row-2  { grid-row: span 2; }
}

@media (max-width: 640px) {
  .glass-panel, .dashboard-card { 
    padding: 1.5rem; 
    border-radius: 2rem; 
  }
  .bento-action-card { padding: 1.25rem; }
  .dash-stat-value { font-size: 2.75rem; }
}
