/*
Theme Name: EVENT360
Theme URI: https://event360.co.il
Author: INFINITY8WEB
Author URI: https://infinity8web.com
Description: תבנית WordPress ייעודית, נקייה ומהירה עבור מערכת EVENT360. בנויה במבנה תקני של WordPress (Header, Footer, תפריטים, לוגו, Favicon, תמונות מובלטות), עם תמיכה מלאה ב-WooCommerce וב-Elementor. התבנית אינה כוללת לוגיקה של המערכת — התוסף EVENT360 נשאר האחראי הבלעדי על כל הפונקציונליות. RTL-first, ללא Builder מובנה וללא ספריות מיותרות.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: Proprietary
License URI: https://event360.co.il
Text Domain: event360
Tags: rtl-language-support, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, woocommerce, full-width-template, blog
*/

/* ==========================================================================
   EVENT360 Theme — base stylesheet
   • Minimal, fast, dependency-free (no framework, no jQuery).
   • RTL-first via CSS logical properties (works LTR + RTL, no rtl.css needed).
   • Uses STANDARD WordPress markup/classes (.site, .site-content, .site-main,
     main, .entry-content, .entry-title) so the EVENT360 plugin's own CSS hooks
     in exactly as it did before — the plugin keeps full control of its screens.
   ========================================================================== */

/* ----------------------------------------------------------------------------
   1. Design tokens
   ---------------------------------------------------------------------------- */
:root {
  --e360-primary:      #1e40af;
  --e360-primary-mid:  #2563eb;
  --e360-accent:       #6366f1;
  --e360-violet:       #7c3aed;
  --e360-navy:         #0f1729;

  --e360-text:         #0f172a;
  --e360-text-soft:    #334155;
  --e360-muted:        #64748b;
  --e360-line:         #e2e8f0;
  --e360-bg:           #ffffff;
  --e360-bg-soft:      #f6f8ff;
  --e360-surface:      #ffffff;

  --e360-gradient:     linear-gradient(135deg, #1e40af 0%, #4f46e5 50%, #7c3aed 100%);

  --e360-radius:       12px;
  --e360-radius-sm:    8px;
  --e360-radius-lg:    20px;

  --e360-shadow-sm:    0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.05);
  --e360-shadow:       0 4px 20px rgba(99,102,241,.10), 0 2px 8px rgba(15,23,42,.06);

  --e360-container:    1200px;
  --e360-gutter:       clamp(16px, 4vw, 32px);
  --e360-header-h:     72px;

  --e360-font:         'Rubik', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

/* ----------------------------------------------------------------------------
   2. Reset (modern, minimal)
   ---------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--e360-font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--e360-text);
  background: var(--e360-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
ul, ol { margin: 0 0 1.25rem; padding-inline-start: 1.4em; }
p { margin: 0 0 1.25rem; }
a { color: var(--e360-primary-mid); text-decoration: none; transition: color .15s ease; }
a:hover, a:focus { color: var(--e360-violet); text-decoration: underline; }
hr { border: 0; border-top: 1px solid var(--e360-line); margin: 2rem 0; }
table { width: 100%; border-collapse: collapse; margin: 0 0 1.5rem; }
th, td { border: 1px solid var(--e360-line); padding: .6em .8em; text-align: start; }
th { background: var(--e360-bg-soft); font-weight: 700; }
blockquote {
  margin: 0 0 1.5rem;
  padding: .25rem 1.1rem;
  border-inline-start: 4px solid var(--e360-accent);
  color: var(--e360-text-soft);
  background: var(--e360-bg-soft);
  border-radius: var(--e360-radius-sm);
}
code, kbd, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92em;
}
pre {
  background: var(--e360-navy); color: #e2e8f0; padding: 1rem 1.2rem;
  border-radius: var(--e360-radius-sm); overflow: auto; direction: ltr; text-align: left;
}
:focus-visible { outline: 2px solid var(--e360-accent); outline-offset: 2px; }

/* ----------------------------------------------------------------------------
   3. Typography
   ---------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .6em;
  line-height: 1.2;
  font-weight: 800;
  color: var(--e360-navy);
  letter-spacing: -.01em;
}
h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.7rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.05rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.18rem; }
h5 { font-size: 1.02rem; }
h6 { font-size: .9rem; text-transform: uppercase; letter-spacing: .04em; color: var(--e360-muted); }

/* ----------------------------------------------------------------------------
   4. Forms & buttons (theme chrome only — the plugin styles its own forms)
   ---------------------------------------------------------------------------- */
input, select, textarea, button { font-family: inherit; font-size: 1rem; color: inherit; }
input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
select, textarea {
  width: 100%;
  padding: .65em .85em;
  border: 1.5px solid var(--e360-line);
  border-radius: var(--e360-radius-sm);
  background: var(--e360-surface);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--e360-accent);
  box-shadow: 0 0 0 3px rgba(99,102,241,.14);
}
.button, button, input[type="submit"], input[type="button"], .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .7em 1.4em;
  border: none;
  border-radius: var(--e360-radius-sm);
  background: var(--e360-gradient);
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .18s ease, opacity .15s ease;
}
.button:hover, button:hover, input[type="submit"]:hover, .wp-block-button__link:hover {
  color: #fff; text-decoration: none; transform: translateY(-1px); box-shadow: var(--e360-shadow);
}

/* ----------------------------------------------------------------------------
   5. Layout — STANDARD WordPress wrappers (kept compatible with the plugin)
   ---------------------------------------------------------------------------- */
.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}
.site-content { flex: 1 0 auto; width: 100%; }
.e360-container {
  width: 100%;
  max-width: var(--e360-container);
  margin-inline: auto;
  padding-inline: var(--e360-gutter);
}
.content-area { padding-block: clamp(28px, 5vw, 56px); }

/* Content + sidebar grid (default page/blog layout) */
.e360-has-sidebar .content-area > .e360-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}
@media (max-width: 980px) {
  .e360-has-sidebar .content-area > .e360-container { grid-template-columns: 1fr; }
}

/* Full-width template + EVENT360 shortcode pages: no narrow column, no sidebar */
.e360-full-width .content-area { padding-block: 0; }
.e360-full-width .content-area > .e360-container { max-width: none; padding-inline: 0; }
.e360-full-width .site-main > article > .entry-content { margin: 0; }

/* ----------------------------------------------------------------------------
   6. Accessibility
   ---------------------------------------------------------------------------- */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; padding: 0; overflow: hidden;
  position: absolute !important; word-wrap: normal !important;
}
.skip-link {
  position: absolute; inset-inline-start: -9999px; top: 8px; z-index: 100000;
  background: var(--e360-navy); color: #fff; padding: 10px 18px;
  border-radius: var(--e360-radius-sm); font-weight: 700;
}
.skip-link:focus { inset-inline-start: 8px; color: #fff; text-decoration: none; }

/* ----------------------------------------------------------------------------
   7. Site header
   ---------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 999;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--e360-line);
}

/* EVENT360 app pages (dashboard / personal area / guest portal / seating) run
   their OWN sticky navigation. Keep the site header in normal document flow on
   those pages so it never overlaps or hides the plugin's sticky tab bar — this
   fixes the white bar that covered the header/area on mobile. */
.e360-app-page .site-header { position: static; }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: var(--e360-header-h);
}
.site-branding { display: flex; align-items: center; gap: 12px; min-width: 0; }
.site-branding .custom-logo-link { display: inline-flex; }
.site-branding img, .custom-logo { max-height: 46px; width: auto; }
.site-title { margin: 0; font-size: 1.4rem; font-weight: 900; letter-spacing: -.02em; }
.site-title a { color: var(--e360-navy); }
.site-title a:hover { color: var(--e360-violet); text-decoration: none; }
.site-description { margin: 0; font-size: .85rem; color: var(--e360-muted); }

/* ----------------------------------------------------------------------------
   8. Navigation (desktop + accessible mobile drawer)
   ---------------------------------------------------------------------------- */
.main-navigation { display: flex; align-items: center; }
.main-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-navigation li { position: relative; }
.main-navigation a {
  display: block; padding: 10px 14px; color: var(--e360-text-soft);
  font-weight: 600; border-radius: var(--e360-radius-sm);
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
  color: var(--e360-primary); background: var(--e360-bg-soft); text-decoration: none;
}
/* Sub-menus */
.main-navigation ul ul {
  position: absolute; inset-inline-start: 0; top: 100%; z-index: 50;
  flex-direction: column; gap: 2px; min-width: 220px; padding: 8px;
  background: var(--e360-surface); border: 1px solid var(--e360-line);
  border-radius: var(--e360-radius); box-shadow: var(--e360-shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.main-navigation li:hover > ul,
.main-navigation li:focus-within > ul { opacity: 1; visibility: visible; transform: translateY(0); }
.main-navigation ul ul a { padding: 9px 12px; }

/* Hamburger toggle (hidden on desktop) */
.menu-toggle {
  display: none; background: transparent; border: 1.5px solid var(--e360-line);
  border-radius: var(--e360-radius-sm); padding: 9px; color: var(--e360-navy);
}
.menu-toggle svg { width: 24px; height: 24px; }

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .main-navigation {
    position: fixed; inset: var(--e360-header-h) 0 0 0; z-index: 998;
    display: block; padding: 18px var(--e360-gutter);
    background: var(--e360-surface); border-top: 1px solid var(--e360-line);
    overflow-y: auto; transform: translateY(-130%);
    transition: transform .28s cubic-bezier(.22,1,.36,1);
  }
  .main-navigation.is-open { transform: translateY(0); }
  .main-navigation ul { flex-direction: column; gap: 2px; }
  .main-navigation a { padding: 13px 14px; font-size: 1.05rem; }
  .main-navigation ul ul {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; padding-inline-start: 14px; min-width: 0;
    background: transparent;
  }
}

/* ----------------------------------------------------------------------------
   9. Content / posts
   ---------------------------------------------------------------------------- */
.entry-header { margin-bottom: 1.4rem; }
.entry-title { margin: 0; }
.entry-title a { color: inherit; }
.entry-meta { color: var(--e360-muted); font-size: .9rem; margin-top: .4rem; }
.entry-meta a { color: var(--e360-muted); }
.entry-content > *:first-child { margin-top: 0; }
.post-thumbnail { display: block; margin-bottom: 1.4rem; border-radius: var(--e360-radius-lg); overflow: hidden; }
.post-thumbnail img { width: 100%; object-fit: cover; }

.e360-post-card {
  background: var(--e360-surface); border: 1px solid var(--e360-line);
  border-radius: var(--e360-radius-lg); overflow: hidden; box-shadow: var(--e360-shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease; margin-bottom: 2rem;
}
.e360-post-card:hover { box-shadow: var(--e360-shadow); transform: translateY(-2px); }
.e360-post-card .entry-header,
.e360-post-card .entry-summary,
.e360-post-card .entry-footer { padding-inline: clamp(18px, 3vw, 28px); }
.e360-post-card .entry-header { padding-top: clamp(18px, 3vw, 26px); }
.e360-post-card .entry-footer { padding-bottom: clamp(18px, 3vw, 26px); }

.read-more { display: inline-flex; font-weight: 700; }
.posts-navigation, .post-navigation, .pagination, .nav-links {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2rem;
}
.page-numbers {
  display: inline-flex; min-width: 42px; height: 42px; align-items: center; justify-content: center;
  padding: 0 12px; border: 1px solid var(--e360-line); border-radius: var(--e360-radius-sm);
  font-weight: 700; color: var(--e360-text-soft);
}
.page-numbers.current, .page-numbers:hover { background: var(--e360-gradient); color: #fff; border-color: transparent; text-decoration: none; }
.page-title { margin-bottom: 1.6rem; }

/* ----------------------------------------------------------------------------
   10. Sidebar & widgets
   ---------------------------------------------------------------------------- */
.widget { margin-bottom: 2rem; }
.widget-title { font-size: 1.05rem; margin-bottom: 1rem; padding-bottom: .6rem; border-bottom: 2px solid var(--e360-line); }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: .35rem 0; border-bottom: 1px solid var(--e360-line); }
.widget li:last-child { border-bottom: 0; }

/* ----------------------------------------------------------------------------
   11. Comments
   ---------------------------------------------------------------------------- */
.comments-area { margin-top: 3rem; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .children { list-style: none; padding-inline-start: clamp(16px, 4vw, 40px); }
.comment-body {
  background: var(--e360-surface); border: 1px solid var(--e360-line);
  border-radius: var(--e360-radius); padding: 1rem 1.2rem; margin-bottom: 1rem;
}
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.comment-author .avatar { border-radius: 50%; }

/* ----------------------------------------------------------------------------
   12. Site footer
   ---------------------------------------------------------------------------- */
.site-footer { flex-shrink: 0; margin-top: auto; background: var(--e360-navy); color: #cbd5e1; }
.site-footer a { color: #e2e8f0; }
.site-footer a:hover { color: #fff; }
.site-footer__widgets {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(24px, 4vw, 48px); padding-block: clamp(40px, 6vw, 64px);
}
.site-footer .widget-title { color: #fff; border-bottom-color: rgba(255,255,255,.12); }
.site-footer .widget li { border-bottom-color: rgba(255,255,255,.08); }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-block: 22px; display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center; justify-content: space-between; font-size: .9rem;
}
.site-footer__bottom .e360-brand { font-weight: 800; color: #fff; letter-spacing: -.01em; }

/* ----------------------------------------------------------------------------
   13. Hero (front page, optional & content-driven)
   ---------------------------------------------------------------------------- */
.e360-hero { background: var(--e360-gradient); color: #fff; padding-block: clamp(48px, 9vw, 110px); }
.e360-hero h1 { color: #fff; }
.e360-hero p { color: rgba(255,255,255,.92); font-size: 1.15rem; max-width: 60ch; }
.e360-hero .button { background: #fff; color: var(--e360-primary); }
.e360-hero .button:hover { background: #fff; color: var(--e360-violet); }

/* ----------------------------------------------------------------------------
   14. WooCommerce — light theme alignment only.
   (EVENT360's own checkout.css is injected inline AFTER theme CSS and keeps
    full control of the checkout look; we only avoid visual clashes here.)
   ---------------------------------------------------------------------------- */
.woocommerce .content-area, .woocommerce-page .content-area { padding-block: clamp(28px, 5vw, 56px); }
.woocommerce a.button, .woocommerce button.button, .woocommerce #respond input#submit,
.woocommerce .button.alt {
  background: var(--e360-gradient); color: #fff; border: none; border-radius: var(--e360-radius-sm); font-weight: 700;
}
.woocommerce span.onsale { background: var(--e360-violet); border-radius: 999px; }

/* ----------------------------------------------------------------------------
   15. Helpers
   ---------------------------------------------------------------------------- */
.alignwide { width: min(100%, 1100px); margin-inline: auto; }
.alignfull { width: 100%; }
.aligncenter { margin-inline: auto; }
.sticky, .bypostauthor { display: block; }

/* ----------------------------------------------------------------------------
   16. Print
   ---------------------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .main-navigation, .menu-toggle { display: none !important; }
  body { color: #000; background: #fff; }
}
