/*
Theme Name: Datezo Theme
Theme URI: https://datezo.de/
Description: Modern, responsive WordPress theme specifically designed for the Datezo Dating Plugin. Features a beautiful coral and rose color scheme, optimized layouts for all Datezo features, and a premium user experience.
Version: 1.0.0
Author: Thorsten Glander
Author URI: https://press-suite.com
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: datezo-theme
Tags: dating, social, community, responsive, modern, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
DatezoVersion: 1.6.1
*/

/* ==========================================================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   ========================================================================== */

:root {
    /* Colors - Primary Palette */
    --color-primary: #D81B60;
    /* Deep Rose */
    --color-secondary: #FF8A65;
    /* Warm Peach */
    --color-accent: #FBBF24;
    /* Warm Gold */

    /* Colors - Neutrals */
    --color-dark: #3D1A2E;
    /* Dark Blue-Gray */
    --color-text: #333333;
    /* Text */
    --color-text-muted: #6C757D;
    /* Muted Text */
    --color-light: #F7F9FC;
    /* Light Background */
    --color-white: #FFFFFF;
    /* White */
    --color-border: #E0E0E0;
    /* Borders */

    /* Colors - Feedback */
    --color-success: #51CF66;
    /* Success Green */
    --color-error: #D81B60;
    /* Error Rose */
    --color-warning: #FBBF24;
    /* Warning Gold */
    --color-info: #FF8A65;
    /* Info Peach */

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #D81B60 0%, #E91E8C 100%);
    --gradient-secondary: linear-gradient(135deg, #FF8A65 0%, #F4845F 100%);
    --gradient-hero: linear-gradient(135deg, rgba(216, 27, 96, 0.88) 0%, rgba(255, 138, 101, 0.82) 100%);
    --gradient-cta: linear-gradient(135deg, #D81B60 0%, #FF8A65 100%);

    /* Typography */
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Font Sizes */
    --font-size-xs: 0.75rem;
    /* 12px */
    --font-size-sm: 0.875rem;
    /* 14px */
    --font-size-base: 1rem;
    /* 16px */
    --font-size-lg: 1.125rem;
    /* 18px */
    --font-size-xl: 1.25rem;
    /* 20px */
    --font-size-2xl: 1.5rem;
    /* 24px */
    --font-size-3xl: 2rem;
    /* 32px */
    --font-size-4xl: 2.5rem;
    /* 40px */
    --font-size-5xl: 3rem;
    /* 48px */

    /* Font Weights */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Line Heights */
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;

    /* Spacing (8px grid system) */
    --spacing-xs: 0.5rem;
    /* 8px */
    --spacing-sm: 1rem;
    /* 16px */
    --spacing-md: 1.5rem;
    /* 24px */
    --spacing-lg: 2rem;
    /* 32px */
    --spacing-xl: 3rem;
    /* 48px */
    --spacing-2xl: 4rem;
    /* 64px */
    --spacing-3xl: 6rem;
    /* 96px */

    /* Border Radius */
    --radius-sm: 0.5rem;
    /* 8px */
    --radius-md: 1rem;
    /* 16px */
    --radius-lg: 1.5rem;
    /* 24px */
    --radius-full: 9999px;
    /* Pill shape */

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.18);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;

    /* Container */
    --container-max-width: 1600px;
    --container-padding: var(--spacing-lg);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    color: var(--color-text);
    background-color: var(--color-white);
    overflow-x: hidden;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--color-dark);
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: var(--font-size-5xl);
}

h2 {
    font-size: var(--font-size-4xl);
}

h3 {
    font-size: var(--font-size-3xl);
}

h4 {
    font-size: var(--font-size-2xl);
}

h5 {
    font-size: var(--font-size-xl);
}

h6 {
    font-size: var(--font-size-lg);
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-secondary);
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--spacing-3xl) 0;
}

.section-light {
    background-color: var(--color-light);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.site-header {
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==========================================================================
   NEW HEADER (dz-header)
   ========================================================================== */

.dz-header {
    background: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    box-shadow: 0 2px 20px rgba(244,63,94,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
}

.dz-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Logo */
.dz-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.dz-logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #f43f5e 0%, #fb7185 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(244,63,94,0.35);
}

.dz-logo-text {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.3px;
}

/* Desktop Nav */
.dz-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dz-nav a {
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    padding: 7px 14px;
    border-radius: 8px;
    transition: all 0.15s;
}

.dz-nav a:hover {
    color: #f43f5e;
    background: #fff1f2;
}

/* Right Actions */
.dz-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dz-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    text-decoration: none;
    transition: all 0.15s;
}

.dz-icon-btn:hover {
    background: #fff1f2;
    color: #f43f5e;
    border-color: #fecdd3;
}

/* User Avatar Dropdown */
.dz-user-menu {
    position: relative;
}

.dz-avatar-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 5px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 99px;
    cursor: pointer;
    transition: all 0.15s;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
}

.dz-avatar-btn:hover {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #f43f5e;
}

.dz-avatar-img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fecdd3;
}

.dz-avatar-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dz-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
    min-width: 200px;
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.18s cubic-bezier(0.4,0,0.2,1);
}

.dz-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dz-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 9px;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.12s;
}

.dz-dropdown-item:hover {
    background: #f8fafc;
    color: #f43f5e;
}

.dz-dropdown-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 4px 6px;
}

.dz-dropdown-logout {
    color: #ef4444;
}

.dz-dropdown-logout:hover {
    background: #fef2f2;
    color: #dc2626;
}

/* Auth Buttons */
.dz-btn-ghost {
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    transition: all 0.15s;
    border: 1px solid transparent;
}

.dz-btn-ghost:hover {
    color: #f43f5e;
    background: #fff1f2;
    border-color: #fecdd3;
}

.dz-btn-primary {
    padding: 9px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    box-shadow: 0 4px 14px rgba(244,63,94,0.35);
    transition: all 0.15s;
    white-space: nowrap;
}

.dz-btn-primary:hover {
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    box-shadow: 0 6px 20px rgba(244,63,94,0.45);
    transform: translateY(-1px);
    color: #fff;
}

/* Mobile Toggle */
.dz-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 38px;
    height: 38px;
    padding: 9px 8px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    cursor: pointer;
}

.dz-mobile-toggle span {
    display: block;
    height: 2px;
    background: #64748b;
    border-radius: 2px;
    transition: all 0.2s;
}

.dz-mobile-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.dz-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.dz-mobile-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.dz-mobile-menu {
    display: none;
    flex-direction: column;
    padding: 8px 16px 16px;
    border-top: 1px solid #f1f5f9;
    background: #fff;
}

.dz-mobile-menu.open {
    display: flex;
}

.dz-mobile-link {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    transition: all 0.12s;
}

.dz-mobile-link:hover {
    background: #f8fafc;
    color: #f43f5e;
}

.dz-mobile-cta {
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    color: #fff !important;
    text-align: center;
    margin-top: 8px;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(244,63,94,0.3);
}

.dz-mobile-logout {
    color: #ef4444;
}

@media (max-width: 768px) {
    .dz-nav { display: none; }
    .dz-avatar-name { display: none; }
    .dz-mobile-toggle { display: flex; }
}

.site-logo {
    font-family: var(--font-heading);
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: #64748B;
    /* slate-500 */
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.5rem 0;
    transition: all 0.2s ease;
    position: relative;
    letter-spacing: 0.01em;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.main-navigation a:hover {
    color: var(--color-dark);
}

.main-navigation a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: var(--font-size-2xl);
    color: var(--color-dark);
    cursor: pointer;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.75rem;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.01em;
    white-space: nowrap;
    outline: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-white);
    box-shadow: 0 4px 14px 0 rgba(216, 27, 96, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #c01455 0%, #d81b7a 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(216, 27, 96, 0.45);
    color: var(--color-white);
}

.btn-secondary {
    background: var(--color-secondary);
    color: var(--color-white);
    box-shadow: 0 4px 14px 0 rgba(255, 138, 101, 0.3);
}

.btn-secondary:hover {
    background: #f4845f;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 138, 101, 0.4);
    color: var(--color-white);
}

.btn-outline {
    background: var(--color-white);
    color: var(--color-dark);
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn-outline:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-large {
    padding: 0.875rem 2.5rem;
    font-size: 1rem;
}

/* ==========================================================================
   CARDS
   ========================================================================== */

.card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    width: 100%;
    height: auto;
    display: block;
}

.card-content {
    padding: var(--spacing-lg);
}

.card-title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-sm);
    color: var(--color-dark);
}

.card-text {
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: var(--spacing-xl);
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--color-white);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    padding: 0.4rem 1.2rem;
    border-radius: var(--radius-full);
    margin-bottom: var(--spacing-md);
    letter-spacing: 0.03em;
    backdrop-filter: blur(4px);
}

.hero-title {
    font-size: var(--font-size-5xl);
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    color: var(--color-white);
    margin-bottom: var(--spacing-xl);
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.hero .btn-outline {
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.08);
}

.hero .btn-outline:hover {
    background: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
}

/* ==========================================================================
   FEATURES SECTION
   ========================================================================== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.feature-card {
    text-align: center;
    padding: var(--spacing-xl);
}

.feature-icon {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin: 0 auto var(--spacing-lg);
    border-radius: var(--radius-md);
}

.feature-title {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-sm);
}

.feature-description {
    color: var(--color-text-muted);
    line-height: var(--line-height-relaxed);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
    background: var(--color-dark);
    color: var(--color-white);
    padding: var(--spacing-3xl) 0 var(--spacing-lg);
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-widget h3 {
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
}

.footer-widget a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-widget a:hover {
    color: var(--color-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-lg);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.footer-navigation {
    margin-top: var(--spacing-sm);
}

.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.footer-menu li {
    margin: 0;
    padding: 0;
}

.footer-menu a {
    color: var(--color-primary);
    font-weight: var(--font-weight-semibold);
}

.footer-menu a:hover {
    color: var(--color-secondary);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --font-size-5xl: 2.5rem;
        --font-size-4xl: 2rem;
        --spacing-3xl: 4rem;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --font-size-5xl: 2rem;
        --font-size-4xl: 1.75rem;
        --font-size-3xl: 1.5rem;
        --spacing-3xl: 3rem;
        --container-padding: var(--spacing-sm);
    }

    h1 {
        font-size: var(--font-size-4xl);
    }

    h2 {
        font-size: var(--font-size-3xl);
    }

    h3 {
        font-size: var(--font-size-2xl);
    }

    .menu-toggle {
        display: block;
    }

    .main-navigation {
        display: none;
    }

    .main-navigation.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-white);
        box-shadow: var(--shadow-lg);
    }

    .main-navigation ul {
        flex-direction: column;
        padding: var(--spacing-md);
    }

    .hero {
        min-height: 500px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}
/* ============================================================
   MOBILE OVERFLOW FIX
   ============================================================ */
html,
body,
#page,
.site,
.site-main,
#main {
    max-width: 100%;
    overflow-x: hidden;
}

.datezo-frontend-app,
.datezo-social-profile-wrapper,
[id^="datezo-app"],
[id^="datezo-frontend"] {
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .dz-header-inner {
        padding: 0 12px;
        gap: 8px;
    }
    .dz-logo-text {
        font-size: 16px;
    }
    /* Ausgeloggt: Buttons sichtbar, kein Burger */
    body:not(.logged-in) .dz-mobile-toggle {
        display: none !important;
    }
    body:not(.logged-in) .dz-btn-ghost,
    body:not(.logged-in) .dz-btn-primary {
        display: inline-flex !important;
        padding: 7px 12px;
        font-size: 12px;
    }
    /* Eingeloggt: Burger sichtbar, Icon-Buttons verstecken */
    body.logged-in .dz-mobile-toggle {
        display: flex !important;
    }
    body.logged-in .dz-icon-btn {
        display: none !important;
    }
}
