/* ═══════════════════════════════════════════════════════════════════
   site.css — shared styles for CrOcIRON.EU
   ═══════════════════════════════════════════════════════════════════ */

/* ── Animations ───────────────────────────────────────────────────── */
@keyframes gradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Base ─────────────────────────────────────────────────────────── */
body {
  font-size: 18px;
  background-color: #333;
  font-family: Arial, sans-serif;
  text-align: center;
  padding: 20px;
  margin-top: 100px;
  padding-bottom: 60px;
}

h1 {
  color: #F0F0F0;
  margin: 0;
  padding: 20px 0;
  text-shadow: 2px 2px 5px #9e9e9e;
}

h2 {
  color: #F0F0F0;
  margin: 0;
  padding: 16px 0 6px;
  font-size: 1.2em;
  text-shadow: 2px 2px 5px #9e9e9e;
}

p {
  margin: 0;
  padding: 10px 0;
  color: #F0F0F0;
}

/* ── Particle canvas ──────────────────────────────────────────────── */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── Main content (sits above canvas) ────────────────────────────── */
.main-content {
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s ease both;
}

/* ── Top bar ──────────────────────────────────────────────────────── */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(to right, #8e44ad, #2980b9, #8e44ad);
  background-size: 200% 200%;
  z-index: 999;
  animation: gradient 6s linear infinite;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 16px;
  box-sizing: border-box;
}

.time-display {
  display: flex;
  align-items: center;
  gap: 6px;
  color: white;
  font-size: 18px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}

.time-label {
  opacity: 0.85;
}

/* ── Logo ─────────────────────────────────────────────────────────── */
img.logo {
  position: fixed;
  top: 4px;
  left: 7px;
  z-index: 999;
  width: 109px;
  height: 42px;
}

/* ── Footer ───────────────────────────────────────────────────────── */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  background-color: rgba(30, 30, 30, 0.85);
  text-align: center;
  font-size: 12px;
  color: #777;
  z-index: 998;
}

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

/* ── Buttons ──────────────────────────────────────────────────────── */
a.btn {
  display: inline-block;
  font-size: 18px;
  padding: 20px 40px;
  border-radius: 10px;
  background: linear-gradient(to right, #8e44ad, #2980b9, #8e44ad);
  background-size: 200% 200%;
  color: #F0F0F0;
  border: none;
  cursor: pointer;
  margin: 10px;
  transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
  animation: gradient 6s linear infinite;
  text-decoration: none;
}

a.btn:hover {
  transform: scale(1.08);
  filter: brightness(1.2);
}

/* ── Video embed ──────────────────────────────────────────────────── */
.video-wrapper {
  width: 100%;
  max-width: 560px;
  margin: 10px auto;
  border-radius: 10px;
  overflow: hidden;
}

.video-wrapper iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  margin: 0;
}

/* ── Cookie consent banner ────────────────────────────────────────── */
.cookies-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #1e1e1e;
  border-top: 2px solid #8e44ad;
  padding: 16px 20px;
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

.cookies-inner {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cookies-text {
  flex: 1 1 300px;
  text-align: left;
  color: #ccc;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  padding: 0;
}

.cookies-text a {
  color: #b57bee;
  text-decoration: underline;
}

.cookies-text strong {
  color: #F0F0F0;
  font-size: 14px;
}

.cookies-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookies-button {
  font-size: 14px;
  font-weight: bold;
  padding: 10px 22px;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: filter 0.2s ease;
}

.cookies-accept {
  background: linear-gradient(to right, #8e44ad, #2980b9);
  color: #F0F0F0;
}

.cookies-deny {
  background: transparent;
  color: #aaa;
  border: 1px solid #555 !important;
}

.cookies-button:hover {
  filter: brightness(1.25);
}

/* ── Policy pages ─────────────────────────────────────────────────── */
.policy-text {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  color: #ccc;
  line-height: 1.6;
  padding: 8px 0;
}

.policy-text a {
  color: #b57bee;
}

ul.policy-list {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
  color: #ccc;
  padding-left: 24px;
  line-height: 1.8;
}

/* ── Cookies policy table ─────────────────────────────────────────── */
.cookie-table {
  width: 100%;
  max-width: 720px;
  margin: 12px auto;
  border-collapse: collapse;
  color: #ccc;
  font-size: 0.9em;
  text-align: left;
}

.cookie-table th {
  background-color: rgba(142, 68, 173, 0.3);
  color: #F0F0F0;
  padding: 10px 14px;
  border-bottom: 1px solid #555;
}

.cookie-table td {
  padding: 9px 14px;
  border-bottom: 1px solid #444;
  vertical-align: top;
}

.cookie-table tr:last-child td {
  border-bottom: none;
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media only screen and (max-width: 600px) {
  body {
    font-size: 14px;
    margin-top: 50px;
    padding-bottom: 100px;
  }

  h1 { font-size: 24px; }

  p { font-size: 12px; }

  a.btn {
    font-size: 14px;
    padding: 10px 20px;
  }

  .time-label { display: none; }

  .cookies-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-table td,
  .cookie-table th {
    padding: 7px 8px;
    font-size: 12px;
  }
}
