/*
Theme Name: UNIVRSE 3D
Theme URI: https://univrse.app
Author: UNIVRSE
Description: Digital 3D glassmorphism app-store theme for selling apps at $1 each. Elementor-ready, with an "Apps" post type, PayPal buy buttons and a full-site customizer.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: univrse
Tags: e-commerce, one-column, custom-colors, custom-logo, custom-menu, editor-style, featured-images, full-width-template, block-styles, wide-blocks
*/

:root {
  --u-bg: #060814;
  --u-fg: #f4f6fb;
  --u-muted: #98a2b8;
  --u-card: #0e1226;
  --u-cyan: #22d3ee;
  --u-violet: #a855f7;
  --u-border: rgba(255, 255, 255, 0.1);
  --u-radius: 1rem;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--u-bg);
  color: var(--u-fg);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { letter-spacing: -0.02em; margin: 0; }

.u-container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.u-section { padding: 6rem 0; position: relative; }

.u-glass {
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--u-border);
}

.u-gradient-text {
  background: linear-gradient(135deg, var(--u-cyan), var(--u-violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Ambient glow */
.u-glow-wrap { position: fixed; inset: 0; pointer-events: none; z-index: -1; }
.u-glow-a, .u-glow-b { position: absolute; border-radius: 9999px; filter: blur(120px); animation: u-pulse 8s ease-in-out infinite; }
.u-glow-a { top: -10%; left: -10%; width: 50vw; height: 50vh; background: rgba(34, 211, 238, 0.14); }
.u-glow-b { bottom: -10%; right: -10%; width: 60vw; height: 60vh; background: rgba(168, 85, 247, 0.14); animation-delay: 4s; }
@keyframes u-pulse { 0%, 100% { opacity: 0.45; } 50% { opacity: 0.8; } }
@keyframes u-float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-20px) rotate(2deg); } }
.u-float { animation: u-float 6s ease-in-out infinite; }

/* Header */
.u-header { position: fixed; top: 0; left: 0; right: 0; z-index: 999; padding: 0.85rem 1rem; }
.u-nav { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-radius: 1.25rem; padding: 0.75rem 1.25rem; }
.u-brand { display: flex; align-items: center; gap: 0.65rem; font-weight: 800; font-size: 1.05rem; }
.u-mark { width: 34px; height: 34px; border-radius: 0.6rem; display: grid; place-items: center; font-weight: 900; color: var(--u-bg); background: linear-gradient(45deg, var(--u-cyan), var(--u-violet)); box-shadow: 0 0 20px rgba(34,211,238,0.4); }
.u-menu { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; font-size: 0.9rem; color: var(--u-muted); font-weight: 500; }
.u-menu a:hover { color: var(--u-fg); }
.u-btn { display: inline-flex; align-items: center; gap: 0.5rem; border-radius: 0.9rem; padding: 0.7rem 1.15rem; font-weight: 900; font-size: 0.9rem; background: var(--u-fg); color: var(--u-bg); border: 0; cursor: pointer; transition: transform 0.2s, background 0.2s, color 0.2s; }
.u-btn:hover { transform: scale(1.04); background: var(--u-cyan); color: #04121a; }
.u-btn-ghost { background: rgba(255,255,255,0.05); color: var(--u-fg); border: 1px solid var(--u-border); font-weight: 700; }
.u-btn-ghost:hover { background: rgba(255,255,255,0.1); color: var(--u-fg); }
.u-btn-block { width: 100%; justify-content: center; }

/* Hero */
.u-hero { display: grid; gap: 3rem; align-items: center; padding: 9rem 0 5rem; }
@media (min-width: 960px) { .u-hero { grid-template-columns: 1fr 1fr; } }
.u-pill { display: inline-flex; align-items: center; gap: 0.5rem; border-radius: 999px; border: 1px solid rgba(34,211,238,0.3); background: rgba(34,211,238,0.1); color: var(--u-cyan); padding: 0.4rem 1rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.u-hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 900; line-height: 1.05; margin-top: 1.5rem; }
.u-hero p { color: var(--u-muted); font-size: 1.1rem; max-width: 34rem; margin-top: 1.5rem; line-height: 1.6; }
.u-hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.u-hero-img { position: relative; }
.u-hero-img::before { content: ""; position: absolute; inset: 8%; border-radius: 2rem; background: linear-gradient(45deg, rgba(34,211,238,0.3), rgba(168,85,247,0.3)); filter: blur(48px); }
.u-hero-img img { position: relative; border-radius: 1.75rem; }

/* Grid + cards */
.u-head { text-align: center; margin-bottom: 3rem; }
.u-head h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 900; }
.u-head p { color: var(--u-muted); max-width: 40rem; margin: 1rem auto 0; }
.u-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.u-card { display: flex; flex-direction: column; border-radius: 1.5rem; border: 1px solid var(--u-border); background: rgba(14,18,38,0.6); padding: 1rem; transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s; }
.u-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.2); box-shadow: 0 0 40px rgba(34,211,238,0.12); }
.u-card-media { aspect-ratio: 1; border-radius: 1rem; overflow: hidden; background: rgba(255,255,255,0.05); display: block; }
.u-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.u-card:hover .u-card-media img { transform: scale(1.05); }
.u-card h3 { margin-top: 1rem; font-size: 1.1rem; font-weight: 800; }
.u-card .u-desc { color: var(--u-muted); font-size: 0.9rem; margin: 0.4rem 0 0; line-height: 1.5; }
.u-card-foot { margin-top: auto; padding-top: 1rem; display: grid; gap: 0.75rem; }
.u-price { font-family: ui-monospace, "SFMono-Regular", monospace; font-size: 1.15rem; font-weight: 900; color: var(--u-cyan); }

/* Feature boxes */
.u-panel { border-radius: 1.5rem; border: 1px solid var(--u-border); background: rgba(255,255,255,0.05); padding: 2.5rem; }
.u-features { display: grid; gap: 2rem; margin-top: 3rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.u-feature { border-radius: 1rem; border: 1px solid var(--u-border); background: rgba(255,255,255,0.05); padding: 1.5rem; text-align: center; }
.u-feature h3 { font-size: 1rem; font-weight: 800; }
.u-feature p { color: var(--u-muted); font-size: 0.88rem; margin-top: 0.5rem; }

/* Single app */
.u-single { display: grid; gap: 3rem; padding-top: 8rem; }
@media (min-width: 960px) { .u-single { grid-template-columns: 1fr 1fr; } }
.u-single h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; }
.u-content { color: var(--u-muted); line-height: 1.7; margin-top: 1.25rem; }
.u-content a { color: var(--u-cyan); }

/* Footer */
.u-footer { border-top: 1px solid var(--u-border); padding: 3rem 0; margin-top: 2rem; }
.u-footer-inner { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; color: var(--u-muted); font-size: 0.9rem; }

/* Elementor / block editor compatibility */
.entry-content > .alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.entry-content > .alignfull { max-width: none; }
.elementor-section.elementor-section-boxed > .elementor-container { max-width: 1200px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

@media (max-width: 820px) { .u-menu { display: none; } }
