/*
Theme Name: Talk To Glow
Theme URI: https://talktoglow.com
Author: Glow Tech
Author URI: https://talktoglow.com
Description: A custom WordPress theme for Glow - the smartest, most private, super-connected, non-judgmental matchmaker in the world.
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: talktoglow
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --color-primary: #E879F9;
    --color-primary-hover: #D946EF;
    --color-bg: #F5F5F5;
    --color-text: #1a1a1a;
    --color-text-muted: #666666;
    --color-white: #ffffff;
    --color-border: rgba(0, 0, 0, 0.08);
    --font-serif: 'Canela Text', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ============================================
   CSS RESET & BASE STYLES
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

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

h1, h2, h3, h4, h5, h6, p {
    margin: 0;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.glow-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 24px;
    background: rgba(245, 245, 245, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.glow-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.glow-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.glow-logo img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
}

.glow-logo-text {
    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text);
}

.glow-nav-center {
    display: flex;
    align-items: center;
    gap: 32px;
}

.glow-nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.glow-nav-links a {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 400;
    color: var(--color-text);
    transition: opacity 0.2s ease;
}

.glow-nav-links a:hover {
    opacity: 0.7;
}

.glow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 500;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.glow-btn:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-1px);
}

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

.glow-btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* Mobile Navigation */
.glow-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-text);
    cursor: pointer;
    padding: 8px;
}

@media (max-width: 768px) {
    .glow-nav-center {
        display: none;
    }
    
    .glow-nav-right {
        display: none;
    }
    
    .glow-nav-toggle {
        display: block;
    }
    
    .glow-nav.active .glow-nav-center {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 16px;
        right: 16px;
        background: var(--color-white);
        padding: 24px;
        border-radius: 16px;
        margin-top: 8px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    }
    
    .glow-nav.active .glow-nav-links {
        flex-direction: column;
        gap: 16px;
    }
}

/* ============================================
   SPLINE ANIMATION - INLINE (scrolls with page)
   ============================================ */
.glow-spline-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 1 / 1;
    margin-left: auto;
    margin-right: auto;
    pointer-events: none; /* Disable all mouse interaction */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* When size is set via inline style, override max-width */
.glow-spline-wrapper[style*="width"] {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive: scale down on smaller screens */
@media (max-width: 900px) {
    .glow-spline-wrapper,
    .glow-spline-wrapper[style*="width"] {
        width: 80% !important;
        max-width: 80vw !important;
        height: auto !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

.glow-spline-container {
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glow-spline-container canvas {
    width: 100% !important;
    height: 100% !important;
    pointer-events: none;
    object-fit: contain;
}

#canvas3d,
[id^="canvas3d-"] {
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* ============================================
   PAGE CONTENT
   ============================================ */
.site-main {
    position: relative;
}

/* ============================================
   HERO SECTION - HOME PAGE
   ============================================ */
.glow-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 80px 24px 80px;
    text-align: center;
}

.glow-hero-content {
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.glow-hero-title {
    font-family: var(--font-serif);
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--color-text);
    margin-bottom: 32px;
}

.glow-hero-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ============================================
   WAITLIST PAGE
   ============================================ */
.glow-waitlist-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 100px 24px 80px;
    background-image: var(--waitlist-bg-image, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.glow-waitlist-container {
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.glow-waitlist-title {
    font-family: var(--font-serif);
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--color-text);
    margin-bottom: 40px;
}

/* Form Styles */
.glow-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}

.glow-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.glow-form-label {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
}

.glow-form-input,
.glow-form-select {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-sans);
    font-size: 16px;
    color: var(--color-text);
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    outline: none;
    transition: all 0.2s ease;
}

.glow-form-input::placeholder {
    color: #999;
}

.glow-form-input:focus,
.glow-form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(232, 121, 249, 0.1);
}

.glow-form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 44px;
}

.glow-form-select option {
    background-color: var(--color-white);
    color: var(--color-text);
}

.glow-other-city-group {
    display: none;
}

.glow-other-city-group.visible {
    display: flex;
}

.glow-form-submit {
    margin-top: 8px;
}

.glow-form-submit .glow-btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
}

/* Form Messages */
.glow-form-message {
    padding: 16px;
    border-radius: 12px;
    font-size: 14px;
    display: none;
    text-align: center;
}

.glow-form-message.success {
    display: block;
    background-color: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #16a34a;
}

.glow-form-message.error {
    display: block;
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #dc2626;
}

/* Social Proof */
.glow-social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.glow-avatars {
    display: flex;
}

.glow-avatars img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--color-white);
    margin-left: -8px;
    object-fit: cover;
}

.glow-avatars img:first-child {
    margin-left: 0;
}

.glow-social-proof-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
}

/* ============================================
   GENERAL PAGE TEMPLATE
   ============================================ */
.glow-content-page {
    min-height: 100vh;
    padding: 120px 24px 80px;
}

.glow-content-page .entry-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.7;
}

.glow-content-page .entry-title {
    font-family: var(--font-serif);
    font-size: clamp(32px, 5vw, 48px);
    text-align: center;
    margin-bottom: 48px;
}

/* ============================================
   FOOTER - Shows when scrolled to bottom
   ============================================ */
.glow-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 24px;
    text-align: center;
    background: transparent;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.glow-footer.visible {
    opacity: 1;
    pointer-events: auto;
}

.glow-footer-text {
    font-size: 14px;
    color: var(--color-text-muted);
}

/* ============================================
   WORDPRESS ADMIN BAR
   ============================================ */
.admin-bar .glow-header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .glow-header {
        top: 46px;
    }
}

/* ============================================
   GUTENBERG BLOCK STYLES
   ============================================ */
.wp-block-heading {
    font-family: var(--font-serif);
}

.wp-block-paragraph {
    font-family: var(--font-sans);
}

.wp-block-button__link {
    background-color: var(--color-primary) !important;
    border-radius: 100px !important;
    padding: 12px 24px !important;
}

.wp-block-button__link:hover {
    background-color: var(--color-primary-hover) !important;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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