/*
Theme Name: PoshHobby
Theme URI: https://posh-hobby.com
Author: Posh Hobby
Author URI: https://posh-hobby.com
Description: Custom theme for Posh Hobby - Premium Hobby Supplies. Features a distinctive purple/magenta gradient design with modern animations and responsive layout.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: poshhobby
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ========================================
   HYPERSPACE PURPLE THEME - POSH HOBBY
   ======================================== */

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Primary Gradient */
    --primary-gradient-start: #5e42a6;
    --primary-gradient-end: #b74e91;

    /* Background Colors */
    --bg-dark: #2c2d3f;
    --bg-section: #21222c;
    --bg-elevated: #2a2b38;

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);

    /* Accent Colors */
    --accent-primary: #9d4edd;
    --accent-secondary: #c77dff;
    --accent-highlight: #e0aaff;

    /* UI Colors */
    --border-color: rgba(255, 255, 255, 0.15);
    --border-focus: rgba(157, 78, 221, 0.8);
    --shadow-color: rgba(0, 0, 0, 0.3);

    /* Typography */
    --font-main: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --sidebar-width: 300px;
    --section-padding: clamp(3rem, 8vw, 7rem);
    --container-max: 1200px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.4s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.25rem);
    letter-spacing: -0.025em;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.75rem;
    letter-spacing: -0.01em;
}

h4 {
    font-size: 1.25rem;
}

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

.text-gradient {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   SIDEBAR NAVIGATION
   ======================================== */

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, #5e42a6 0%, #7b52ab 50%, #b74e91 100%);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform var(--transition-smooth);
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar-content {
    text-align: center;
}

.sidebar-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    margin-bottom: 3rem;
    display: block;
    letter-spacing: -0.02em;
}

.sidebar-logo:hover {
    color: var(--text-primary);
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    margin-bottom: 0.5rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 0.75rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: color var(--transition-base);
    position: relative;
    display: inline-block;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 1001;
    background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
    border: none;
    border-radius: 8px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.mobile-menu-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(157, 78, 221, 0.4);
}

.mobile-menu-toggle i {
    font-size: 1.5rem;
    color: white;
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Desktop Sidebar */
@media (min-width: 992px) {
    .sidebar {
        transform: translateX(0);
    }

    .mobile-menu-toggle,
    .mobile-overlay {
        display: none;
    }

    .main-content {
        margin-left: var(--sidebar-width);
    }
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-primary {
    background: linear-gradient(90deg, #9d4edd 0%, #c77dff 100%);
    color: #ffffff;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(157, 78, 221, 0.4);
    color: #ffffff;
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-section) 100%);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(157, 78, 221, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero-title {
    margin-bottom: 1.5rem;
}

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

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   FEATURES SECTION
   ======================================== */

.features-section {
    padding: var(--section-padding) 2rem;
    background: var(--bg-section);
}

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

.section-header p {
    font-size: 1.125rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.feature-card {
    background: var(--bg-elevated);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    border: 1px solid var(--border-color);
    text-align: center;
    height: 100%;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ========================================
   SPOTLIGHT SECTION
   ======================================== */

.spotlight-section {
    padding: var(--section-padding) 2rem;
    background: var(--bg-dark);
}

.spotlight-image {
    margin-bottom: 2rem;
}

.image-placeholder {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    aspect-ratio: 4 / 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.image-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.spotlight-content h2 {
    margin-bottom: 1.5rem;
}

.spotlight-content p {
    margin-bottom: 1.5rem;
}

.spotlight-content .btn {
    margin-top: 1rem;
}

@media (min-width: 992px) {
    .spotlight-image {
        margin-bottom: 0;
    }

    .spotlight-content {
        padding-right: 3rem;
    }
}

/* ========================================
   FOOTER
   ======================================== */

.footer-section {
    padding: 5rem 2rem 3rem;
    background: var(--bg-section);
    border-top: 1px solid var(--border-color);
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-section p {
    font-size: 0.95rem;
}

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

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-secondary);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-base);
}

.social-links a:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
}

.footer-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 3rem 0 2rem;
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ========================================
   ANIMATIONS
   ======================================== */

.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays */
.feature-card:nth-child(1) .animate-fade-up,
.row > *:nth-child(1) .animate-fade-up { transition-delay: 0s; }
.feature-card:nth-child(2) .animate-fade-up,
.row > *:nth-child(2) .animate-fade-up { transition-delay: 0.1s; }
.feature-card:nth-child(3) .animate-fade-up,
.row > *:nth-child(3) .animate-fade-up { transition-delay: 0.2s; }

/* ========================================
   UTILITY CLASSES
   ======================================== */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 767px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.85rem;
    }

    .feature-card {
        padding: 2rem 1.5rem;
    }
}

/* ========================================
   COMING SOON PAGE
   ======================================== */

/* HTML needs height for body flexbox centering to work */
html:has(body.coming-soon-page) {
    height: 100%;
    overflow: hidden;
}

.coming-soon-page {
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Orbs Container */
.orbs-container {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    will-change: transform;
    animation: float linear infinite;
}

.orb--purple {
    background: radial-gradient(circle, var(--primary-gradient-start) 0%, transparent 70%);
}

.orb--magenta {
    background: radial-gradient(circle, var(--primary-gradient-end) 0%, transparent 70%);
}

.orb--accent {
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(60px, -40px) scale(1.1);
    }
    50% {
        transform: translate(30px, 50px) scale(0.95);
    }
    75% {
        transform: translate(-40px, 25px) scale(1.05);
    }
}

/* Main Content */
.coming-soon-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
    max-width: 600px;
}

/* Logo */
.coming-soon-page .logo-container {
    margin-bottom: 2.5rem;
    overflow: hidden;
}

.coming-soon-page .logo {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--primary-gradient-end));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateY(40px) scale(0.9);
    animation: logoReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards,
               shimmer 4s ease-in-out infinite;
    animation-delay: 0.3s, 1.5s;
}

@keyframes logoReveal {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes shimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Message */
.coming-soon-page .message-container {
    margin-bottom: 2.5rem;
}

.coming-soon-page .headline {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.8s;
}

.coming-soon-page .subheadline {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-secondary);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 1s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Social Links - Coming Soon Page */
.coming-soon-page .social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 1.2s;
}

.coming-soon-page .social-links a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 48px;
            height: 48px;
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 50%;
            color: var(--text-secondary);
            text-decoration: none;
            transition: all var(--transition-base);
}

.coming-soon-page .social-links a:hover {
            background: var(--accent-primary);
            border-color: var(--accent-primary);
            color: white;
            transform: translateY(-4px);
            box-shadow: 0 10px 25px rgba(157, 78, 221, 0.35);
}

.coming-soon-page .social-links a i {
    font-size: 1.25rem;
}

/* Coming Soon Responsive */
@media (max-width: 575.98px) {
    .coming-soon-page .orb {
        filter: blur(50px);
    }

    .coming-soon-page .social-links {
        gap: 0.75rem;
    }

    .coming-soon-page .social-links a {
        width: 44px;
        height: 44px;
    }
}

/* Reduced Motion - Coming Soon */
@media (prefers-reduced-motion: reduce) {
    .coming-soon-page .orb {
        animation: none;
    }

    .coming-soon-page .logo,
    .coming-soon-page .headline,
    .coming-soon-page .subheadline,
    .coming-soon-page .social-links {
        animation: none;
        opacity: 1;
        transform: none;
        filter: none;
    }
}

/* Hide WordPress admin bar on coming soon page */
.coming-soon-page #wpadminbar {
    display: none !important;
}

.coming-soon-page html {
    margin-top: 0 !important;
}
