/*
 * ⚠️  DO NOT MODIFY CLASS STRUCTURE
 * 
 * This is a REFERENCE theme used as template for theme generation.
 * Changing class names or removing classes will break theme generator.
 * 
 * You MAY modify:
 * - Default values (padding, colors, sizes)
 * - Add new classes
 * 
 * You MUST NOT:
 * - Rename existing classes
 * - Remove existing classes
 * - Change selector structure
 */

/* ==========================================================================
   05-LAYOUT - Layout utilities
   ========================================================================== */

/* Radius & Spacing */
[data-theme="ocean-theme"] .theme-layout-radius { border-radius: var(--radius-lg); }
[data-theme="ocean-theme"] .theme-layout-spacing-padding { padding: var(--spacing-md); }
[data-theme="ocean-theme"] .theme-layout-spacing-margin { margin: var(--spacing-md); }

/* Container */
[data-theme="ocean-theme"] .theme-layout-container-base {
  width: 100%;
  max-width: 92rem; /* 1472px */
  margin-left: auto;
  margin-right: auto;
}

[data-theme="ocean-theme"] .theme-layout-container-sm { max-width: 40rem; }
[data-theme="ocean-theme"] .theme-layout-container-md { max-width: 48rem; }
[data-theme="ocean-theme"] .theme-layout-container-lg { max-width: 64rem; }
[data-theme="ocean-theme"] .theme-layout-container-xl { max-width: 100rem; }   /* 1600px */
[data-theme="ocean-theme"] .theme-layout-container-2xl { max-width: 112.5rem; } /* 1800px */
[data-theme="ocean-theme"] .theme-layout-container-spacing { padding: var(--spacing-lg); }
[data-theme="ocean-theme"] .theme-layout-container-width { width: 100%; }
[data-theme="ocean-theme"] .theme-layout-container-margin { margin-left: auto; margin-right: auto; }
[data-theme="ocean-theme"] .theme-layout-container-minHeight { min-height: 100vh; }
[data-theme="ocean-theme"] .theme-layout-container-height { height: 100%; }
[data-theme="ocean-theme"] .theme-layout-container-wrapper { overflow: hidden; }

/* Flex */
[data-theme="ocean-theme"] .theme-layout-flex-start {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

[data-theme="ocean-theme"] .theme-layout-flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="ocean-theme"] .theme-layout-flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

[data-theme="ocean-theme"] .theme-layout-flex-col { display: flex; flex-direction: column; }
[data-theme="ocean-theme"] .theme-layout-flex-row { display: flex; flex-direction: row; }
[data-theme="ocean-theme"] .theme-layout-flex-spacing { gap: var(--spacing-md); }
[data-theme="ocean-theme"] .theme-layout-flex-grow { flex-grow: 1; }
[data-theme="ocean-theme"] .theme-layout-flex-justify { justify-content: space-between; }
[data-theme="ocean-theme"] .theme-layout-flex-items { align-items: center; }
[data-theme="ocean-theme"] .theme-layout-flex-direction { flex-direction: column; }

@media (min-width: 768px) {
  [data-theme="ocean-theme"] .theme-layout-flex-direction { flex-direction: row; }
}

/* Grid */
[data-theme="ocean-theme"] .theme-layout-grid-cols {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
  [data-theme="ocean-theme"] .theme-layout-grid-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  [data-theme="ocean-theme"] .theme-layout-grid-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

[data-theme="ocean-theme"] .theme-layout-grid-gap { gap: var(--spacing-lg); }
[data-theme="ocean-theme"] .theme-layout-grid-spacing { padding: var(--spacing-lg); margin-bottom: var(--spacing-md); }

/* Row & Column */
[data-theme="ocean-theme"] .theme-layout-row-spacing { padding: var(--spacing-lg); margin-bottom: var(--spacing-md); }
[data-theme="ocean-theme"] .theme-layout-column-spacing { padding: var(--spacing-lg); margin: var(--spacing-md); }

/* Stack */
[data-theme="ocean-theme"] .theme-layout-stack-vertical > * + * { margin-top: var(--spacing-lg); }
[data-theme="ocean-theme"] .theme-layout-stack-horizontal > * + * { margin-left: var(--spacing-lg); }

/* Size */
[data-theme="ocean-theme"] .theme-layout-size-width { width: 100%; }
[data-theme="ocean-theme"] .theme-layout-size-height { height: 100%; }

/* Alignment */
[data-theme="ocean-theme"] .theme-layout-alignment-horizontal { justify-content: center; }
[data-theme="ocean-theme"] .theme-layout-alignment-vertical { align-items: center; }

/* Section Spacing (for landing pages) */
[data-theme="ocean-theme"] .theme-layout-section-hero { padding-top: var(--spacing-5xl); padding-bottom: var(--spacing-5xl); }
[data-theme="ocean-theme"] .theme-layout-section-lg { padding-top: var(--spacing-4xl); padding-bottom: var(--spacing-4xl); }
[data-theme="ocean-theme"] .theme-layout-section-md { padding-top: var(--spacing-3xl); padding-bottom: var(--spacing-3xl); }
[data-theme="ocean-theme"] .theme-layout-section-sm { padding-top: var(--spacing-2xl); padding-bottom: var(--spacing-2xl); }

/* ==========================================================================
   SEMANTIC LAYOUT CLASSES (for landing pages & static cache)
   ========================================================================== */

/* Container - centered content wrapper */
[data-theme="ocean-theme"] .container {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--spacing-lg);
  padding-right: var(--spacing-lg);
}

/* Header - sticky navigation bar */
[data-theme="ocean-theme"] .theme-layout-shell-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg-secondary, rgba(255, 255, 255, 0.9));
  border-bottom: 1px solid var(--color-border-primary);
  padding: var(--spacing-md) 0;
}

[data-theme="ocean-theme"] .theme-layout-shell-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Navigation - horizontal link list */
[data-theme="ocean-theme"] nav {
  display: flex;
  gap: var(--spacing-xl);
  font-size: 0.9rem;
}

[data-theme="ocean-theme"] nav a {
  text-decoration: none;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

[data-theme="ocean-theme"] nav a:hover {
  color: var(--color-text-primary);
}

/* Footer */
[data-theme="ocean-theme"] footer {
  border-top: 1px solid var(--color-border-primary);
  padding: var(--spacing-3xl) 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

[data-theme="ocean-theme"] footer .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--spacing-xl);
}

/* Footer columns */
[data-theme="ocean-theme"] .footer-brand {
  font-family: var(--font-family-mono);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--color-text-primary);
}

[data-theme="ocean-theme"] .footer-tagline {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

[data-theme="ocean-theme"] .footer-columns {
  display: flex;
  gap: var(--spacing-3xl);
}

[data-theme="ocean-theme"] .footer-column-title {
  font-weight: 600;
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

[data-theme="ocean-theme"] .footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
}

[data-theme="ocean-theme"] .footer-links a {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

[data-theme="ocean-theme"] .footer-links a:hover {
  color: var(--color-text-primary);
}

/* IDX Footer - Responsive footer for landing pages */
[data-theme="ocean-theme"] .idx-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--color-border-primary);
}
[data-theme="ocean-theme"] .idx-footer-wrap {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}
[data-theme="ocean-theme"] .idx-footer-brand {
  flex-shrink: 0;
}
[data-theme="ocean-theme"] .idx-footer-logo {
  font-family: var(--font-family-mono);
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 0.5rem 0;
}
[data-theme="ocean-theme"] .idx-footer-logo span {
  font-weight: 400;
  opacity: 0.6;
}
[data-theme="ocean-theme"] .idx-footer-tagline {
  font-size: 0.85rem;
  color: var(--color-text-tertiary);
  margin: 0;
  line-height: 1.6;
}
[data-theme="ocean-theme"] .idx-footer-nav {
  display: flex;
  flex-direction: row;
  gap: 3rem;
  flex-shrink: 0;
}
[data-theme="ocean-theme"] .idx-footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
}
[data-theme="ocean-theme"] .idx-footer-col-title {
  font-weight: 600;
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
[data-theme="ocean-theme"] .idx-footer-col a {
  color: var(--color-text-tertiary);
  text-decoration: none;
}
[data-theme="ocean-theme"] .idx-footer-col a:hover {
  color: var(--color-text-primary);
}
[data-theme="ocean-theme"] .idx-footer-col i {
  font-size: 1.25rem;
}

@media (max-width: 768px) {
  [data-theme="ocean-theme"] .idx-footer-wrap {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  [data-theme="ocean-theme"] .idx-footer-brand {
    text-align: center;
    margin-bottom: 1rem;
  }
  [data-theme="ocean-theme"] .idx-footer-nav {
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  [data-theme="ocean-theme"] .idx-footer-nav {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  [data-theme="ocean-theme"] .idx-footer-col {
    text-align: center;
  }
}

/* Section - content block with border */
[data-theme="ocean-theme"] .section {
  padding: var(--spacing-4xl) 0;
  border-bottom: 1px dashed var(--color-border-primary);
}

[data-theme="ocean-theme"] .section-label {
  font-family: var(--font-family-mono);
  font-size: 0.75rem;
  color: var(--color-text-tertiary);
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
