/* Aether Theme - Full Enhanced CSS (Tailwind-like + Demo specific)
 * Performance-first, minimal bloat
 */

*, ::before, ::after { box-sizing: border-box; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; line-height: 1.6; color: #0f172a; background: #fff; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.2; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.9; }

/* Containers */
.aether-container { max-width: 1200px; margin: 0 auto; padding-left: 1rem; padding-right: 1rem; }
.aether-section { padding-top: 4rem; padding-bottom: 4rem; }

/* Flex & Grid utilities */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 768px) { .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Typography */
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.tracking-tight { letter-spacing: -0.025em; }
.text-center { text-align: center; }

/* Colors */
.text-white { color: #fff; }
.text-primary { color: #0A2540; }
.text-accent { color: #3B82F6; }
.text-neutral-400 { color: #64748b; }
.text-neutral-600 { color: #475569; }
.text-neutral-900 { color: #0f172a; }
.bg-white { background: #fff; }
.bg-neutral-100 { background: #f1f5f9; }
.bg-neutral-900 { background: #0f172a; }

/* Header & navigation */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: #fff;
}

.aether-header-inner {
	gap: 1rem;
}

.aether-main-nav .wp-block-navigation__container,
.aether-main-nav .wp-block-navigation-item {
	gap: 1.75rem;
}

.aether-main-nav .wp-block-navigation-item__content,
.aether-main-nav .aether-nav-link {
	color: #334155;
	font-size: 0.95rem;
	font-weight: 500;
	text-decoration: none;
	padding: 0.35rem 0;
}

.aether-main-nav .wp-block-navigation-item__content:hover,
.aether-main-nav .current-menu-item .wp-block-navigation-item__content {
	color: #3b82f6;
}

.aether-header-actions .wc-block-mini-cart__button {
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 0.35rem 0.65rem;
}

@media (min-width: 768px) {
	.aether-header-inner .wp-block-navigation__responsive-container-open {
		display: none;
	}

	.aether-header-inner .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: flex;
		position: static;
		width: auto;
		background: transparent;
	}
}

@media (max-width: 767px) {
	.aether-header-inner {
		height: auto;
		min-height: 4rem;
		padding-top: 0.5rem;
		padding-bottom: 0.5rem;
	}

	.aether-header-actions {
		margin-left: auto;
	}
}

/* Buttons */
.aether-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.2s;
  text-decoration: none;
}
.aether-btn-primary {
  background: #0A2540;
  color: white;
}
.aether-btn-primary:hover { background: #1e3a5f; }
.aether-btn-secondary {
  background: white;
  color: #0A2540;
  border: 1px solid #e2e8f0;
}
.aether-btn-secondary:hover { background: #f8fafc; }

/* Cards and sections for demos */
.demo-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.demo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  background-size: cover;
  background-position: center;
}

/* Product grid for shop demo */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}
.product-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
}

/* Testimonials */
.testimonial {
  border-left: 3px solid #3B82F6;
  padding-left: 1rem;
  font-style: italic;
}

/* Footer */
footer .wp-block-navigation { }
footer a { color: #cbd5e1; }
footer a:hover { color: white; }

.aether-footer-nav .wp-block-navigation-item__content {
	color: #cbd5e1;
	text-decoration: none;
	padding: 0.15rem 0;
}

.aether-footer-nav .wp-block-navigation-item__content:hover {
	color: #fff;
}

/* Misc fixes */
.wp-block-cover { position: relative; }
.wp-block-button__link { display: inline-block; }

/* Ensure clean spacing */
p, .wp-block-paragraph { margin-bottom: 1rem; }

/* Responsive tweaks */
@media (max-width: 768px) {
	.aether-header-inner .aether-main-nav {
		order: 3;
		width: 100%;
	}
}
/* Full-width pages and demo content (no narrow entry-content shell) */
.page .entry-content,
.single .entry-content,
.post .entry-content,
.aether-page-main,
.aether-page-main .wp-block-post-content {
    max-width: 100% !important;
    width: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.aether-page-main {
    margin-top: 0;
    margin-bottom: 0;
}

/* Demo pages: let cover and section groups span the viewport */
body.aether-demo-page .wp-block-cover.alignfull,
body.aether-demo-page .alignfull,
body.page .wp-block-cover.alignfull,
body.page .alignfull {
    max-width: none !important;
    width: 100%;
}

body.aether-demo-page .wp-block-cover {
    margin-top: 0 !important;
}

body.aether-demo-page .wp-block-group.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    max-width: var(--wp--style--global--wide-size, 1280px);
}

.wp-block-cover {
    margin-top: 0 !important;
}

.wp-block-cover .wp-block-cover__image-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.wp-block-cover .wp-block-cover__background {
    z-index: 1;
}

.wp-block-cover .wp-block-cover__inner-container {
    z-index: 2;
    position: relative;
}

/* Demo layout: multi-column + mobile-friendly */
.aether-demo-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.aether-demo-columns > .wp-block-column {
    flex: 1 1 100%;
    min-width: 0;
}

@media (min-width: 600px) {
    .aether-layout-cols-2 > .wp-block-column {
        flex: 1 1 calc(50% - 0.75rem);
        max-width: calc(50% - 0.75rem);
    }

    .aether-layout-cols-3 > .wp-block-column {
        flex: 1 1 calc(33.333% - 1rem);
        max-width: calc(33.333% - 1rem);
    }

    .aether-layout-cols-4 > .wp-block-column {
        flex: 1 1 calc(25% - 1.125rem);
        max-width: calc(25% - 1.125rem);
    }

    .aether-layout-mobile-cols-2.aether-layout-cols-2 > .wp-block-column,
    .aether-layout-mobile-cols-2.aether-layout-cols-3 > .wp-block-column,
    .aether-layout-mobile-cols-2.aether-layout-cols-4 > .wp-block-column {
        flex: 1 1 calc(50% - 0.75rem);
        max-width: calc(50% - 0.75rem);
    }
}

@media (min-width: 960px) {
    .aether-layout-mobile-cols-2.aether-layout-cols-3 > .wp-block-column {
        flex: 1 1 calc(33.333% - 1rem);
        max-width: calc(33.333% - 1rem);
    }

    .aether-layout-mobile-cols-2.aether-layout-cols-4 > .wp-block-column {
        flex: 1 1 calc(25% - 1.125rem);
        max-width: calc(25% - 1.125rem);
    }
}

.aether-layout-mobile-stack > .wp-block-column,
.aether-layout-mobile-stack.aether-demo-columns--split > .wp-block-column {
    flex: 1 1 100%;
    max-width: 100%;
}

@media (min-width: 782px) {
    .aether-demo-columns--split:not(.aether-layout-mobile-stack) > .wp-block-column {
        flex: 1 1 calc(50% - 0.75rem);
        max-width: calc(50% - 0.75rem);
    }
}

.aether-demo-section-pair {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.aether-layout-product-grid ul.wc-block-product-template,
.aether-layout-product-grid .wc-block-product-template {
    display: grid !important;
    gap: 1.25rem;
}

.aether-layout-product-grid.aether-layout-cols-2 ul.wc-block-product-template,
.aether-layout-product-grid.aether-layout-cols-2 .wc-block-product-template {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.aether-layout-product-grid.aether-layout-cols-3 ul.wc-block-product-template,
.aether-layout-product-grid.aether-layout-cols-3 .wc-block-product-template {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.aether-layout-product-grid.aether-layout-cols-4 ul.wc-block-product-template,
.aether-layout-product-grid.aether-layout-cols-4 .wc-block-product-template {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 599px) {
    .aether-layout-product-grid ul.wc-block-product-template,
    .aether-layout-product-grid .wc-block-product-template {
        grid-template-columns: 1fr !important;
    }

    body.aether-layout-preset-landing-mobile .aether-layout-product-grid ul.wc-block-product-template,
    body.aether-layout-preset-landing-mobile .aether-layout-product-grid .wc-block-product-template {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

.aether-feature-card {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.25rem;
}

/* Gallery layouts */
.aether-gallery .wp-block-image img,
.aether-gallery .blocks-gallery-item img {
    border-radius: 8px;
}

.aether-gallery--masonry {
    columns: 3;
    column-gap: 12px;
}

.aether-gallery--masonry .wp-block-image,
.aether-gallery--masonry .blocks-gallery-item {
    break-inside: avoid;
    margin: 0 0 12px;
}

.aether-gallery-carousel .aether-gallery-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

.aether-gallery-carousel .aether-gallery-slide {
    flex: 0 0 min(280px, 80vw);
    scroll-snap-align: start;
    margin: 0;
}

.aether-gallery-carousel .aether-gallery-slide img {
    border-radius: 8px;
    width: 100%;
    height: auto;
    display: block;
}

.elementor-element.aether-gallery-masonry .gallery {
    columns: 3;
    column-gap: 12px;
}

.elementor-element.aether-gallery-masonry .gallery-item {
    break-inside: avoid;
    margin-bottom: 12px;
}

@media (max-width: 768px) {
    .aether-gallery--masonry,
    .elementor-element.aether-gallery-masonry .gallery {
        columns: 2;
    }
}

/* ==========================================================================
   Utility classes used by demo patterns (features-grid, testimonials, …)
   These mirror a small Tailwind subset so the same block markup renders
   consistently on the frontend without a compiled Tailwind build.
   ========================================================================== */

/* Grid columns — generic patterns use md:grid-cols-3 for card rows. */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 768px) {
	.md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Footer 12-col layout (lg:col-span-N). */
.aether-kit-footer .lg\:col-span-2 { grid-column: span 2 / span 2; }
.aether-kit-footer .lg\:col-span-4 { grid-column: span 4 / span 4; }
@media (max-width: 1023px) {
	.aether-kit-footer .lg\:col-span-2,
	.aether-kit-footer .lg\:col-span-4 { grid-column: span 6 / span 6; }
}
@media (max-width: 767px) {
	.aether-kit-footer .lg\:col-span-2,
	.aether-kit-footer .lg\:col-span-4 { grid-column: 1 / -1; }
}

/* Borders & radii used by feature/testimonial cards. */
.border { border-width: 1px; border-style: solid; }
.border-neutral-200 { border-color: #e5e7eb; }
.border-white\/10 { border-color: rgb(255 255 255 / 0.1); }
.border-t { border-top-width: 1px; border-top-style: solid; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* Backgrounds. */
.bg-neutral-50 { background-color: #f8fafc; }
.bg-neutral-950 { background-color: #020617; }

/* Text colors. */
.text-neutral-500 { color: #64748b; }

/* Max widths (constrain lead paragraphs). */
.max-w-xl { max-width: 36rem; }
.max-w-sm { max-width: 24rem; }

/* Typography helpers. */
.italic { font-style: italic; }
.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }
.leading-relaxed { line-height: 1.625; }
.mt-14 { margin-top: 3.5rem; }
.mt-12 { margin-top: 3rem; }
.mb-4 { margin-bottom: 1rem; }

/* Card base for feature/testimonial columns. */
.aether-section .wp-block-column.p-6,
.aether-section .wp-block-column[class*="p-6"] {
	border: 1px solid #e5e7eb;
	border-radius: 0.75rem;
	padding: 1.5rem;
}
