﻿/* ===============================
   Pipihusinokival – Travian-ish UI
   theme/style.css (FULL)
   =============================== */

:root{
  /* Travian palette */
  --bg1:#2a160c;
  --bg2:#3a2213;
  --paper1:#f6ead2;
  --paper2:#ead7b6;

  --gold1:#e0c07a;
  --gold2:#b89452;
  --gold3:#8b6a32;

  --wood1:#3c2416;
  --wood2:#2a160c;

  --text-dark:#3a2213;
  --text-mid:#6b4f2d;
  --text-light:#fff8e8;

  --danger-bg:#f8d7da;
  --danger-border:#7e1d14;
  --danger-text:#7e1d14;

  --ok-bg:#e6f4ea;
  --ok-border:#2e7d32;
  --ok-text:#1b5e20;

  --shadow: 0 18px 40px rgba(0,0,0,.45);
  --radius: 14px;
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text-light);

  background:
    radial-gradient(900px 520px at 30% 20%, rgba(224,192,122,.18), transparent 60%),
    radial-gradient(900px 520px at 75% 40%, rgba(184,148,82,.14), transparent 55%),
    radial-gradient(1000px 700px at 50% 120%, rgba(0,0,0,.55), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
}

a{color:inherit}
img{max-width:100%;display:block}

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

.wrap{
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 14px 60px; /* feljebb */
}

.grid{
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 12px;
  align-items:start;
}

@media (max-width: 980px){
  .grid{grid-template-columns:1fr}
}

/* ==========
   Header / Brand (ha használnád)
   ========== */

.site-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin: 10px 0 14px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
}

.logo{
  width:42px;
  height:42px;
  border-radius:10px;
  overflow:hidden;
  border:2px solid rgba(184,148,82,.55);
  background: rgba(255,248,232,.85);
  box-shadow: 0 10px 26px rgba(0,0,0,.25);
}

.logo img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.brand-title{
  margin:0;
  font-size: 16px;
  font-weight: 900;
  color: var(--text-light);
  letter-spacing:.2px;
  text-shadow:0 1px 0 rgba(0,0,0,.4);
}

.brand-subtitle{
  margin:3px 0 0;
  font-size: 12px;
  color: rgba(255,248,232,.78);
}

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

.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  cursor:pointer;
  text-decoration:none;

  background: linear-gradient(#b52c1a,#7a1c12);
  color: #fff8e8;

  border: 2px solid #5e130d;
  border-radius: 10px;

  padding: 9px 14px;
  font-weight: 900;
  box-shadow: 0 3px 0 #3d0a06, 0 10px 22px rgba(0,0,0,.25);
  transition: transform .12s ease, filter .12s ease;
}

.btn:hover{filter:brightness(1.05); transform: translateY(-1px);}
.btn:active{transform: translateY(0px); box-shadow:0 2px 0 #3d0a06, 0 6px 14px rgba(0,0,0,.2);}

.btn.ghost{
  background: linear-gradient(180deg, rgba(255,248,232,.16), rgba(255,248,232,.05));
  border: 1px solid rgba(184,148,82,.55);
  color: rgba(255,248,232,.9);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.15);
  font-weight: 850;
}

.btn.ghost:hover{filter:brightness(1.06);}

/* ==========
   Panel / Paper card
   ========== */

.panel{
  border-radius: 18px; /* kerekebb */
  border: 2px solid rgba(184,148,82,.45);
  background: rgba(255,248,232,.08);
  box-shadow: var(--shadow);
  overflow:hidden;
}

.panel-inner{
  padding: 18px;
}

/* Titles */
.section-title{
  margin:0 0 6px;
  font-size: 22px;
  font-weight: 950;
  letter-spacing:.2px;
  color: rgba(255,226,166,.95);
  text-shadow: 0 1px 0 rgba(0,0,0,.35);
}

.section-subtitle{
  margin: 0;
  color: rgba(255,248,232,.78);
  font-size: 13px;
  line-height: 1.45;
}

.hr{
  height:1px;
  background: rgba(255,248,232,.16);
  margin: 14px 0;
}

/* ==========
   Mini cards
   ========== */

.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

@media (max-width: 980px){
  .cards{grid-template-columns:1fr}
}

.mini{
  border: 1px solid rgba(184,148,82,.35);
  border-radius: 12px;
  background: rgba(0,0,0,.16);
  padding: 12px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.10);
}

.mini h3{
  margin: 0 0 6px;
  font-size: 13px;
  letter-spacing:.2px;
  color: rgba(255,226,166,.92);
}

.mini p{
  margin:0;
  color: rgba(255,248,232,.78);
  font-size: 12px;
  line-height: 1.35;
}

/* ==========
   List (knowledge base)
   ========== */

.list{
  padding:0;
  margin: 12px 0 0;
  list-style:none;
  border-top: 1px solid rgba(255,248,232,.14);
}

.list li{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255,248,232,.10);
}

.list a{
  color: rgba(255,248,232,.9);
  text-decoration:none;
  border-bottom: 1px dashed rgba(255,248,232,.25);
}

.list a:hover{border-bottom-color: rgba(224,192,122,.85);}

.tag{
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(184,148,82,.55);
  background: rgba(0,0,0,.16);
  color: rgba(255,248,232,.86);
  white-space:nowrap;
}

/* ==========
   Messages
   ========== */

.msg{
  display:block;
  padding: 10px 12px;
  border-radius: 10px;
  border: 2px solid transparent;
  font-weight: 900;
}

.msg.ok{
  background: var(--ok-bg);
  border-color: var(--ok-border);
  color: var(--ok-text);
}

.msg.error{
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger-text);
}

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

.form label{
  display:block;
  margin: 10px 0 6px;
  font-weight: 900;
  color: rgba(255,226,166,.95);
}

.form input[type="text"],
.form input[type="password"],
.form input[type="email"],
.form input[type="number"],
.form select,
.form textarea{
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 2px solid rgba(184,148,82,.55);
  background: rgba(255,248,232,.92);
  color: var(--text-dark);
  outline:none;
  font-size: 14px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.12);
}

.form textarea{
  min-height: 140px;
  resize: vertical;
}

.form input:focus,
.form select:focus,
.form textarea:focus{
  border-color: rgba(224,192,122,.95);
  box-shadow: 0 0 0 3px rgba(224,192,122,.22), inset 0 1px 2px rgba(0,0,0,.12);
}

.kbd{
  display:inline-block;
  padding: 2px 8px;
  border-radius: 8px;
  border: 1px solid rgba(184,148,82,.55);
  background: rgba(255,248,232,.92);
  color: var(--text-dark);
  font-size: 12px;
  font-weight: 900;
}

/* ==========
   Footer
   ========== */

.site-footer{
  margin-top: 18px;
  display:flex;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  color: rgba(255,248,232,.7);
  font-size: 12px;
  padding: 0 2px;
}

.site-footer .links{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.site-footer a{
  color: rgba(255,226,166,.9);
  text-decoration:none;
  border-bottom: 1px dashed rgba(255,226,166,.35);
}
.site-footer a:hover{border-bottom-color: rgba(255,226,166,.9);}

/* =========================
   HUD (Top bar)
   ========================= */

.hud{
  position: sticky;
  top: 0;
  z-index: 50;

  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;

  padding: 10px 14px;

  /* Travian bar */
  background: linear-gradient(#f3e3c4, #e7d1a6);
  border-bottom: 3px solid #c6a05c;
  box-shadow: 0 10px 22px rgba(0,0,0,.25);

  color: var(--text-dark);

  /* “doboz” középre, kerek alul */
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 0 0 18px 18px;
  border-left: 1px solid rgba(156,122,62,.35);
  border-right: 1px solid rgba(156,122,62,.35);

  /* picit feljebb */
  transform: translateY(-4px);
}

@media (max-width: 760px){
  .hud{
    position: relative;
    border-radius: 0 0 14px 14px;
    transform: none;
  }
}

.hud-left{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:220px;
}

.hud-logo{
  width:46px;
  height:46px;
  border-radius:10px;
  border:2px solid #9c7a3e;
  background:#fff8e8;
  display:grid;
  place-items:center;
  overflow:hidden;
}

.hud-logo img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.hud-title{line-height:1.1}
.hud-clan{font-weight:950;font-size:16px;color:#3c2a1a;letter-spacing:.4px}
.hud-sub{font-size:12px;color:#6b4f2d}

/* ===============================
   TRAVIAN STYLE CIRCLE HUD MENU
   =============================== */

.hud-right{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.hud-icon{
  width: 66px;
  height: 66px;
  border-radius: 50%;

  background: radial-gradient(circle at 30% 30%, #f3e4c3, #c6a45d);
  border: 3px solid #7b5a22;

  display:flex;
  align-items:center;
  justify-content:center;

  box-shadow:
    0 4px 12px rgba(0,0,0,0.45),
    inset 0 2px 6px rgba(255,255,255,0.38);

  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  position: relative;
  overflow:hidden;
}

.hud-icon img{
  width: 66px;   /* 350-es kép, de mi 66-ra húzzuk */
  height: 66px;
  object-fit: contain;
  pointer-events:none;
  transform: scale(0.92); /* picit befelé */
}

.hud-icon:hover{
  transform: translateY(-2px) scale(1.05);
  box-shadow:
    0 8px 18px rgba(0,0,0,0.55),
    0 0 12px rgba(255,200,120,0.75);
  filter: brightness(1.03);
}

/* Primary (Csapat jelentés) */
.hud-icon-primary{
  background: radial-gradient(circle at 30% 30%, #d4452f, #7c1d10);
  border-color: #4e100a;
}

.hud-icon-primary:hover{
  box-shadow:
    0 8px 18px rgba(0,0,0,0.6),
    0 0 14px rgba(255,80,50,0.85);
}

/* Logout – vörös */
.hud-icon-logout{
  background: radial-gradient(circle at 30% 30%, #a23222, #52150e);
  border-color: #3a0e09;
}

/* Mobil */
@media (max-width: 768px){
  .hud-right{gap:8px; justify-content:flex-start;}
  .hud-icon{width:48px;height:48px;border-width:2px;}
  .hud-icon img{width:48px;height:48px; transform: scale(0.95);}
}

/* =========================
   Infostrip
   ========================= */

.infostrip{
  margin: 10px 0 14px;
  padding: 10px 12px;
  background: rgba(255,248,232,.92);
  border: 2px solid #c6a05c;
  border-radius: 10px;
  display:flex;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  color: var(--text-dark);
}

.infostrip-left{display:flex;align-items:center;gap:10px}
.badge-dot{
  width:10px;height:10px;border-radius:50%;
  background:#2e7d32;
  box-shadow:0 0 0 2px rgba(46,125,50,.25);
}
.infostrip-right{display:flex;gap:8px;flex-wrap:wrap}

/* =========================
   Login (centered)
   ========================= */

.login-shell{
  display:flex;
  justify-content:center;
  align-items:center;
  min-height: calc(100vh - 120px);
  position: relative;
  margin-top: 8px;
}

.login-shell::before{
  content:"";
  position:absolute;
  inset:0;
  background: url('/theme/img/pipihusinokival.png') center 70px no-repeat;
  background-size: 560px;
  opacity: 0.12;
  pointer-events:none;
}

@media (max-width: 900px){
  .login-shell::before{
    background-size: 360px;
    background-position:center 40px;
    opacity:0.10;
  }
}

/* Hero blokk elrejt */
.login-hero{display:none;}

.login-shell .panel{
  width: 100%;
  max-width: 520px;
  position: relative;
  z-index: 2;
}

/* pergamen panel */
.login-shell .panel-inner{
  background: linear-gradient(180deg,var(--paper1),var(--paper2));
  border: 3px solid var(--gold2);
  box-shadow:
    0 18px 40px rgba(0,0,0,.45),
    inset 0 0 0 2px rgba(255,255,255,.35);
  border-radius: 14px;
  padding: 22px;
}

.login-shell .section-title{
  color: #4a2d17;
  text-shadow:none;
}

.login-shell .section-subtitle{
  color: #6b4f2d;
}

.login-shell .form label{
  color:#4a2d17;
}

.login-shell .login-actions{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  margin-top: 14px;
}

.login-shell .login-help{
  color:#6b4f2d;
  font-size:13px;
}

@media (max-width: 600px){
  .login-shell .btn{width:100%;}
  .login-shell .login-help{width:100%;}
}

/* =====================================================
   HUD MOBILE STACKED VERSION
   Title alatt ikon sor
   ===================================================== */

@media (max-width: 900px){

  .hud{
    flex-direction:column;
    align-items:stretch;
    gap:10px;
    padding:10px 12px;
  }

  .hud-left{
    justify-content:flex-start;
  }

  .hud-title{
    width:100%;
  }

  /* IKONOK új sorban */
  .hud-right-wrap{
    width:100%;
    max-width:100%;
    overflow:visible;
  }

  .hud-right{
    width:100%;
    justify-content:center;
    flex-wrap:wrap;
    gap:10px;
  }

  .hud-icon{
    width:52px;
    height:52px;
  }

  .hud-icon img{
    width:52px;
    height:52px;
  }
}

/* nagyon kicsi kijelző */
@media (max-width: 520px){

  .hud-clan{
    font-size:14px;
  }

  .hud-sub{
    font-size:11px;
  }

  .hud-icon{
    width:46px;
    height:46px;
  }

  .hud-icon img{
    width:46px;
    height:46px;
  }
}