/*
 * Apple-style Glassmorphism UI for Sella System
 * Mobile-First, Premium Aesthetics
 */

:root {
  --glass-bg: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
  --glass-blur: blur(16px);
  --glass-radius: 24px;
  
  --apple-text-light: #ffffff;
  --apple-text-muted: rgba(255, 255, 255, 0.7);
  --apple-text-dark: #1d1d1f;
  
  --apple-accent: #0071e3;
  --apple-cta: #0077ED;
  --apple-cta-hover: #0062C3;
  --sella-accent: #00c6ff;
  
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Hide theme default header, footer, page title, and superlogo */
#site-header, #site-footer, .page-header, header.site-header, footer.site-footer, .fusion-header-wrapper, .fusion-footer, #masthead, .site-logo, .custom-logo, .custom-logo-link, .fusion-logo, #sl-overlay, article > header, .entry-header {
    display: none !important;
}

body, html {
    background-color: #000 !important;
    margin: 0;
    padding: 0;
}

/* Base Wrapper */
.sella-glass-wrapper {
  font-family: var(--font-stack);
  background: radial-gradient(circle at 10% 20%, rgb(17, 34, 51) 0%, rgb(0, 0, 0) 90%);
  color: var(--apple-text-light);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  position: relative;
  z-index: 1;
}

/* Floating Orbs */
.sella-glass-wrapper::before, .sella-glass-wrapper::after {
  content: '';
  position: absolute; /* Absolute so they attach to page top/bottom instead of screen */
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: sellaFloat 20s infinite alternate ease-in-out;
  z-index: -1;
  pointer-events: none;
}

.sella-glass-wrapper::before {
  width: 400px;
  height: 400px;
  background: #00c6ff;
  top: -100px;
  left: -100px;
}

.sella-glass-wrapper::after {
  width: 300px;
  height: 300px;
  background: #0072ff;
  bottom: -50px;
  right: -50px;
  animation-delay: -5s;
}

@keyframes sellaFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, 50px) scale(1.1); }
}

/* Main Content Area */
.sella-glass-content {
  position: relative;
  z-index: 10;
  padding: 20px 20px 120px 20px; /* Adjusted padding so it doesn't push the image too far down */
  max-width: 800px;
  margin: 0 auto;
}

/* iOS Header */
.sella-glass-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 20px;
  margin: 0; /* Removed negative margins since it's no longer inside padded container */
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sella-glass-header-title {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
  color: #fff;
}

.sella-glass-header-back {
  color: var(--sella-accent);
  text-decoration: none;
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Typography */
.sella-glass-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1.1;
  background: linear-gradient(270deg, #00c6ff, #0072ff, #a5b4fc, #ffffff);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: sellaTitleGradient 6s ease infinite;
}

@keyframes sellaTitleGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.sella-glass-subtitle {
  font-size: 19px;
  font-weight: 400;
  color: var(--apple-text-muted);
  line-height: 1.3;
  margin: 0 0 24px 0;
}

/* Hero Image Container */
.sella-glass-hero {
  width: 100%;
  height: 220px;
  border-radius: var(--glass-radius);
  overflow: hidden;
  position: relative;
  margin-bottom: 16px;
  box-shadow: var(--glass-shadow);
}

.sella-glass-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.sella-glass-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

/* Glass Panel (Widgets) */
.sella-glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--glass-radius);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--glass-shadow);
}

.sella-glass-panel h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 16px 0;
  letter-spacing: -0.01em;
  color: #fff;
}

.sella-glass-panel p {
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
  margin: 0 0 16px 0;
}
.sella-glass-panel p:last-child {
  margin-bottom: 0;
}

/* Features Grid */
.sella-glass-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.sella-glass-feature {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 16px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sella-glass-feature span {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  line-height: 1.3;
}

/* iOS Style Accordion (FAQs) */
.sella-glass-faq {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sella-glass-faq:last-child {
  border-bottom: none;
}

.sella-glass-faq-q {
  padding: 16px 0;
  font-size: 16px;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: #fff;
}

.sella-glass-faq-q::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--sella-accent);
  transition: transform 0.3s ease;
}

.sella-glass-faq.open .sella-glass-faq-q::after {
  transform: rotate(45deg);
}

.sella-glass-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}

.sella-glass-faq.open .sella-glass-faq-a {
  max-height: 200px;
  padding-bottom: 16px;
}

/* Sticky Bottom CTA */
.sella-glass-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px 32px 20px; /* Extra padding for iOS home indicator */
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255,255,255,0.1);
  z-index: 100;
  display: flex;
  justify-content: center;
}

.sella-glass-btn {
  background: var(--apple-cta);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 16px 32px;
  font-size: 17px;
  font-weight: 600;
  width: 100%;
  max-width: 400px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 119, 237, 0.4);
  transition: all 0.2s ease;
  display: block;
}

.sella-glass-btn:active {
  transform: scale(0.96);
  background: var(--apple-cta-hover);
}

/* ACTIVITIES INDEX PAGE */
.sella-activities-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 20px;
}

.sella-activity-card {
  position: relative;
  height: 220px;
  border-radius: var(--glass-radius);
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  box-shadow: var(--glass-shadow);
  display: flex;
  align-items: flex-end;
  transition: transform 0.3s ease;
}

.sella-activity-card:active {
  transform: scale(0.98);
}

.sella-activity-card-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.sella-activity-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
  z-index: 2;
}

.sella-activity-card-content {
  position: relative;
  z-index: 3;
  padding: 20px;
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-bottom-left-radius: var(--glass-radius);
  border-bottom-right-radius: var(--glass-radius);
}

.sella-activity-card-content h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: #fff;
}

.sella-activity-card-content p {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Desktop enhancements */
@media (min-width: 768px) {
  .sella-activities-grid {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .sella-activity-card {
    width: calc(50% - 10px);
    height: 280px;
  }
  .sella-activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  }
}
