﻿/* =====================================================
   zoom-baratok.hu – 10/10 CSÁJOS, VILÁGOS, OLVASHATÓ
   - világos háttér
   - fekete / nagyon sötét szöveg
   - pasztell pink/lila/mint akcentek
   ===================================================== */

:root{
  /* Backgrounds */
  --bg-main: #fff7fc;
  --bg-grad-1: #ffe6f4;
  --bg-grad-2: #e9fbff;

  --card: #ffffff;
  --card-soft: #fff0f8;
  --card-soft-2: #f3fbff;

  /* Text (readable on light bg) */
  --text: #121212;
  --text-2: #2a2a2a;
  --muted: #5a5a5a;

  /* Accents */
  --pink: #ff4fa3;
  --pink-2: #ff82c2;
  --purple: #8b5cf6;
  --mint: #22c55e;
  --aqua: #2ec4ff;
  --yellow: #ffd56a;

  /* UI */
  --border: rgba(0,0,0,0.10);
  --shadow: 0 18px 50px rgba(255, 79, 163, 0.18);
  --shadow-2: 0 10px 25px rgba(0,0,0,0.08);

  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

*{ box-sizing:border-box; }

html, body { height:100%; }

body{
  margin:0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(1000px 520px at 10% 0%, var(--bg-grad-1), transparent 60%),
    radial-gradient(900px 480px at 90% 10%, var(--bg-grad-2), transparent 55%),
    linear-gradient(180deg, var(--bg-main), #ffffff);
}

/* ========== Layout ========== */

.container{
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px;
}

.card{
  background: var(--card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(255, 79, 163, 0.12);
}

/* ========== Topbar ========== */

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 18px 22px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(255,79,163,1) 0%, rgba(139,92,246,1) 55%, rgba(46,196,255,1) 110%);
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: .3px;
}

.brand::before{
  content:"💃";
  font-size: 20px;
  line-height: 1;
}

.badge{
  font-weight: 700;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(6px);
}

/* ========== Navigation ========== */

.nav{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  justify-content:flex-end;
}

.nav a{
  text-decoration:none;
  color: #fff;
  font-weight: 800;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.20);
  border: 1px solid rgba(255,255,255,0.22);
  transition: transform .15s ease, background .15s ease, color .15s ease;
}

.nav a:hover{
  background: #fff;
  color: var(--pink);
  transform: translateY(-1px);
}

/* ========== Header image ========== */

.header-img{
  width:100%;
  height: 290px;
  object-fit: cover;
  display:block;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

/* ========== Content typography ========== */

.content{
  padding: 26px;
}

h1{
  margin: 0 0 10px 0;
  font-size: 32px;
  color: var(--text);
  letter-spacing: .2px;
}

h1::after{
  content:"";
  display:block;
  height: 6px;
  width: 120px;
  border-radius: 999px;
  margin-top: 10px;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--aqua));
  opacity: 0.9;
}

h2{
  margin: 0 0 10px 0;
  font-size: 20px;
  color: var(--text);
}

p{
  margin: 0 0 12px 0;
  color: var(--muted);
  line-height: 1.65;
}

/* ========== Article cards ========== */

.article{
  position:relative;
  margin: 16px 0;
  padding: 18px 18px 16px 18px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255,79,163,0.10), rgba(255,255,255,1) 55%);
  border: 1px solid rgba(255,79,163,0.18);
  box-shadow: var(--shadow-2);
}

.article::before{
  content:"";
  position:absolute;
  left: 16px;
  top: 16px;
  width: 10px;
  height: calc(100% - 32px);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--pink), var(--purple), var(--aqua));
  opacity: 0.95;
}

.article > *{
  margin-left: 18px; /* hely a csík miatt */
}

.article .meta{
  margin-top: 10px;
  font-size: 12px;
  color: rgba(0,0,0,0.55);
}

/* HTML tartalom olvashatóság (adminból jövő <p>, <ul> stb.) */
.article p, .article li{
  color: var(--text-2);
}
.article a{
  color: var(--pink);
  font-weight: 800;
}
.article a:hover{
  text-decoration: underline;
}

/* ========== Buttons ========== */

.btn{
  display:inline-block;
  text-decoration:none;
  font-weight: 900;
  color:#fff;
  padding: 10px 20px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  box-shadow: 0 12px 26px rgba(255, 79, 163, 0.28);
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}

.btn:hover{
  transform: translateY(-1px) scale(1.02);
  filter: brightness(1.02);
  box-shadow: 0 18px 32px rgba(255, 79, 163, 0.34);
}

/* ========== Forms ========== */

.form-row{
  display:flex;
  flex-wrap:wrap;
  gap: 12px;
  margin: 12px 0;
  align-items:center;
}

input, textarea, select{
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 2px solid rgba(0,0,0,0.08);
  background: #fff;
  color: var(--text);
  font-size: 15px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.04);
  transition: border-color .15s ease, box-shadow .15s ease;
}

input::placeholder, textarea::placeholder{
  color: rgba(0,0,0,0.45);
}

input:focus, textarea:focus, select:focus{
  outline: none;
  border-color: rgba(255,79,163,0.55);
  box-shadow: 0 0 0 5px rgba(255,79,163,0.14);
}

textarea{
  min-height: 170px;
}

.small{
  max-width: 280px;
}

label{
  color: var(--text);
  font-weight: 700;
}

/* Checkbox look (szebb, de marad natív) */
input[type="checkbox"]{
  width: 18px;
  height: 18px;
  accent-color: var(--pink);
}

/* ========== Tables ========== */

.table{
  width:100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}

.table th{
  text-align:left;
  font-weight: 900;
  color: var(--text);
  padding: 6px 10px;
}

.table td{
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 12px 12px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  vertical-align: top;
}

/* ========== Notices ========== */

.notice{
  padding: 14px 16px;
  border-radius: 18px;
  font-weight: 900;
  margin: 10px 0 16px 0;
  border: 1px solid rgba(0,0,0,0.08);
}

.notice.ok{
  background: linear-gradient(90deg, rgba(34,197,94,0.12), rgba(255,255,255,1));
  color: #0f5132;
  border-left: 8px solid var(--mint);
}

.notice.err{
  background: linear-gradient(90deg, rgba(255,79,163,0.14), rgba(255,255,255,1));
  color: #7a0033;
  border-left: 8px solid var(--pink);
}

/* ========== HR ========== */

hr{
  border:0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,79,163,0.35), rgba(139,92,246,0.28), transparent);
  margin: 22px 0;
}

/* ========== Small responsive tweaks ========== */

@media (max-width: 700px){
  .topbar{ flex-direction: column; align-items:flex-start; }
  .nav{ justify-content:flex-start; }
  .header-img{ height: 220px; }
  .content{ padding: 18px; }
  h1{ font-size: 26px; }
}

/* ===== NAV VISIBILITY FIX (light background safe) ===== */

/* 1) Alapból (ha a nav nem a topbar-on van): sötét szöveg + világos háttér */
.nav a{
  color: #121212 !important;
  background: rgba(255,255,255,0.92) !important;
  border: 1px solid rgba(0,0,0,0.10) !important;
  box-shadow: 0 8px 18px rgba(0,0,0,0.06) !important;
}

/* 2) Hover alapból: maradjon olvasható */
.nav a:hover{
  color: #121212 !important;
  background: rgba(255, 240, 248, 1) !important; /* halvány rózsaszín */
  border-color: rgba(255,79,163,0.35) !important;
}

/* 3) Ha tényleg a topbar-on belül van: fehér szöveg (ott a háttér színes) */
.topbar .nav a{
  color: #ffffff !important;
  background: rgba(255,255,255,0.20) !important;
  border: 1px solid rgba(255,255,255,0.22) !important;
  box-shadow: none !important;
}

/* 4) Topbar-on hover: fehérből pinkes szöveg fehér háttéren */
.topbar .nav a:hover{
  background: #ffffff !important;
  color: #ff4fa3 !important;
  border-color: rgba(255,255,255,0.55) !important;
}
