/* =============================================================
SenHOST – Premium UI Rebuild (Bootstrap 5)
assets/css/app.css
============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --brand-accent: #3b82f6;
  --brand-accent-hover: #2563eb;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-hover: rgba(255, 255, 255, 0.1);
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  transition: background-color 0.4s ease, color 0.4s ease;
  position: relative;
  overflow-x: hidden;
}

/* Dynamic animated background elements */
body::before, body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.6;
  pointer-events: none;
}

body::before {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(59,130,246,0.3) 0%, transparent 70%);
  animation: float1 15s infinite alternate ease-in-out;
}

body::after {
  bottom: -10%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(139,92,246,0.2) 0%, transparent 70%);
  animation: float2 20s infinite alternate-reverse ease-in-out;
}

@keyframes float1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(5%, 10%) scale(1.1); }
}

@keyframes float2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-5%, -10%) scale(1.15); }
}

/************** DARK THEME **************/
html[data-bs-theme="dark"] {
  --bs-body-bg: #09090b;
  --bs-body-color: #e4e4e7;
  --bs-border-color: rgba(255, 255, 255, 0.1);
  --bs-secondary-color: #a1a1aa;
  --bs-secondary: #a1a1aa;
  --brand-accent: #3b82f6;
  --surface-0: rgba(24, 24, 27, 0.7);
  --surface-1: rgba(39, 39, 42, 0.4);
  --bs-dropdown-bg: rgba(24, 24, 27, 0.95);
  --bs-dropdown-border-color: rgba(255, 255, 255, 0.1);
  --bs-dropdown-link-color: var(--bs-body-color);
  --bs-dropdown-link-hover-bg: rgba(255, 255, 255, 0.1);
  --bs-dropdown-link-hover-color: #ffffff;
  --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/************** LIGHT THEME **************/
html[data-bs-theme="light"] {
  --bs-body-bg: #f8fafc;
  --bs-body-color: #1e293b;
  --bs-border-color: rgba(0, 0, 0, 0.08);
  --bs-secondary-color: #64748b;
  --bs-secondary: #64748b;
  --brand-accent: #2563eb;
  --surface-0: rgba(255, 255, 255, 0.8);
  --surface-1: rgba(255, 255, 255, 0.6);
  --bs-dropdown-bg: rgba(255, 255, 255, 0.98);
  --bs-dropdown-border-color: rgba(0, 0, 0, 0.08);
  --bs-dropdown-link-color: var(--bs-body-color);
  --bs-dropdown-link-hover-bg: rgba(0, 0, 0, 0.05);
  --bs-dropdown-link-hover-color: #0f172a;
  --card-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

html[data-bs-theme="light"] body::before {
  background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, transparent 70%);
}
html[data-bs-theme="light"] body::after {
  background: radial-gradient(circle, rgba(139,92,246,0.1) 0%, transparent 70%);
}

/* Navbar & Footer */
.navbar, .footer {
  background: var(--surface-0) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--bs-border-color);
}
.footer {
  border-top: 1px solid var(--bs-border-color);
  border-bottom: none;
}

/* Brand badge */
.brand-badge {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
  font-size: 1.1rem;
}

/* Hero Section */
.hero-section {
  padding: 4rem 0 3rem;
  text-align: center;
}
.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.hero-subtitle {
  font-size: 1.25rem;
  color: var(--bs-secondary-color);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
}

/* Search */
.search-wrap {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}
.search-input {
  padding-left: 3.5rem;
  background: var(--surface-1);
  border: 1px solid var(--bs-border-color);
  color: var(--bs-body-color);
  border-radius: 100px;
  backdrop-filter: blur(8px);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
  transition: all 0.3s ease;
  height: 3.5rem;
  font-size: 1.1rem;
}
.search-input:focus {
  background: var(--surface-0);
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
  transform: translateY(-2px);
}
.search-input::placeholder {
  color: var(--bs-secondary-color);
}
.search-icon {
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--bs-secondary-color);
  font-size: 1.2rem;
  transition: color 0.3s ease;
}
.search-input:focus ~ .search-icon {
  color: var(--brand-accent);
}

/* Sidebar */
.sidebar {
  background: var(--surface-0);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--bs-border-color);
}
.side-link {
  display: flex;
  align-items: center;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  color: var(--bs-body-color);
  font-weight: 500;
  transition: all 0.3s ease;
  margin-bottom: 0.25rem;
}
.side-link i {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
  margin-right: 0.75rem;
  transition: transform 0.3s ease;
}
.side-link:hover {
  background: var(--surface-1);
  color: var(--brand-accent);
  transform: translateX(4px);
}
.side-link:hover i {
  transform: scale(1.1);
}

/* Dropdowns */
.dropdown-menu {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 0.5rem;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--bs-border-color);
  animation: slideIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.dropdown-item {
  border-radius: 8px;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease;
  font-weight: 500;
}
.dropdown-item:hover, .dropdown-item:focus {
  background-color: var(--bs-dropdown-link-hover-bg);
  color: var(--bs-dropdown-link-hover-color);
}

/* Sections */
.section-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}
.section-head.justify-content-center::after, .section-head.text-center::after { left: 50%; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--brand-accent), transparent); width: 240px; }
.section-head::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-accent), transparent);
  border-radius: 3px;
}
.section-title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.badge {
  font-weight: 600;
  padding: 0.4em 0.8em;
  border-radius: 8px;
}

/* Cards (Glassmorphism) */
.card {
  background: var(--surface-1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--bs-border-color);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--card-shadow);
  border-color: rgba(59, 130, 246, 0.4);
}

/* Favorites App Card */
.app-card {
  text-decoration: none !important;
  height: 100%;
}
.app-card .card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.75rem 1rem;
}
.app-icon {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.app-card:hover .app-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}
.app-title {
  margin-top: 1.25rem;
  font-size: 1.05rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  color: var(--bs-body-color);
  transition: color 0.3s;
}
.app-card:hover .app-title {
  color: var(--brand-accent);
}

/* Link Card */
.link-card {
  text-decoration: none !important;
  height: 100%;
}
.link-card .card-body {
  padding: 1.25rem;
}
.link-card .icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
  color: var(--brand-accent);
  font-size: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
  flex-shrink: 0;
}
.link-card:hover .icon-wrap {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff;
  transform: rotate(-10deg) scale(1.05);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}
.link-card .card-title {
  font-weight: 700;
  font-size: 1.15rem;
  transition: color 0.3s;
  margin-bottom: 0.25rem;
  color: var(--bs-body-color);
}
.link-card:hover .card-title {
  color: var(--brand-accent);
}

.empty {
  padding: 3rem 1rem;
  border: 2px dashed var(--bs-border-color);
  border-radius: 20px;
  color: var(--bs-secondary-color);
  text-align: center;
  font-weight: 500;
  background: var(--surface-1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bs-body-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--bs-border-color);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--bs-secondary-color);
}

/* Specific Badge colors to match sections */
#favorites .badge { background-color: rgba(245, 158, 11, 0.2) !important; color: #f59e0b !important; }
#favorites .section-title i { color: #f59e0b; }

#tools .badge { background-color: rgba(6, 182, 212, 0.2) !important; color: #06b6d4 !important; }
#tools .section-title i { color: #06b6d4; }

#projects .badge { background-color: rgba(16, 185, 129, 0.2) !important; color: #10b981 !important; }
#projects .section-title i { color: #10b981; }

#hosting .badge { background-color: rgba(59, 130, 246, 0.2) !important; color: #3b82f6 !important; }
#hosting .section-title i { color: #3b82f6; }

#more .badge { background-color: rgba(139, 92, 246, 0.2) !important; color: #8b5cf6 !important; }
#more .section-title i { color: #8b5cf6; }

/* Buttons */
.btn-outline-secondary {
  border-color: var(--bs-border-color);
  color: var(--bs-body-color);
  background: var(--surface-1);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  transition: all 0.2s;
  padding: 0.5rem 0.75rem;
}
.btn-outline-secondary:hover {
  background: var(--bs-border-color);
  color: var(--bs-body-color);
  transform: translateY(-2px);
}
.btn-outline-primary {
  border-radius: 12px;
}

/* Base Hyperlinks */
a, a:link, a:visited, a:active {
  text-decoration: none !important;
}
a:hover {
  text-decoration: none !important;
}

/* Legacy Tool Styles (Formerly custom.css) */
@import url("https://fonts.googleapis.com/css?family=Alfa+Slab+One&display=swap");

.legacy-tool a:link, .legacy-tool a:visited, .legacy-tool a:hover, .legacy-tool a:active { text-decoration: none; font-weight:400; }
.legacy-tool a:link, .legacy-tool a:visited { color:#cccccc; }
.legacy-tool a:hover, .legacy-tool a:active { color: rgba(0,123,255,0.75) !important; }

.legacy-tool h1, .legacy-tool h2, .legacy-tool h3, .legacy-tool h4 { font-weight: bolder; }
.legacy-tool hr { margin-bottom: 1em; border: 0; height: 1px; background-image: -webkit-linear-gradient(left, rgba(0,123,255,0), rgba(0,123,255,0.75), rgba(0,123,255,0)); background-image: -moz-linear-gradient(left, rgba(0,123,255,0), rgba(0,123,255,0.75), rgba(0,123,255,0)); background-image: -ms-linear-gradient(left, rgba(0,123,255,0), rgba(0,123,255,0.75), rgba(0,123,255,0)); background-image: -o-linear-gradient(left, rgba(0,123,255,0), rgba(0,123,255,0.75), rgba(0,123,255,0)); }
.legacy-tool footer { padding: 3rem 0; color:#cccccc;}

.legacy-tool main {color:#ccc}

/* Color Palettes */
.legacy-tool .default { background:#000000; }
.legacy-tool .red { background:#ff0000; }
.legacy-tool .green { background:#00ff00; }
.legacy-tool .blue { background:#0000ff; }
.legacy-tool .cyan { background:#00ffff; }
.legacy-tool .magenta { background:#ff00ff; }
.legacy-tool .yellow { background:#ffff00; }
.legacy-tool .black { background:#000000; }
.legacy-tool .grey { background:#7f7f7f; }
.legacy-tool .white { background:#ffffff; }

/* Nav Bar */
.legacy-tool .navbar-brand { font-family: 'Alfa Slab One', cursive; }
.legacy-tool .bg-dark { background-color:#1d1d1d !important }
.legacy-tool .dropdown-item { color: #000 !important; }
.legacy-tool .dropdown-item:hover { background-color: rgba(0,123,255,0.75); color: #fff !important; transition: transform 250ms linear; }
.legacy-tool .navbar-brand:hover, .legacy-tool .nav-link:hover { transition: transform 250ms linear; }

.legacy-tool .container-top { margin-top:3rem; }
.legacy-tool .container-top a {text-align:center; margin-bottom: 1rem; }
.legacy-tool .container-custom { background-color: rgba(255,255,255,0.05); padding: 1.5rem; -webkit-border-radius: 1em; -moz-border-radius: 1em; border-radius: 1em; border-bottom: 5px outset rgba(0,123,255,0.75); border-radius: 19px 23px 55px 0px; }
.legacy-tool .featurette-divider {margin-bottom: 3rem; border: 0; }

.legacy-tool .row a { margin-bottom:3rem; }
.legacy-tool .row a p { margin-top:.5rem; }
.legacy-tool .row .col-9 h2 { color: rgba(0,123,255,0.7); font-weight:400; font-size:1.5em; }
.legacy-tool .row-custom { padding-bottom:-200px; }

.legacy-tool .list-group { margin:0 5rem; }
.legacy-tool .list-group-item { background:none; border:0; }

.legacy-tool .caption { position: absolute; left: 0; top: 20%; width: 100%; text-align: center; color: #000000; }
.legacy-tool .caption a { color: rgba(0,0,0,0.5); }
.legacy-tool .caption span.border { background-color: rgba(255,255,255,0.2); padding: .5rem 1rem; font-size: 1.5rem; letter-spacing: 0; }



