/*
Theme Name: ECAVA-CoPla — Coming Soon
Theme URI: https://ecava-pace.eu/
Author: fka GPT
Description: A lightweight, responsive coming-soon theme for the ECAVA-CoPla collaboration platform. Includes DIGITAL call details, an ECAVA information link, and EU funding attribution.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: ecava-copla
*/

:root {
  --eu-blue: #003399;
  --eu-deep: #001c5c;
  --eu-yellow: #ffcc00;
  --ink: #11234a;
  --muted: #53627c;
  --paper: #ffffff;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--eu-deep); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.site-shell {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(ellipse at 51% 35%, #1250ba 0%, #073b9b 40%, #00256f 100%);
}

.flag-art {
  position: absolute;
  z-index: -2;
  inset: -13% -7%;
  background: url("assets/eu-flag.svg") center / min(70vw, 760px) auto no-repeat;
  opacity: .18;
  transform: perspective(900px) rotateX(2deg) rotateZ(-3deg) scale(1.14);
  animation: flag-drift 18s ease-in-out infinite alternate;
  pointer-events: none;
}
.flag-art::after {
  position: absolute;
  content: "";
  inset: 0;
  background: repeating-linear-gradient(105deg,
    transparent 0 7%, rgba(255,255,255,.07) 9%, transparent 13% 21%, rgba(0,12,57,.11) 25%, transparent 31%);
  background-size: 240% 100%;
  mix-blend-mode: soft-light;
  animation: silk-flow 11s ease-in-out infinite alternate;
}
.site-shell::before,
.site-shell::after {
  position: absolute;
  z-index: -1;
  content: "";
  width: 56rem;
  height: 56rem;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 50%;
  pointer-events: none;
}
.site-shell::before { top: -39rem; left: -20rem; }
.site-shell::after { right: -27rem; bottom: -44rem; width: 68rem; height: 68rem; }

.topbar {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0;
  color: #fff;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  font-size: .93rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-decoration: none;
  text-transform: uppercase;
}
.wordmark-mark {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--eu-yellow);
  box-shadow: 0 0 16px rgba(255,204,0,.6);
}

main {
  display: grid;
  flex: 1;
  place-items: center;
  padding: 28px 24px 48px;
}
.content-card {
  width: min(760px, 100%);
  padding: clamp(32px, 6vw, 66px);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 26px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 30px 90px rgba(0,13,57,.28);
  text-align: center;
  backdrop-filter: blur(12px);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  color: var(--eu-blue);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.5;
  text-transform: uppercase;
}
.eyebrow::before {
  width: 22px;
  height: 2px;
  background: var(--eu-yellow);
  content: "";
}
h1 {
  margin: 0;
  color: var(--eu-blue);
  font-size: clamp(2.65rem, 8vw, 5rem);
  font-weight: 750;
  letter-spacing: -.065em;
  line-height: .98;
}
.lead {
  max-width: 590px;
  margin: 23px auto 0;
  color: #23385d;
  font-size: clamp(1.08rem, 2.6vw, 1.35rem);
  line-height: 1.55;
}
.coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin: 33px 0 0;
  padding: 16px 25px;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 999px;
  background: var(--eu-blue);
  box-shadow: 0 10px 24px rgba(0,51,153,.24);
  color: #fff;
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  font-weight: 750;
}
.coming-soon::before {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--eu-yellow);
  box-shadow: 0 0 0 5px rgba(255,204,0,.2);
  content: "";
}
.ecava-link {
  margin: 14px 0 0;
  font-size: .9rem;
  line-height: 1.5;
}
.ecava-link a {
  color: var(--eu-blue);
  font-weight: 650;
}
.callout {
  margin: 30px auto 0;
  padding-top: 23px;
  border-top: 1px solid #e5eaf2;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.65;
}
.callout strong { color: #263b62; }
.call-id {
  display: inline-block;
  margin-top: 10px;
  padding: 5px 10px;
  border-radius: 5px;
  background: #edf3ff;
  color: var(--eu-blue);
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .025em;
}
.site-footer {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 25px;
  color: rgba(255,255,255,.83);
  text-align: center;
}
.funding-lockup {
  display: inline-block;
  width: min(340px, 78vw);
  height: auto;
  margin: 0 auto 17px;
  padding: 8px 10px;
  border-radius: 3px;
  background: #fff;
}
.disclaimer {
  max-width: 880px;
  margin: 0 auto;
  color: rgba(255,255,255,.82);
  font-size: .72rem;
  line-height: 1.55;
}

@keyframes flag-drift {
  from { transform: perspective(900px) rotateX(2deg) rotateZ(-3deg) scale(1.14) translate3d(-1.2%, .4%, 0); }
  to { transform: perspective(900px) rotateX(-1deg) rotateZ(-1deg) scale(1.18) translate3d(1.2%, -.5%, 0); }
}
@keyframes silk-flow {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

@media (max-width: 540px) {
  .topbar { width: calc(100% - 36px); padding: 21px 0; }
  main { padding: 20px 18px 34px; }
  .content-card { border-radius: 20px; }
  .site-footer { width: calc(100% - 36px); padding-bottom: 19px; }
  .flag-art { background-size: 118vw auto; opacity: .12; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
