/*
Theme Name: OmniaSuite
Theme URI: https://omniasuite.nl
Author: OmniaSuite
Author URI: https://omniasuite.nl
Description: Showcase theme for OmniaSuite apps and plugins
Version: 2.1.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: omniasuite
*/

/* ==========================================================================
   Railway-Inspired Dark Theme
   ========================================================================== */
:root {
    /* Background colors */
    --color-bg-primary: hsl(250, 24%, 9%);
    --color-bg-secondary: hsl(250, 21%, 11%);
    --color-bg-tertiary: hsl(250, 18%, 14%);
    --color-bg-card: hsla(250, 20%, 13%, 0.8);
    --color-bg-card-hover: hsla(250, 20%, 16%, 0.9);

    /* Text colors */
    --color-text-primary: hsl(0, 0%, 100%);
    --color-text-secondary: hsl(250, 10%, 70%);
    --color-text-muted: hsl(250, 10%, 50%);

    /* Accent colors */
    --color-accent-cyan: hsl(180, 80%, 55%);
    --color-accent-purple: hsl(270, 60%, 52%);
    --color-accent-pink: hsl(320, 80%, 55%);
    --color-accent-blue: hsl(220, 80%, 55%);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-accent-purple) 0%, var(--color-accent-cyan) 100%);
    --gradient-glow: linear-gradient(135deg, hsla(270, 60%, 52%, 0.15) 0%, hsla(180, 80%, 55%, 0.15) 100%);
    --gradient-hero: radial-gradient(ellipse at 50% 0%, hsla(270, 60%, 30%, 0.4) 0%, transparent 60%);

    /* Border colors */
    --color-border: hsla(250, 20%, 30%, 0.5);
    --color-border-light: hsla(250, 20%, 40%, 0.3);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing & Layout */
    --max-width: 1200px;
    --border-radius: 1rem;
    --border-radius-sm: 0.5rem;
    --border-radius-lg: 1.5rem;

    /* Shadows & Glows */
    --shadow-sm: 0 2px 8px hsla(0, 0%, 0%, 0.3);
    --shadow-md: 0 4px 16px hsla(0, 0%, 0%, 0.4);
    --shadow-lg: 0 8px 32px hsla(0, 0%, 0%, 0.5);
    --shadow-glow-purple: 0 0 40px hsla(270, 60%, 52%, 0.3);
    --shadow-glow-cyan: 0 0 40px hsla(180, 80%, 55%, 0.3);
    --shadow-glow-card: 0 0 60px hsla(270, 60%, 52%, 0.1);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--color-accent-cyan);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-text-primary);
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
    color: var(--color-text-primary);
}

p {
    color: var(--color-text-secondary);
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==========================================================================
   Header - Glassmorphism
   ========================================================================== */
.site-header {
    background: hsla(250, 24%, 9%, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
}

.site-title a {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.main-navigation > ul > li {
    position: relative;
}

.main-navigation a {
    color: var(--color-text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    position: relative;
    padding: 0.5rem 0;
    transition: color var(--transition-base);
    white-space: nowrap;
}

.main-navigation a:hover {
    color: var(--color-text-primary);
}

/* Dropdown menu */
.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: column;
    gap: 0;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    padding: 0.5rem 0;
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    z-index: 200;
    margin-top: 0.5rem;
}

.main-navigation ul ul::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    left: 0;
    right: 0;
    height: 0.5rem;
}

.main-navigation > ul > li:hover > ul {
    display: flex;
}

.main-navigation ul ul li {
    width: 100%;
}

.main-navigation ul ul a {
    display: block;
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.main-navigation ul ul a:hover {
    background: var(--gradient-glow);
    color: var(--color-accent-cyan);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
    padding: 8rem 0 10rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, hsla(180, 80%, 55%, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin: 0 0 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero h1 .text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    color: var(--color-text-secondary);
}

/* ==========================================================================
   Apps Section
   ========================================================================== */
.apps-section {
    padding: 6rem 0;
    background: var(--color-bg-secondary);
    position: relative;
}

.apps-section h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    font-weight: 800;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-secondary);
    margin-bottom: 3rem;
    font-size: 1.125rem;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
}

/* ==========================================================================
   Cards - Glassmorphism Style
   ========================================================================== */
.app-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent-purple), var(--color-accent-cyan), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.app-card:hover {
    background: var(--color-bg-card-hover);
    border-color: var(--color-border-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow-card);
}

.app-card:hover::before {
    opacity: 1;
}

.app-card .app-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.5rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    box-shadow: var(--shadow-glow-purple);
}

.app-card .app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-card h3 {
    margin: 0 0 0.75rem;
    font-size: 1.5rem;
    color: var(--color-text-primary);
}

.app-card p {
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}

/* ==========================================================================
   Demo Video Section
   ========================================================================== */
.demo-section {
    padding: 4rem 0;
    background: var(--color-bg-secondary);
}

.demo-video-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md), var(--shadow-glow-purple);
    background: var(--color-bg-primary);
}

.demo-video {
    width: 100%;
    height: auto;
    display: block;
    background: var(--color-bg-primary);
}

.demo-video:focus {
    outline: none;
}

@media (max-width: 768px) {
    .demo-video-wrapper {
        max-width: 100%;
        margin: 0 1rem;
    }

    .demo-video {
        max-height: 300px;
    }
}

/* ==========================================================================
   Screenshot Showcase
   ========================================================================== */
.screenshot-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .screenshot-showcase {
        grid-template-columns: 1fr;
    }

    .apps-section [style*="grid-template-columns: 1fr 1fr"],
    .features-section [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}

.screenshot-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.screenshot-item:hover {
    box-shadow: var(--shadow-lg), var(--shadow-glow-purple);
    border-color: var(--color-accent-purple);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Feature Cards
   ========================================================================== */
.features-section {
    padding: 6rem 0;
    background: var(--color-bg-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    padding: 2rem;
    border-radius: var(--border-radius);
    transition: all var(--transition-base);
}

.feature-card:hover {
    border-color: var(--color-accent-purple);
    box-shadow: var(--shadow-glow-purple);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-glow);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.125rem;
    margin: 0 0 0.5rem;
    color: var(--color-text-primary);
}

.feature-card p {
    color: var(--color-text-secondary);
    margin: 0;
}

/* ==========================================================================
   Pricing Cards
   ========================================================================== */
.app-card[style*="border: 2px solid"] {
    border-color: var(--color-accent-purple) !important;
    box-shadow: var(--shadow-glow-purple);
}

/* ==========================================================================
   Content Pages
   ========================================================================== */
.page-content {
    padding: 4rem 0 6rem;
    background: var(--color-bg-primary);
}

.page-header {
    text-align: center;
    margin-bottom: 4rem;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.page-header .subtitle {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
}

.page-content .container.narrow {
    max-width: 800px;
}

.entry-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

.entry-content h3 {
    color: var(--color-text-primary);
}

.entry-content p {
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
}

.entry-content ul, .entry-content ol {
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

.entry-content a {
    color: var(--color-accent-cyan);
}

.entry-content a:hover {
    color: var(--color-text-primary);
}

/* FAQ Styles */
.faq-item {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 1.5rem 2rem;
    margin-bottom: 1rem;
    transition: all var(--transition-base);
}

.faq-item:hover {
    border-color: var(--color-accent-purple);
}

.faq-item h3 {
    margin: 0 0 0.75rem;
    font-size: 1.125rem;
    color: var(--color-text-primary);
}

.faq-item p {
    margin: 0;
    color: var(--color-text-secondary);
}

/* Changelog Styles */
.changelog-entry {
    margin-bottom: 3rem;
    padding-left: 2rem;
    border-left: 2px solid var(--color-accent-purple);
    position: relative;
}

.changelog-entry::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 10px;
    height: 10px;
    background: var(--color-accent-purple);
    border-radius: 50%;
    box-shadow: var(--shadow-glow-purple);
}

.changelog-entry h3 {
    margin: 0 0 0.5rem;
    color: var(--color-text-primary);
}

.changelog-entry .date {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* ==========================================================================
   App Hero (Detail Pages)
   ========================================================================== */
.app-hero {
    background: var(--color-bg-primary);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.app-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero);
}

.app-hero .container {
    position: relative;
    z-index: 1;
}

.app-hero .app-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-glow-purple);
    overflow: hidden;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-hero h1 {
    color: var(--color-text-primary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.app-hero .tagline {
    color: var(--color-text-secondary);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    padding: 5rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .site-title {
    margin-bottom: 1rem;
}

.footer-brand p {
    max-width: 300px;
    color: var(--color-text-muted);
}

.footer-section h4 {
    margin: 0 0 1.5rem;
    color: var(--color-text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.footer-section a:hover {
    color: var(--color-accent-cyan);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-text-primary);
    box-shadow: var(--shadow-glow-purple);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 50px hsla(270, 60%, 52%, 0.5);
    color: var(--color-text-primary);
}

.btn-secondary {
    background: var(--color-bg-card);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-accent-purple);
    background: var(--color-bg-card-hover);
    color: var(--color-text-primary);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
}

.btn-outline:hover {
    border-color: var(--color-accent-cyan);
    color: var(--color-accent-cyan);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

/* ==========================================================================
   Store Buttons
   ========================================================================== */
.store-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.store-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.store-button:hover {
    border-color: var(--color-accent-cyan);
    color: var(--color-accent-cyan);
    transform: translateY(-2px);
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }

    .hero {
        padding: 5rem 0 6rem;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .apps-grid {
        grid-template-columns: 1fr;
    }

    .site-header {
        padding: 0.75rem 0;
    }

    .site-header .container {
        flex-direction: column;
        gap: 0.75rem;
    }

    .site-title {
        font-size: 1.25rem;
    }

    .main-navigation ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-navigation a {
        font-size: 0.85rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand p {
        margin: 1rem auto;
    }

    .page-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 430px) {
    /* iPhone 14 Pro Max and similar */
    .container {
        padding: 0 1rem;
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }

    .site-header {
        padding-top: max(0.75rem, env(safe-area-inset-top));
    }

    .site-title {
        font-size: 1.125rem;
    }

    .main-navigation ul {
        gap: 0.6rem 0.8rem;
    }

    .main-navigation a {
        font-size: 0.8rem;
        padding: 0.35rem 0;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .store-buttons {
        flex-direction: column;
    }

    .store-button {
        width: 100%;
        justify-content: center;
    }
}
