/*
Theme Name:         Aldy Accord Theme
Theme URI:          https://www.canny.ro
Description:        Tema standalone pentru acord.aldytopia.ro. Parc de distractii copii AldyTopia. Zero bloat — securitate, cleanup, design modern cu Poppins, brand colors pink/cyan. Plugin-ul aldy-accord controleaza continutul prin shortcodes.
Version:            2.0.0
Requires at least:  6.4
Requires PHP:       8.2
Author:             Canny Agency SRL
Author URI:         https://www.canny.ro
Author Email:       office@canny.ro
License:            Proprietary
Text Domain:        aldy-accord-theme

@package    AldyAccordTheme
@author     Canny Agency SRL <office@canny.ro>
@copyright  2026 Canny Agency SRL
@link       https://www.canny.ro
*/

/* ════════════════════════════════════════════════════════════════════════════
   1. CUSTOM PROPERTIES (design tokens)
   ════════════════════════════════════════════════════════════════════════════ */

:root {
    /* Brand */
    --color-pink:        #e81584;
    --color-pink-dark:   #c0106e;
    --color-pink-light:  #ff4daa;
    --color-cyan:        #00b0d7;
    --color-cyan-dark:   #0090b0;
    --color-cyan-light:  #33c4e3;

    /* Neutrals — light mode */
    --color-bg:          #fafbfd;
    --color-bg-card:     #ffffff;
    --color-bg-subtle:   #f3f4f8;
    --color-border:      #e2e5ed;
    --color-text:        #1a1d27;
    --color-text-muted:  #6b7280;
    --color-text-light:  #9ca3af;

    /* Gradients */
    --gradient-brand:    linear-gradient(135deg, var(--color-pink) 0%, var(--color-cyan) 100%);
    --gradient-bg:       linear-gradient(160deg, #fff8fc 0%, #f0fafd 50%, #fdf0f8 100%);
    --gradient-header:   linear-gradient(135deg, rgba(232, 21, 132, 0.06) 0%, rgba(0, 176, 215, 0.06) 100%);

    /* Typography */
    --font-primary:      'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-size-xs:      0.75rem;    /* 12px */
    --font-size-sm:      0.875rem;   /* 14px */
    --font-size-base:    1rem;       /* 16px */
    --font-size-md:      1.125rem;   /* 18px */
    --font-size-lg:      1.25rem;    /* 20px */
    --font-size-xl:      1.5rem;     /* 24px */
    --font-size-2xl:     1.875rem;   /* 30px */
    --font-size-3xl:     2.25rem;    /* 36px */
    --line-height-tight: 1.25;
    --line-height-base:  1.6;
    --line-height-loose: 1.8;

    /* Spacing */
    --space-1:  0.25rem;
    --space-2:  0.5rem;
    --space-3:  0.75rem;
    --space-4:  1rem;
    --space-5:  1.25rem;
    --space-6:  1.5rem;
    --space-8:  2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;

    /* Layout */
    --container-max:     1120px;
    --container-narrow:  720px;
    --header-height:     72px;

    /* Borders */
    --radius-sm:  6px;
    --radius-md:  12px;
    --radius-lg:  20px;
    --radius-xl:  32px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-xs:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-sm:  0 4px 12px rgba(0,0,0,.06), 0 2px 4px rgba(0,0,0,.04);
    --shadow-md:  0 8px 24px rgba(0,0,0,.08), 0 4px 8px rgba(0,0,0,.04);
    --shadow-lg:  0 16px 48px rgba(0,0,0,.10), 0 8px 16px rgba(0,0,0,.04);
    --shadow-pink: 0 8px 24px rgba(232, 21, 132, 0.25);
    --shadow-cyan: 0 8px 24px rgba(0, 176, 215, 0.25);

    /* Transitions */
    --transition-fast:   150ms ease;
    --transition-base:   250ms ease;
    --transition-slow:   400ms ease;
    --transition-spring: 350ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Z-index scale */
    --z-dropdown: 100;
    --z-sticky:   200;
    --z-overlay:  300;
    --z-modal:    400;
}

/* Dark mode tokens */
@media (prefers-color-scheme: dark) {
    :root {
        --color-bg:         #0f1017;
        --color-bg-card:    #1a1d27;
        --color-bg-subtle:  #22263a;
        --color-border:     #2d3150;
        --color-text:       #f0f2f8;
        --color-text-muted: #9aa3be;
        --color-text-light: #6b7390;
        --gradient-bg:      linear-gradient(160deg, #130a10 0%, #091219 50%, #130a14 100%);
        --gradient-header:  linear-gradient(135deg, rgba(232, 21, 132, 0.12) 0%, rgba(0, 176, 215, 0.12) 100%);
        --shadow-xs:  0 1px 3px rgba(0,0,0,.3), 0 1px 2px rgba(0,0,0,.2);
        --shadow-sm:  0 4px 12px rgba(0,0,0,.3), 0 2px 4px rgba(0,0,0,.2);
        --shadow-md:  0 8px 24px rgba(0,0,0,.35), 0 4px 8px rgba(0,0,0,.2);
        --shadow-lg:  0 16px 48px rgba(0,0,0,.4), 0 8px 16px rgba(0,0,0,.2);
    }
}

/* ════════════════════════════════════════════════════════════════════════════
   2. FONTS — Poppins self-hosted (WOFF2)
   ════════════════════════════════════════════════════════════════════════════ */

@font-face {
    font-family: 'Poppins';
    src: url('assets/fonts/poppins-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('assets/fonts/poppins-400italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('assets/fonts/poppins-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('assets/fonts/poppins-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ════════════════════════════════════════════════════════════════════════════
   3. MODERN CSS RESET
   ════════════════════════════════════════════════════════════════════════════ */

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

* {
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    height: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-text);
    background: var(--gradient-bg);
    background-attachment: fixed;
    min-height: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

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

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

a:hover {
    color: var(--color-pink-dark);
    text-decoration: underline;
}

ul, ol {
    list-style: none;
}

/* ════════════════════════════════════════════════════════════════════════════
   4. SKIP LINK (accessibility)
   ════════════════════════════════════════════════════════════════════════════ */

.skip-to-content {
    position: absolute;
    top: -100%;
    left: var(--space-4);
    z-index: var(--z-modal);
    padding: var(--space-3) var(--space-6);
    background: var(--color-pink);
    color: #fff;
    font-weight: 600;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: top var(--transition-fast);
}

.skip-to-content:focus {
    top: var(--space-4);
}

/* ════════════════════════════════════════════════════════════════════════════
   5. DECORATIVE BACKGROUND PATTERN
   ════════════════════════════════════════════════════════════════════════════ */

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(232, 21, 132, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 176, 215, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(232, 21, 132, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* ════════════════════════════════════════════════════════════════════════════
   6. HEADER — sticky glassmorphism minimal
   ════════════════════════════════════════════════════════════════════════════ */

.site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    height: var(--header-height);
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(226, 229, 237, 0.6);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
    transition: box-shadow var(--transition-base), background var(--transition-base);
    animation: header-fade-in 0.4s ease both;
}

@media (prefers-color-scheme: dark) {
    .site-header {
        background: rgba(15, 16, 23, 0.85);
        border-bottom-color: rgba(45, 49, 80, 0.6);
    }
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo:hover {
    text-decoration: none;
}

.logo-mark {
    width: 40px;
    height: 40px;
    background: var(--gradient-brand);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-pink);
    transition: transform var(--transition-spring), box-shadow var(--transition-base);
}

.logo-mark svg {
    width: 22px;
    height: 22px;
    fill: #fff;
}

.site-logo:hover .logo-mark {
    transform: scale(1.08) rotate(-3deg);
    box-shadow: 0 12px 32px rgba(232, 21, 132, 0.35);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-text .brand-name {
    font-size: var(--font-size-md);
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.logo-text .brand-tagline {
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--color-text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Navigation */
.site-nav {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.site-nav a {
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text-muted);
    border-radius: var(--radius-full);
    transition: color var(--transition-fast), background var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.current-menu-item {
    color: var(--color-pink);
    background: rgba(232, 21, 132, 0.08);
    text-decoration: none;
}

/* Burger menu button (mobile) */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    transition: background var(--transition-fast), color var(--transition-fast);
}

.nav-toggle:hover {
    background: var(--color-bg-subtle);
    color: var(--color-text);
}

.nav-toggle svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
}

/* ════════════════════════════════════════════════════════════════════════════
   7. MAIN CONTENT AREA
   ════════════════════════════════════════════════════════════════════════════ */

.site-main {
    flex: 1;
    min-height: calc(100vh - var(--header-height) - 200px);
    animation: fade-in-up 0.5s ease both;
    animation-delay: 0.1s;
}

.entry-content {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-10) var(--space-6);
}

/* ════════════════════════════════════════════════════════════════════════════
   8. PAGE TEMPLATES
   ════════════════════════════════════════════════════════════════════════════ */

/* -- Formular Acord Public -------------------------------------------------- */

.aldy-accord-page {
    padding: var(--space-8) 0;
}

.aldy-accord-page .entry-content {
    max-width: var(--container-narrow);
}

/* -- Panou Receptie --------------------------------------------------------- */

.aldy-reception-page {
    padding: var(--space-4) 0;
}

.aldy-reception-page .entry-content {
    max-width: 100%;
    padding: var(--space-4);
}

.aldy-reception-content {
    max-width: 100%;
    padding: 20px;
}

/* -- Kiosk (fullscreen, fara header/footer) --------------------------------- */

.aldy-kiosk-page {
    overflow: hidden;
}

/* ════════════════════════════════════════════════════════════════════════════
   9. FOOTER
   ════════════════════════════════════════════════════════════════════════════ */

.site-footer {
    background: var(--color-bg-card);
    border-top: 1px solid var(--color-border);
    padding: var(--space-8) 0 var(--space-6);
    animation: fade-in 0.4s ease both;
    animation-delay: 0.2s;
}

.footer-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.footer-brand-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gradient-brand);
    flex-shrink: 0;
}

.footer-brand-name {
    font-size: var(--font-size-sm);
    font-weight: 700;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.01em;
}

.footer-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-1);
}

.footer-links a {
    padding: var(--space-1) var(--space-3);
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--color-text-muted);
    border-radius: var(--radius-full);
    transition: color var(--transition-fast), background var(--transition-fast);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--color-pink);
    background: rgba(232, 21, 132, 0.08);
    text-decoration: none;
}

.footer-sep {
    color: var(--color-border);
    user-select: none;
    font-size: var(--font-size-xs);
}

.footer-copyright {
    font-size: var(--font-size-xs);
    color: var(--color-text-light);
    line-height: var(--line-height-loose);
}

.footer-copyright a {
    color: var(--color-text-muted);
    font-weight: 600;
}

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

/* Footer gradient accent */
.footer-accent {
    width: 60px;
    height: 3px;
    background: var(--gradient-brand);
    border-radius: var(--radius-full);
    margin: 0 auto;
}

/* ════════════════════════════════════════════════════════════════════════════
   10. LAYOUT WRAPPER
   ════════════════════════════════════════════════════════════════════════════ */

.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ════════════════════════════════════════════════════════════════════════════
   11. PAGE 404
   ════════════════════════════════════════════════════════════════════════════ */

.error-404 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--header-height) - 200px);
    text-align: center;
    padding: var(--space-16) var(--space-6);
}

.error-404-code {
    font-size: 8rem;
    font-weight: 700;
    line-height: 1;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-4);
    animation: scale-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.error-404-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-3);
}

.error-404-text {
    font-size: var(--font-size-md);
    color: var(--color-text-muted);
    max-width: 420px;
    margin-bottom: var(--space-8);
}

.btn-home {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-8);
    background: var(--gradient-brand);
    color: #fff;
    font-weight: 600;
    font-size: var(--font-size-sm);
    border-radius: var(--radius-full);
    text-decoration: none;
    box-shadow: var(--shadow-pink);
    transition: transform var(--transition-spring), box-shadow var(--transition-base);
}

.btn-home:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(232, 21, 132, 0.4);
    color: #fff;
    text-decoration: none;
}

.btn-home:active {
    transform: translateY(0);
}

/* ════════════════════════════════════════════════════════════════════════════
   12. UTILITY CLASSES
   ════════════════════════════════════════════════════════════════════════════ */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* ════════════════════════════════════════════════════════════════════════════
   13. ANIMATIONS
   ════════════════════════════════════════════════════════════════════════════ */

@keyframes fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes header-fade-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ════════════════════════════════════════════════════════════════════════════
   14. RESPONSIVE — Mobile First
   ════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    :root {
        --header-height: 64px;
        --font-size-3xl: 1.75rem;
        --font-size-2xl: 1.5rem;
    }

    .header-inner {
        padding: 0 var(--space-4);
    }

    /* Mobile nav toggle */
    .nav-toggle {
        display: flex;
    }

    /* Nav se ascunde implicit pe mobile */
    .site-nav {
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--color-bg-card);
        border-bottom: 1px solid var(--color-border);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: var(--space-3) var(--space-4);
        box-shadow: var(--shadow-md);
        display: none;
        animation: fade-in-up 0.2s ease both;
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        padding: var(--space-3) var(--space-4);
        border-radius: var(--radius-md);
    }

    .entry-content {
        padding: var(--space-6) var(--space-4);
    }

    .footer-inner {
        padding: 0 var(--space-4);
    }

    .error-404-code {
        font-size: 5rem;
    }
}

@media (max-width: 480px) {
    :root {
        --font-size-3xl: 1.5rem;
        --font-size-2xl: 1.25rem;
        --font-size-xl:  1.25rem;
    }

    .logo-text .brand-tagline {
        display: none;
    }

    .footer-links {
        flex-direction: column;
        gap: var(--space-2);
    }

    .footer-sep {
        display: none;
    }

    .error-404-code {
        font-size: 4rem;
    }

    .error-404-text {
        font-size: var(--font-size-base);
    }
}

/* ════════════════════════════════════════════════════════════════════════════
   15. ACCESSIBILITY
   ════════════════════════════════════════════════════════════════════════════ */

/* Focus visible — outline clar pe tastatura, fara outline pe click */
:focus-visible {
    outline: 3px solid var(--color-pink);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

:focus:not(:focus-visible) {
    outline: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ════════════════════════════════════════════════════════════════════════════
   16. PRINT STYLES
   ════════════════════════════════════════════════════════════════════════════ */

@media print {
    body {
        background: #fff;
        color: #000;
        font-size: 12pt;
    }

    body::before {
        display: none;
    }

    .site-header,
    .site-footer,
    .nav-toggle,
    .skip-to-content {
        display: none !important;
    }

    .site-main {
        min-height: auto;
    }

    .entry-content {
        padding: 0;
        max-width: 100%;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    /* Evita page break in mijlocul unui element important */
    h1, h2, h3, h4, p, li {
        page-break-inside: avoid;
    }
}

/* ════════════════════════════════════════════════════════════════════════════
   FOOTER CANNY AGENCY (aldy_theme_custom_footer)
   ════════════════════════════════════════════════════════════════════════════ */

.aldy-site-footer {
    text-align: center;
    padding: 20px 0;
    font-size: 13px;
    color: #999;
    border-top: 1px solid #eee;
    margin-top: 40px;
}

.aldy-site-footer a {
    color: #999;
    text-decoration: none;
}

.aldy-site-footer a:hover {
    color: #e81584;
}
