/* ==========================================================================
   DASHBOARD ARCHITECTURAL MASTER DESIGN ZONE SPECIFICATIONS
   ========================================================================== */

/* Universal Premium Container Frame Boxes */
.sc-widget-container {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: #1e293b;
  max-width: 1100px;
  margin: 0 auto;
  padding: 5px;
  box-sizing: border-box;
  line-height: 1.3;
  position: relative;
}

.sc-widget-container * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Base Canvas Layer Settings */
.sc-canvas-bg-layer,
.sc-canvas-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.sc-canvas-bg {
  opacity: 0.5;
}

/* --- ICON MOTION ANIMATION --- */
@keyframes scIconMotion {
  0% { transform: scale(1) translateY(0px); }
  50% { transform: scale(1.05) translateY(-3px); }
  100% { transform: scale(1) translateY(0px); }
}

/* --- BLENDED SECTION: CARDS + YOUTUBE --- */
.sc-learning-blend-zone {
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #f4fdf7 40%, #e6f4ef 100%);
  border-radius: 16px;
  padding: 12px 12px 0 12px;
  margin-bottom: 24px;
  border: 1px solid #2F6B3F;
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.sc-grid { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 12px; 
  margin-bottom: 12px; 
  position: relative; 
  z-index: 2;
  background: rgba(255, 255, 255, 0.55); 
  padding: 16px; 
  border-radius: 14px; 
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 15px rgba(0,0,0,0.01);
}

body.dark-mode .sc-learning-blend-zone {
  background: linear-gradient(180deg, rgba(17,30,48,0) 0%, #0c1a2e 40%, #091321 100%);
  border-color: rgba(13, 148, 136, 0.18);
}
body.dark-mode .sc-grid {
  background: rgba(17, 30, 48, 0.55);
  border-color: rgba(255, 255, 255, 0.05);
}

.sc-card {
  border-radius: 12px; 
  padding: 16px 12px;
  text-align: center; 
  text-decoration: none;
  transition: all 0.3s ease; 
  display: flex; 
  flex-direction: column; 
  align-items: center;
  border: 1px solid rgba(0,0,0,0.04); 
  box-shadow: 0 4px 10px rgba(0,0,0,0.03); 
  height: 100%;
  background: #ffffff;
}

body.dark-mode .sc-card {
  background: #1e293b;
  border-color: rgba(255,255,255,0.05);
}

.sc-card:hover { 
  transform: translateY(-3px); 
  box-shadow: 0 8px 16px rgba(0,0,0,0.07); 
}

.sc-card-icon { 
  display: flex; 
  justify-content: center;
  align-items: center;
  margin-bottom: 8px; 
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}
.sc-card:hover .sc-card-icon { animation: scIconMotion 1.5s ease-in-out infinite; }

.sc-card h3 { 
  font-size: 14px; 
  font-weight: 800; 
  color: #0f172a; 
  margin-bottom: 4px; 
}
body.dark-mode .sc-card h3 { color: #f8fafc; }

.sc-card-desc { 
  font-size: 11px; 
  color: #334155; 
  margin-bottom: 16px; 
  line-height: 1.3; 
  flex-grow: 1; 
}
body.dark-mode .sc-card-desc { color: #cbd5e1; }

.sc-card-btn { 
  font-size: 12px; 
  font-weight: 600; 
  padding: 8px 24px; 
  border-radius: 24px; 
  width: auto; 
  color: #fff; 
  transition: background 0.2s, color 0.2s; 
  margin-top: auto; 
}

/* Card Themes */
.sc-bg-green { background: #f6fcf8; } 
.sc-btn-green { background: #156845; } 
.sc-card.sc-bg-green:hover .sc-btn-green { background: #0f4c32; }
.sc-card.sc-bg-green .sc-card-icon { color: #156845; }

.sc-bg-yellow { background: #fffbeb; } 
.sc-btn-yellow { background: #d97706; font-weight: 800; } 
.sc-card.sc-bg-yellow:hover .sc-btn-yellow { background: #b45309; }
.sc-card.sc-bg-yellow .sc-card-icon { color: #d97706; }

.sc-bg-purple { background: #faf5ff; } 
.sc-btn-purple { background: #6b21a8; } 
.sc-card.sc-bg-purple:hover .sc-btn-purple { background: #581c87; }
.sc-card.sc-bg-purple .sc-card-icon { color: #6b21a8; }

.sc-bg-blue { background: #f0f9ff; } 
.sc-btn-blue { background: #0369a1; } 
.sc-card.sc-bg-blue:hover .sc-btn-blue { background: #075985; }
.sc-card.sc-bg-blue .sc-card-icon { color: #0369a1; }

body.dark-mode .sc-bg-green, body.dark-mode .sc-bg-yellow, body.dark-mode .sc-bg-purple, body.dark-mode .sc-bg-blue {
    background: #1e293b;
}
body.dark-mode .sc-card.sc-bg-green .sc-card-icon { color: #4ade80; }
body.dark-mode .sc-card.sc-bg-blue .sc-card-icon { color: #38bdf8; }
body.dark-mode .sc-card.sc-bg-purple .sc-card-icon { color: #c084fc; }


/* Subscribe Ribbon */
.sc-subscribe {
  position: relative;
  background: transparent;
  border: none;
  padding: 16px 12px 24px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.sc-sub-content, .sc-sub-action { position: relative; z-index: 2; }
.sc-sub-content { display: flex; align-items: center; gap: 14px; pointer-events: none; }

.sc-sub-icon { 
  display: flex; 
  justify-content: center;
  align-items: center;
  background: #ffffff; 
  padding: 10px; 
  border-radius: 50%; 
  color: #156845;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03); 
  transition: transform 0.3s ease; 
}
body.dark-mode .sc-sub-icon { background: #334155; color: #4ade80; }
.sc-subscribe:hover .sc-sub-icon { animation: scIconMotion 1.5s ease-in-out infinite; pointer-events: auto; }

.sc-sub-text h4 { font-size: 17px; font-weight: 800; color: #0f172a; margin-bottom: 2px; letter-spacing: -0.3px; }
.sc-sub-text p { font-size: 13px; color: #334155; } 

body.dark-mode .sc-sub-text h4 { color: #f8fafc; }
body.dark-mode .sc-sub-text p { color: #cbd5e1; }

@keyframes scSubscribePulse { 
  0% { box-shadow: 0 0 0 0 rgba(21, 104, 69, 0.4); } 
  70% { box-shadow: 0 0 0 8px rgba(21, 104, 69, 0); } 
  100% { box-shadow: 0 0 0 0 rgba(21, 104, 69, 0); } 
}

.sc-sub-btn { 
  background: #156845; 
  color: #fff; 
  text-decoration: none; 
  padding: 10px 20px; 
  border-radius: 24px; 
  font-weight: 700; 
  font-size: 14px; 
  white-space: nowrap; 
  display: flex; 
  align-items: center; 
  gap: 8px; 
  transition: background 0.2s, transform 0.2s; 
  animation: scSubscribePulse 2s infinite; 
  pointer-events: auto; 
}
.sc-sub-btn:hover { background: #0f4c32; transform: scale(1.02); animation-play-state: paused; }

/* --- BLENDED SECTION: HERO + FOOTER --- */
.sc-hero-wrapper {
  border-radius: 12px;
  border: 1px solid #005F02;
  box-shadow: 0 6px 16px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  background: #ffffff;
  overflow: hidden; 
}
body.dark-mode .sc-hero-wrapper { background: #111e30; border-color: rgba(13, 148, 136, 0.18); }

.sc-hero-top {
  position: relative;
  background: linear-gradient(135deg, #e6f4ef 0%, #f0faf6 100%);
  padding: 36px 16px;
  text-align: center;
  overflow: hidden; 
}
body.dark-mode .sc-hero-top { background: linear-gradient(135deg, #111e30 0%, #0c1a2e 100%); }

.sc-hero-content { position: relative; z-index: 2; pointer-events: none; text-shadow: 0 0 15px rgba(255,255,255,0.9); }
body.dark-mode .sc-hero-content { text-shadow: none; }
.sc-hero-content h1 { font-size: 34px; font-weight: 800; color: #0f172a; line-height: 1.2; margin-bottom: 0; letter-spacing: -0.5px; }
body.dark-mode .sc-hero-content h1 { color: #f8fafc; }
.sc-text-green { color: #136040; }
body.dark-mode .sc-text-green { color: #2dd4bf; }

.sc-features-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px 30px 20px; 
  background: linear-gradient(to bottom, #ffffff 60%, #e6f4ef 100%); 
  border-top: 1px solid #e2e8f0;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  z-index: 5; 
}
body.dark-mode .sc-features-row { 
  background: linear-gradient(to bottom, #111e30 60%, #0c1a2e 100%); 
  border-color: rgba(255, 255, 255, 0.05);
}

.sc-feature-item { display: flex; align-items: center; gap: 10px; padding: 5px; border-radius: 8px; transition: background 0.2s; }
.sc-feature-item:hover { background: rgba(21, 104, 69, 0.05); }

.sc-feature-icon { display: flex; justify-content: center; align-items: center; color: #0f4c32; transition: transform 0.3s ease; }
body.dark-mode .sc-feature-icon { color: #2dd4bf; }
.sc-feature-item:hover .sc-feature-icon { animation: scIconMotion 1.5s ease-in-out infinite; }

.sc-feature-text h5 { font-size: 13px; font-weight: 700; color: #0f172a; margin-bottom: 2px; }
.sc-feature-text p { font-size: 12px; color: #475569; }

body.dark-mode .sc-feature-text h5 { color: #f8fafc; }
body.dark-mode .sc-feature-text p { color: #94a3b8; }

.sc-bottom-footer { 
  background: #156845; 
  padding: 14px 10px; 
  color: #eafff4; 
  text-align: center; 
  font-size: 12px; 
  font-weight: 500; 
  margin: 0; 
}
.sc-bottom-footer a { color: #ffffff; text-decoration: underline; font-weight: 700; }

/* ==========================================================================
   FOOTER WHITESPACE SPACING
   ========================================================================== */
.site-footer {
  margin-top: 80px; 
}

.site-footer .social-links-list .social-item-card {
    background: transparent !important;
    border: none !important;
    padding: 4px 0 !important;
    width: auto !important;
    display: inline-flex !important;
    align-items: center;
    color: #cbd5e1 !important;
    transition: all 0.3s ease;
}

.site-footer .social-links-list .social-item-card:hover {
    color: #f59e0b !important;
    transform: translateX(6px);
}

/* ==========================================================================
   DYNAMIC FABRIC HUD WRAPPER (FOR CANVAS INJECTION)
   ========================================================================== */
.premium-hud-wrapper {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 140px;   /* Invisible bounding box for particles to float inside */
    height: 260px;  
    z-index: 9999;
    pointer-events: none; /* Let clicks pass through the canvas */
    transition: transform 0.2s ease-out; /* Smooth footer collision slide */
}

/* Base styles for the light/white circular buttons */
.floating-action-hud {
    position: absolute;
    bottom: 22px; /* Set inside wrapper */
    right: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: auto; /* Re-enable clicks exactly on the buttons */
}

.floating-action-hud .hud-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.floating-action-hud .hud-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* The Solid Teal Scroll Top Button Override */
.floating-action-hud .scroll-top-btn {
    background: #0d9488 !important; 
    border: none !important;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}

.floating-action-hud .scroll-top-btn:hover {
    background: #0f766e !important; 
}

/* Dark Mode Overrides for HUD */
body.dark-mode .floating-action-hud .hud-btn {
    background: #1e293b !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .floating-action-hud .scroll-top-btn {
    background: #0d9488 !important; 
}

/* Dark mode SVG toggles */
.floating-action-hud .icon-sun { display: none; }
body.dark-mode .floating-action-hud .icon-sun { display: block; }
body.dark-mode .floating-action-hud .icon-moon { display: none; }


/* --- RESPONSIVE ADAPTER MODIFIERS --- */
@media (max-width: 992px) {
  .sc-grid { grid-template-columns: repeat(2, 1fr); }
  .sc-hero-content h1 { font-size: 28px; }
  .sc-features-row { grid-template-columns: repeat(2, 1fr); display: grid; }
}

@media (max-width: 600px) {
  .sc-grid { grid-template-columns: 1fr; }
  .sc-subscribe { flex-direction: column; text-align: center; }
  .sc-sub-content { flex-direction: column; gap: 10px; }
  .sc-features-row { grid-template-columns: 1fr; gap: 16px; text-align: left; }
  .site-footer { margin-top: 50px; }
  
  .premium-hud-wrapper {
      bottom: 0px;
      right: 0px;
  }
  .floating-action-hud .hud-btn {
      width: 48px;
      height: 48px;
  }
}