/*
Theme Name: TicketsFest
Theme URI: https://ticketsfest.eu/
Author: TicketsFest
Description: TicketsFest standalone theme (design system + CPT templates).
Version: 1.0.0
Text Domain: ticketsfest
*/

/* =====================================================
   TicketsFest Design System
   ===================================================== */

:root{
  --tfe-primary:#1d4ed8;
  --tfe-primary-2:#2563eb;
  --tfe-dark:#0f172a;
  --tfe-muted:#64748b;
  --tfe-bg:#f8fafc;
  --tfe-white:#ffffff;
  --tfe-soft:#eff6ff;
  --tfe-border:rgba(226,232,240,.9);
  --tfe-radius:24px;
  --tfe-radius-xl:32px;
  --tfe-shadow:0 10px 40px -10px rgba(15,23,42,.08);
  --tfe-font:'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --tfe-container:1320px;
  --tfe-pad:20px;
}

*,*::before,*::after{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  min-height:100vh;
  background:var(--tfe-bg);
  color:var(--tfe-dark);
  font-family:var(--tfe-font);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
img{ max-width:100%; height:auto; }
a{ color:var(--tfe-primary); text-decoration:none; }
a:hover{ text-decoration:underline; }

#page, #content, .site-content{ width:100%; max-width:100%; overflow-x:hidden; }

.tfe-container,
.footer-wrapper{
  width:100%;
  max-width:var(--tfe-container);
  margin:0 auto;
  padding:0 var(--tfe-pad);
}

.tfe-page-wrap{ padding:0 0 60px; }

.tfe-card{
  background:var(--tfe-white);
  border:1px solid var(--tfe-border);
  border-radius:var(--tfe-radius);
  box-shadow:0 10px 30px -20px rgba(15,23,42,.18);
  padding:18px;
}

/* =========================================================
   HEADER (Floating Glass)
   ========================================================= */

.tfe-header-wrap{
  position: sticky;
  top: calc(20px + env(safe-area-inset-top));
  z-index: 1000;

  background: rgba(255,255,255,.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  border-radius: 60px;
  border: 1px solid rgba(255,255,255,.6);

  width: 94%;
  max-width: 1240px;
  margin: 0 auto 40px auto;
  margin-top: calc(20px + env(safe-area-inset-top));
  height: 70px;

  box-shadow: var(--tfe-shadow);
  transition: all .3s ease;
}

.tfe-header-inner{
  width:100%;
  height:100%;
  padding:0 30px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.tfe-logo{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  z-index:1001;
}
.tfe-logo img{
  height:38px;
  width:auto;
  display:block;
  transition:transform .2s;
}
.tfe-logo:hover img{ transform:scale(1.05); }

.tfe-logo-text{
  font-weight:900;
  font-size:22px;
  color:var(--tfe-dark);
  letter-spacing:-.02em;
  white-space:nowrap;
}
.tfe-logo-accent{ color:var(--tfe-primary); }

.tfe-nav-container{ display:none; }
@media (min-width:1025px){
  .tfe-nav-container{ display:flex; align-items:center; gap:20px; }

  .tfe-desktop-nav ul{
    display:flex; gap:4px;
    list-style:none; margin:0; padding:0; align-items:center;
  }
  .tfe-desktop-nav a{
    color:var(--tfe-dark);
    font-weight:600;
    font-size:14px;
    padding:10px 18px;
    border-radius:50px;
    transition:all .2s ease;
    background:transparent;
    text-decoration:none;
  }
  .tfe-desktop-nav a:hover{
    background: rgba(29,78,216,.08);
    color: var(--tfe-primary);
    text-decoration:none;
  }
  .tfe-desktop-nav .current-menu-item > a,
  .tfe-desktop-nav .current_page_item > a{
    background: var(--tfe-primary);
    color:#fff;
    box-shadow: 0 4px 12px rgba(29,78,216,.3);
    text-decoration:none;
  }

  .tfe-lang-switcher{
    display:flex; gap:5px;
    background:#f1f5f9;
    padding:4px;
    border-radius:30px;
  }
  .tfe-lang-item{
    font-size:11px;
    font-weight:800;
    color:#64748b;
    padding:6px 10px;
    border-radius:20px;
    transition:.2s;
    text-decoration:none;
  }
  .tfe-lang-item:hover{ color:var(--tfe-primary); text-decoration:none; }
  .tfe-lang-item.is-active{
    background:#fff;
    color:var(--tfe-primary);
    box-shadow:0 2px 5px rgba(0,0,0,.05);
  }
}

.tfe-burger{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width:40px; height:40px;
  background:transparent;
  border:none;
  cursor:pointer;
  padding:0;
  align-items:flex-end;
  -webkit-tap-highlight-color:transparent;
}
.tfe-burger span{
  display:block;
  width:24px;
  height:2.5px;
  background-color:var(--tfe-dark);
  border-radius:3px;
  transition:.3s;
}
.tfe-burger span:nth-child(2){
  width:16px;
  background-color:var(--tfe-primary);
}
@media (min-width:1025px){ .tfe-burger{ display:none; } }

/* Mobile overlay */
.tfe-mobile-overlay{
  position:fixed; top:0; left:0;
  width:100%; height:100dvh;
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(20px);
  z-index: 99999;

  padding:24px;
  padding-top: calc(24px + env(safe-area-inset-top));

  opacity:0; visibility:hidden; pointer-events:none;
  transform: scale(.95);
  transition: all .3s cubic-bezier(.4,0,.2,1);

  display:flex; flex-direction:column;
}
.tfe-mobile-overlay.is-active{
  opacity:1; visibility:visible; pointer-events:all;
  transform: scale(1);
}

.tfe-mobile-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  height:60px;
  margin-bottom:20px;
  border-bottom:2px solid var(--tfe-soft);
  flex-shrink:0;
}
.tfe-menu-title{
  font-weight:800;
  font-size:20px;
  color:var(--tfe-dark);
  text-transform:uppercase;
}
.tfe-mobile-lang{
  display:flex; gap:10px; margin-right:15px;
}
.tfe-mobile-lang a{
  text-decoration:none;
  font-size:14px;
  font-weight:800;
  color:#94a3b8;
  padding:5px 10px;
  border-radius:8px;
  border:1px solid rgba(226,232,240,.9);
}
.tfe-mobile-lang a.is-active{
  color:var(--tfe-primary);
  border-color:var(--tfe-primary);
  background:var(--tfe-soft);
}
.tfe-close-btn{
  width:44px; height:44px;
  background:var(--tfe-soft);
  border-radius:50%;
  border:none;
  cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  font-size:26px;
  color:var(--tfe-primary);
  line-height:1;
  transition:.2s;
}
.tfe-close-btn:hover{
  background:var(--tfe-primary);
  color:#fff;
  transform: rotate(90deg);
}

.tfe-mobile-list{ width:100%; overflow-y:auto; -webkit-overflow-scrolling:touch; flex-grow:1; }
.tfe-mobile-list ul{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:8px; }
.tfe-mobile-list a{
  display:block;
  font-size:20px;
  font-weight:700;
  color:var(--tfe-dark);
  padding:12px 0;
  text-decoration:none;
  border-bottom:1px dashed rgba(226,232,240,.9);
  transition: all .2s ease;
}
.tfe-mobile-list a:hover{
  color:var(--tfe-primary);
  padding-left:10px;
  border-bottom-style:solid;
  border-bottom-color:var(--tfe-primary);
}

.tfe-mobile-footer{
  margin-top:20px;
  padding-top:20px;
  border-top:1px solid var(--tfe-soft);
  display:flex;
  flex-direction:column;
  gap:15px;
  text-align:center;
  flex-shrink:0;
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
}
.tfe-social-row{ display:flex; gap:12px; justify-content:center; }
.tfe-social-icon{
  width:40px; height:40px;
  border-radius:50%;
  background:var(--tfe-soft);
  display:flex; align-items:center; justify-content:center;
  color:var(--tfe-primary);
  text-decoration:none;
  font-size:18px;
  transition:.2s;
}
.tfe-social-icon:hover{
  background:var(--tfe-primary);
  color:#fff;
  transform: translateY(-3px);
}
.tfe-contact-email{
  font-weight:700;
  color:var(--tfe-primary);
  text-decoration:none;
  font-size:18px;
}
.tfe-legal-info{
  font-size:12px;
  line-height:1.5;
  color:var(--tfe-muted);
}
.tfe-legal-name{ font-weight:700; color:var(--tfe-dark); display:block; margin-bottom:2px; }

@media (max-width:1024px){ .tfe-header-wrap{ width:96%; } }
@media (max-width:768px){
  .tfe-header-wrap{
    width:92%;
    height:60px;
    border-radius:40px;
    top: calc(10px + env(safe-area-inset-top));
    margin-top: calc(10px + env(safe-area-inset-top));
  }
  .tfe-header-inner{ padding:0 15px; }
  .tfe-logo img{ height:30px; }
  .tfe-logo-text{ font-size:18px; }
}

/* =========================================================
   FOOTER (Clean)
   ========================================================= */

.site-footer{
  background:#fff;
  color:var(--tfe-dark);
  padding:60px 0 30px;
  border-top:1px solid var(--tfe-border);
  width:100%;
  max-width:100vw;
  overflow-x:hidden;
}

.footer-grid{
  display:grid;
  grid-template-columns: 1.4fr .8fr .8fr 1.2fr;
  gap:40px;
  margin-bottom:50px;
}

.footer-brand-logo img{
  height:38px;
  width:auto;
  display:block;
  margin-bottom:15px;
}

.footer-legal-name{
  font-weight:800;
  font-size:14px;
  margin-bottom:4px;
  display:block;
}

.footer-address{
  color:var(--tfe-muted);
  font-size:13px;
  line-height:1.6;
}

.footer-heading{
  font-weight:800;
  font-size:15px;
  text-transform:uppercase;
  margin-bottom:18px;
  display:block;
  letter-spacing:.02em;
}

.footer-links{ list-style:none; padding:0; margin:0; }
.footer-links li{ margin-bottom:10px; }
.footer-links a{
  color:var(--tfe-muted);
  font-weight:500;
  font-size:14px;
  transition:.2s;
  text-decoration:none;
}
.footer-links a:hover{
  color:var(--tfe-primary);
  transform: translateX(3px);
  display:inline-block;
}

.email-compact{
  font-weight:700;
  color:var(--tfe-primary);
  text-decoration:none;
  font-size:16px;
  display:inline-block;
  margin-bottom:15px;
}

.social-inline{
  display:flex;
  gap:10px;
  margin-bottom:20px;
  flex-wrap:wrap;
}
.social-mini-btn{
  width:36px;
  height:36px;
  border-radius:50%;
  background:var(--tfe-soft);
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--tfe-primary);
  text-decoration:none;
  transition:.2s;
}
.social-mini-btn:hover{
  background:var(--tfe-primary);
  color:#fff;
  transform: translateY(-2px);
}

.footer-bottom{
  border-top:1px solid var(--tfe-border);
  padding-top:25px;
  font-size:13px;
  color:var(--tfe-muted);
  text-align:center;
  font-weight:500;
}

@media (max-width:900px){
  .footer-grid{ grid-template-columns:1fr 1fr; gap:40px 20px; }
  .footer-brand-col{
    grid-column:1 / -1;
    padding-bottom:20px;
    border-bottom:1px solid var(--tfe-soft);
  }
}
@media (max-width:600px){
  .footer-grid{ grid-template-columns:1fr; text-align:center; gap:35px; }
  .footer-brand-logo img{ margin:0 auto 10px; }
  .social-inline{ justify-content:center; }
}

/* =========================================================
   Minimal WP content defaults
   ========================================================= */

.entry-title{ margin:0 0 14px; }
.entry-content{ line-height:1.75; }
