/* public/assets/css/style.css */

/* ====================== */
/*   Alapszínek, változók */
/* ====================== */

:root {
    --rv-bg: #e5e7eb;
    --rv-header-bg: #ffffff;
    --rv-footer-bg: #f9fafb;
    --rv-surface: #ffffff;
    --rv-primary: #166534; /* Tisza-zöld */
    --rv-primary-soft: rgba(22, 101, 52, 0.08);
    --rv-primary-border: rgba(22, 101, 52, 0.20);
    --rv-text: #111827;
    --rv-text-muted: #6b7280;
    --rv-border-soft: #e5e7eb;
    --rv-radius-lg: 18px;
    --rv-radius-md: 12px;
    --rv-shadow-soft: 0 14px 30px rgba(15, 23, 42, 0.08);
}

/* ====================== */
/*   Általános beállítások */
/* ====================== */

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--rv-bg);
    color: var(--rv-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

main,
.rv-public-main {
    flex: 1 0 auto;
}

/* Alap link stílus */

a {
    color: var(--rv-primary);
    text-decoration: none;
}

a:hover {
    color: #115027;
    text-decoration: underline;
}

/* ====================== */
/*    P U B L I K U S     */
/* ====================== */

/* Fejléc – fehér, mint az adminnál */

.rv-public-body {
    background-color: var(--rv-bg);
}

.rv-public-header {
    background-color: var(--rv-header-bg);
    border-bottom: 1px solid rgba(148, 163, 184, 0.4);
}

.rv-public-header .navbar {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

.rv-public-header .navbar-brand {
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.95rem;
    color: var(--rv-primary) !important;
}

.rv-public-header .navbar-brand span {
    display: inline-block;
    font-weight: 400;
    font-size: 0.75rem;
    text-transform: none;
    letter-spacing: 0.02em;
    color: var(--rv-text-muted);
}

.rv-public-nav .nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    color: #374151;
    padding-inline: 0.9rem;
    border-radius: 999px;
    opacity: 0.9;
    transition: background-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.rv-public-nav .nav-link:hover,
.rv-public-nav .nav-link:focus {
    background-color: rgba(148, 163, 184, 0.18);
    color: #111827;
    opacity: 1;
}

.rv-public-header-btn {
    border-radius: 999px;
    font-size: 0.8rem;
    padding-inline: 1.1rem;
}

/* Tartalmi sáv */

.rv-public-main {
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
}

/* Hero a főoldalon – nincsen nagy színes háttér, csak „kártyás” érzet */

.rv-hero {
    margin-bottom: 1.5rem;
}

.rv-hero-title {
    font-size: clamp(1.9rem, 2.4vw, 2.2rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.rv-hero-lead {
    font-size: 0.98rem;
    color: var(--rv-text-muted);
    max-width: 40rem;
}

.rv-hero-btn {
  border-radius: 999px;
  padding-inline: 1.2rem;
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
}

/* Jobb oldali hero kártya – mint egy admin csempe nagyban */

.rv-hero-side {
    box-shadow: var(--rv-shadow-soft);
}

/* Szekciócímek */

.rv-section-title {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #6b7280;
}

/* Kártyák, csempék – admin hangulat */

.rv-card {
    border-radius: var(--rv-radius-lg);
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
    background: var(--rv-surface);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.rv-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.10);
    border-color: var(--rv-primary-border);
}

.rv-card-header {
    border-bottom: 1px solid var(--rv-border-soft);
    padding-bottom: 0.6rem;
    margin-bottom: 0.6rem;
}

.rv-card-title {
    font-size: 1rem;
    font-weight: 600;
}

/* Csempék */

.rv-tile {
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.rv-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.10);
    border-color: var(--rv-primary-border);
}

/* Hírek listája */

.rv-news-list .rv-news-item {
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.rv-news-list .rv-news-item:last-child {
    border-bottom: none;
}

.rv-news-date {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--rv-text-muted);
}

/* List-group finomítás */

.list-group-item {
    border-radius: 0;
    border-color: var(--rv-border-soft);
}

.list-group-item-action:hover {
    background-color: #f3f4ff;
}

/* Űrlapok, gombok */

.form-control,
.form-select {
    border-radius: 999px;
    border-color: #d1d5db;
}

textarea.form-control {
    border-radius: 18px;
}

.btn-primary {
    background-color: var(--rv-primary);
    border-color: var(--rv-primary);
}

.btn-primary:hover {
    background-color: #14532d;
    border-color: #14532d;
}

/* Lábléc – mint az admin */

.rv-public-footer {
    background: var(--rv-footer-bg);
    color: #6b7280;
    padding: 1.75rem 0;
    margin-top: 2rem;
    font-size: 0.85rem;
    border-top: 1px solid rgba(148, 163, 184, 0.4);
}

.rv-public-footer a {
    color: #374151;
}

.rv-public-footer a:hover {
    color: #111827;
}

/* Mobil finomhangolás */

@media (max-width: 767.98px) {
    .navbar-nav .nav-link {
        padding: 0.4rem 0.9rem;
        margin-bottom: 0.2rem;
    }
}

/* ====================== */
/*       A D M I N        */
/* ====================== */

body.admin-body {
  background: #e5e7eb;
}

.admin-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.admin-header {
  flex: 0 0 auto;
}

.admin-main {
  flex: 1 0 auto;
  padding-top: 1.25rem;
  padding-bottom: 2rem;
}

.admin-footer {
  flex: 0 0 auto;
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  background: #f9fafb;
}

.admin-navbar {
  background: #ffffff;
  border-bottom: 1px solid rgba(148, 163, 184, 0.4);
}

.admin-nav .nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: #374151;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  margin-right: 0.2rem;
}

.admin-nav .nav-link:hover {
  background-color: rgba(148, 163, 184, 0.18);
  color: #111827;
}

/* Vezérlőpult csempék */

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.admin-tile {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.admin-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.1);
  border-color: rgba(22, 101, 52, 0.4);
  text-decoration: none;
}

.admin-tile-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #111827;
}

.admin-tile-sub {
  font-size: 0.75rem;
  color: #6b7280;
}

.admin-tile-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: rgba(22, 101, 52, 0.08);
  color: #166534;
}
