/* ==========================================================================
   BASE & GENERAL STYLES
   ========================================================================== */

@font-face {
  font-family: 'SF Pro Text';
  src: url('assets/sf-pro-text-9.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'SF Pro Bold';
  src: url('assets/sf-pro-text-11.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}


html, body {
  overflow-x: hidden;
}

body {
  --color-widget-background: rgba(255, 255, 255, 0.08);
  --color-primary: hsl(210.46deg 16% 76.94%);
  --color-positive: hsl(116.2deg 34.43% 28%);
  --border-radius: 16px;
  font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, sans-serif;
  background-image: url("/assets/cool_blue.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  position: relative; 
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Header & Layout Components */
.header {
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25);
}

.widget-header {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
  overflow: visible !important;
  display: flex;
  align-items: center;
  width: 100%;
  position: relative;
  padding-right: 5px;
  font-family: 'SF Pro Bold', sans-serif;
}

.widget-header:after {
  content: "";
  display: inline-block;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  flex-grow: 1;
  margin-left: 8px;
  border-radius: 2px;
}

.widget-group-title {
  padding-right: 0px;
}

/* Glassmorphism Applied to Widgets */
.widget-content:not(.widget-content-frameless),
.widget-content-frame {
  /* Glass Transparency & Tint */
  background: rgba(155, 155, 155, 0.08); 
  
  /* Decreased Blur (12px) with Vibrancy */
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);

  /* Soft Ambient & Edge Shadow */
  box-shadow: 
    0 8px 32px 0 rgba(0, 0, 0, 0.25),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.2);

  /* Rim Highlight & Border Radius */
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--border-radius);

  /* Smooth Transition for Hover Effects */
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1),
              background-color 0.3s ease,
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}

/* Widget Hover Effect */
.widget-content:not(.widget-content-frameless):hover,
.widget-content-frame:hover {
  transform: translateY(-3px) scale(1.005);
  background: rgba(175, 175, 175, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 
    0 12px 40px 0 rgba(0, 0, 0, 0.35),
    inset 0 1px 2px 0 rgba(255, 255, 255, 0.35);
}

/* ==========================================================================
   COMPONENT STYLES
   ========================================================================== */

/* iFrame Widget */

/* Proxmox Widget */
iframe[src="https://your_iframe_url_1"] {
  opacity: 0;
  animation: fadeIn 0.5s ease 0.5s forwards;
  width: 800px;
  height: 700px;
  overflow: hidden;
  transform: scale(0.4);
  transform-origin: 0 0;
}

/* Weather Widget */
iframe[src="https://your_iframe_url_2"] {
  opacity: 0;
  animation: fadeIn 0.5s ease 0.5s forwards;
  overflow: hidden;
  transform: scale(0.8);
  transform-origin: 0 0;
  width: 380px;
  height: 160px;
}

.widget-content.widget-content-frameless:has(iframe[src="https://your_iframe_url_2"]) {
  height: 130px;
}

/* Server info Widget */

.progress-value { 
  
}


/* Cards & List Items */
.cards-grid.collapsible-container + .expand-toggle-button {
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius);
  transition: background-color 0.2s ease;
}

.cards-grid.collapsible-container + .expand-toggle-button:hover {
  background: rgba(255, 255, 255, 0.18);
}

li {
  transition: all 200ms ease;
}

li:hover:not(.flex) {
  background-color: rgba(255, 255, 255, 0.12);
  padding-left: 5px;
  border-radius: 8px;
  transition: all 200ms ease;
}

li.flex {
  position: relative;
}

li.flex:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

li.flex.items-center.gap-10 {
  display: inline-block;
  width: calc(50% - 1rem);
  place-items: center;
}

/* Bookmarks */
li.flex a.bookmarks-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column-reverse;
}

li.flex .bookmarks-icon-container img {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

li.flex:hover .bookmarks-icon-container img {
  transform: scale(1.15);
}

.bookmarks-group .list.list-gap-2 li:nth-child(2n+3) {
  margin-top: 1rem;
}

.bookmarks-icon {
  opacity: 1;
}

.bookmarks-icon-container {
  margin-bottom: 2rem;
}

.items-center {
  transition: all 200ms ease;
}

/* Forum & Dynamic Columns */
.forum-post-list-thumbnail {
  width: 10rem;
  height: 6rem;
  border-radius: 8px;
}

.dynamic-columns > :not(:nth-child(3n+1)):hover:not(.bookmarks-group) {
  background-color: rgba(255, 255, 255, 0.12);
  padding-left: calc(var(--widget-content-horizontal-padding) + 5px);
  border-radius: 8px;
  transition: all 200ms ease;
}

.dynamic-columns > :nth-child(3n+1):hover:not(.bookmarks-group) {
  background-color: rgba(255, 255, 255, 0.12);
  padding-left: 5px;
  border-radius: 8px;
  transition: all 200ms ease;
}

.mobile-navigation {
  background: rgba(155, 155, 155, 0.15); 
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%):
  box-shadow: 
    0 8px 32px 0 rgba(0, 0, 0, 0.25),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--border-radius);

}

.mobile-navigation-label:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  transition: all 200ms ease;
}




/* ==========================================================================
   MEDIA QUERIES
   ========================================================================== */

@media (max-width: 650px) {
  html {
    scrollbar-width: none;
  }

  body {
  /*  --color-background: transparent;*/
    margin-bottom: 10em;
  }

  .page {
    padding-block: unset !important;
  }

  .header {
    display: none;
  }

  .widget-header {
    font-size: smaller;
  }
  
  .theme-picker {
    display: none;
  }
  .page-content {
    margin-bottom: 10%
    margin-top: 3%
  }
}
