/* ========================================
  COSMIC CATS - IFRAME-ONLY STYLESHEET
  Purpose: Styles for pages loaded inside the <iframe> (MainSites/*)
  Scope: Loaded only by iframe documents; independent from index styles
======================================== */
@import url('https://fonts.googleapis.com/css2?family=Agu+Display&family=Audiowide&family=Ewert&family=Micro+5&family=Poiret+One&family=Rubik+Glitch&display=swap');

.rubik-glitch-regular {
  font-family: "Rubik Glitch", system-ui;
  font-weight: 400;
  font-style: normal;
}

.agu-display-normal {
  font-family: "Agu Display", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings:
    "MORF" 0;
}

.micro-5-regular {
  font-family: "Micro 5", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.audiowide-regular {
  font-family: "Audiowide", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.ewert-regular {
  font-family: "Ewert", serif;
  font-weight: 400;
  font-style: normal;
}

.poiret-one-regular {
  font-family: "Poiret One", sans-serif;
  font-weight: 400;
  font-style: normal;
}

/* Base: predictable scrolling and sizing inside iframe documents */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  overflow-y: auto;           /* keep vertical scroll */
  overflow-x: hidden;         /* avoid horizontal scroll */
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  font-family: 'Exo 2', 'Segoe UI', Arial, sans-serif;
}
*, *::before, *::after { box-sizing: inherit; }

:root {
  --cosmic-global-blur: 6px;
  --cosmic-global-opacity: 0.28;
}




/* ========================================
  Flexbox Layouts used by content pages
======================================== */
.main-content-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  margin: 3vh;
}

.content-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: stretch;
}

.sub-content-column {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  flex: 1;
}

@media (max-width: 1100px) {
  .content-row { gap: 6vh; }
  .sub-content-column { gap: 3vh; }
}

/* ========================================
  Main Content Cards and Variants
======================================== */
.main-content {
  padding: 30px;
  width: 100%;
  max-width: 600px;
  border-radius: 25px;
  transition: all 0.4s ease;
  backdrop-filter: blur(var(--cosmic-global-blur, 6px));
  position: relative;
  background: linear-gradient(135deg,
    rgba(26, 15, 46, var(--cosmic-global-opacity, 0.3)) 0%,
    rgba(45, 27, 105, var(--cosmic-global-opacity, 0.3)) 25%,
    rgba(131, 56, 236, var(--cosmic-global-opacity, 0.3)) 50%,
    rgba(58, 134, 255, var(--cosmic-global-opacity, 0.3)) 75%,
    rgba(251, 86, 7, var(--cosmic-global-opacity, 0.3)) 100%);
  background-size: 200% 200%;
  animation: cosmic-galaxy 15s ease infinite;
  will-change: background-position;
  contain: layout style;
  min-width: 0; /* critical for flex shrink */
}

.main-content::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 25px;
  padding: 3px;
  background: linear-gradient(45deg, #8be9fd, #ff79c6, #50fa7b, #8be9fd);
  background-size: 200% 200%;
  animation: border-colors-move 6s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  will-change: background-position;
}

/* Color variations */
.main-content.scw-1::before { background: linear-gradient(45deg, #00cfff, #000b6d, #00cfff); }
.main-content.scw-2::before { background: linear-gradient(45deg, #ffb347, #ff5e62, #ffb347); }
.main-content.scw-3::before { background: linear-gradient(45deg, #a8ff78, #ffecd2, #a8ff78); }
.main-content.scw-4::before { background: linear-gradient(45deg, #39ff14, #ff005a, #39ff14); }
.main-content.scw-5::before { background: linear-gradient(45deg, #fcb7ff, #b7fff6, #fcb7ff); }

@keyframes cosmic-galaxy {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes border-colors-move {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.third-row-content {
  padding: 15px;
  max-width: 400px;
  width: 100%;
  height: auto;
  border-radius: 25px;
  border: 10px solid rgba(139, 233, 253, 0.25);
}

.huge-content {
  max-width: 1220px;
  width: 100%;
  border-radius: 25px;
  padding: 30px;
  transition: all 0.4s ease;
  backdrop-filter: blur(var(--cosmic-global-blur, 6px));
  background: linear-gradient(45deg,
    rgba(26, 15, 46, var(--cosmic-global-opacity, 0.3)) 0%,
    rgba(45, 27, 105, var(--cosmic-global-opacity, 0.3)) 15%,
    rgba(255, 0, 110, var(--cosmic-global-opacity, 0.3)) 30%,
    rgba(131, 56, 236, var(--cosmic-global-opacity, 0.3)) 45%,
    rgba(58, 134, 255, var(--cosmic-global-opacity, 0.3)) 60%,
    rgba(6, 255, 165, var(--cosmic-global-opacity, 0.3)) 75%,
    rgba(255, 190, 11, var(--cosmic-global-opacity, 0.3)) 90%,
    rgba(251, 86, 7, var(--cosmic-global-opacity, 0.3)) 100%);
  background-size: 400% 400%;
  animation: cosmic-galaxy 15s ease infinite;
  position: relative;
}
.huge-content::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 25px;
  padding: 5px;
  background: linear-gradient(45deg, rgb(234,0,255), rgb(6,209,255), rgb(200,255,0), rgb(234,0,255));
  background-size: 400% 400%;
  animation: border-colors-move 8s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

/* ========================================
  Content helpers & components
======================================== */
/* Text wrapping in narrow layouts */
p { word-wrap: break-word; overflow-wrap: break-word; max-width: 100%; }

.content-item {
  margin: 0;
  padding: 40px 30px;
  background: linear-gradient(135deg,
    rgba(26, 15, 46, 0.1) 0%,
    rgba(45, 27, 105, 0.1) 15%,
    rgba(255, 0, 110, 0.1) 30%,
    rgba(251, 86, 7, 0.1) 100%);
  background-size: 400% 400%;
  animation: cosmic-galaxy 15s ease infinite;
  border: 2px solid rgba(139, 233, 253, 0.25);
  border-radius: 25px;
  box-shadow: 0 0 40px rgba(139, 233, 253, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
  position: relative;
}

/* Responsive embeds used inside content pages */
.video { width: 100%; max-width: 100%; overflow: hidden; margin: 20px 0; position: relative; }
.video iframe { width: 100% !important; max-width: 100% !important; min-height: 200px; height: auto !important; box-sizing: border-box; border-radius: 12px; }

.survey { width: 100%; max-width: 100%; overflow: hidden; margin: 20px 0; position: relative; background: rgba(26, 15, 46, 0.1); border-radius: 15px; padding: 10px; border: 1px solid rgba(139, 233, 253, 0.2); }

/* Enhanced cosmic image component */
@keyframes cosmic-border { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.cosmic-image { max-width: 100%; border: 3px solid transparent; border-radius: 20px; background: linear-gradient(45deg, #ff79c6, #8be9fd, #50fa7b); background-size: 300% 300%; animation: cosmic-border 4s ease infinite; background-clip: padding-box; padding: 4px; margin: 2.5rem auto; display: block; text-align: center; box-shadow: 0 8px 25px rgba(139, 233, 253, 0.2), 0 15px 35px rgba(0, 0, 0, 0.1); transition: all 0.3s ease; overflow: hidden; }
.cosmic-image:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 15px 40px rgba(139, 233, 253, 0.3), 0 25px 50px rgba(0, 0, 0, 0.15); }
.cosmic-image img, .cosmic-image iframe { width: 100%; height: auto; border-radius: 16px; display: block; }
.cosmic-image iframe { min-height: 315px; }

/* Basic typography inside iframe content */
h1, h2, h3 { text-align: center; font-weight: 700; letter-spacing: 2px; background: linear-gradient(90deg, #ff79c6, #8be9fd, #50fa7b); background-size: 200% 200%; -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; filter: drop-shadow(0 0 12px rgba(139, 233, 253, 0.4)); animation: gradient-text 6s ease-in-out infinite; font-family: 'Poiret One', sans-serif; padding: 20px 0; }
@keyframes gradient-text { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
h1 { font-size: 3.2rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }

p { margin-bottom: 1.5em; color: rgba(255,255,255,0.9); text-shadow: 0 0 4px rgba(139, 233, 253, 0.2); line-height: 1.8; }
.subtitle { font-size: 1.2rem; color: #8be9fd; margin-bottom: 2em; text-align: center; padding: 15px 0; }
.small1 { font-size: 0.9rem; color: rgba(255,185,108,0.9); text-align: center; padding: 8px 16px; margin: 15px auto; background: rgba(255,185,108,0.1); border-radius: 12px; max-width: 600px; border: 1px solid rgba(255,185,108,0.2); box-shadow: 0 2px 10px rgba(255,185,108,0.1); }
.normal-dense { margin: 0; font-size: 1rem; line-height: 1.6; color: rgba(255,255,255,0.9); padding: 10px 0; border-radius: 8px; }
i { color: #f1abd3; font-style: italic; text-shadow: 0 0 3px rgba(241,171,211,0.3); }

/* Enhanced list styling */
ul, ol { margin: 1.5em 0; padding-left: 2rem; }
li { margin-bottom: 0.8em; color: rgba(255,255,255,0.9); line-height: 1.6; position: relative; list-style: none; }
ul li::before { content: "★"; color: #8be9fd; position: absolute; left: -1.5rem; font-size: 1.1rem; text-shadow: 0 0 6px rgba(139, 233, 253, 0.5); }
ol { counter-reset: cosmic-counter; }
ol li { counter-increment: cosmic-counter; }
ol li::before { content: counter(cosmic-counter) "."; color: #50fa7b; position: absolute; left: -1.8rem; font-weight: bold; text-shadow: 0 0 6px rgba(80, 250, 123, 0.5); }

/* Links inside content pages */
a { color: #8be9fd; text-decoration: none; border-bottom: 1px solid transparent; transition: all 0.3s ease; position: relative; }
a:hover { color: #ff79c6; border-bottom-color: rgba(255, 121, 198, 0.5); text-shadow: 0 0 8px rgba(255, 121, 198, 0.4); }

/* Optional: common component used on home page */
.cosmic-ship-content { max-width: 100%; min-width: 0; }
.cosmic-ship-content img { display: block; }

/* ========================================
  Hide vertical scrollbar but keep scrolling
  (applies to iframe documents only)
======================================== */
html, body {
  /* Firefox */
  scrollbar-width: none;
  /* IE 10+ / old Edge */
  -ms-overflow-style: none;
}
/* WebKit (Chrome/Safari/Edge Chromium) */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  background: transparent;
}

/* Utility class for any inner scroll containers if needed */
.scroll-hide-y {
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.scroll-hide-y::-webkit-scrollbar {
  width: 0;
  height: 0;
}
