:root{
  --blur-bg: rgba(0,0,0,8.55);
  --text-color: #000;
}

.modal-body {
  perspective: 1000px;
}

@media (prefers-reduced-motion: reduce) {
  .news-card {
    animation: none;
    transition: none;
  }
}

.gradient-text {
  background: linear-gradient(45deg, #1D7460, #20c997);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-alert {
  background: linear-gradient(45deg, #ba0913, #cdbe64 );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-bold {
  font-weight: bold;
}


/* karta */
.news-card {
  display: flex;
  gap: 15px;
  padding: 15px;
  border-radius: 14px;
  background: #ffffff;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: all 0.35s cubic-bezier(.2,.8,.2,1);
  border-left: 4px solid transparent;
  transform: translateY(6px);
  transform-style: preserve-3d;
  cursor: pointer;
  opacity: 1;
  --glow: rgba(32,201,151,0.3); /* default */
  will-change: transform;
}


/* aktivní stav */
.news-card.show {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.5s ease;
}

.news-card + .news-card {
    margin-top: 16px;
    box-shadow: 
    0 -2px 0 rgba(0,0,0,0.12), /* 🔥 silnější linka */
    0 8px 20px rgba(0,0,0,0.05);
}

.news-card + .news-card:hover {
  box-shadow: 
    0 -1px 0 rgba(32,201,151,0.3),
    0 12px 30px rgba(0,0,0,0.15);
}

.news-card + .news-card::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 15%;
  width: 70%;
  height: 1px;
  background: rgba(0,0,0,0.1);
}

.news-card.hidden {
  opacity: 0;
  transform: translateY(10px);
} 

.news-card:active {
  transform: scale(0.98);
}

.news-card h4{
      color: #1D7460;      
    }

.news-card h6 {
  font-weight: 600;
  margin-bottom: 5px;
}

.news-card p {
  font-size: 14px;
  color: #6c757d;
  line-height: 1.5;
}


.news-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.news-title h4 {
  margin: 0;
  font-size: 18px;
}

.news-title i {
  background: rgba(113,110,253,0.1);
  padding: 8px;
  border-radius: 50%;
}

.section-title {
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  color: #999;
  margin: 15px 0 8px;
}

/* hover */
.news-card:hover {
  transform:translateY(-6px);
  transition:
    transform 0.5s ease,
    box-shadow 0.5s ease;
  box-shadow: 
    0 20px 40px rgba(0,0,0,0.25),
    0 0 25px var(--glow),
    0 0 60px rgba(0,0,0,0.05);
}

.news-card > * {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* NEW (zelená) */
    
.news-card[data-type="new"]:hover {
  box-shadow: 
    0 20px 40px rgba(0,0,0,0.25),
    0 0 20px rgba(25,135,84,0.4);
}

/* DANGER (červená) */
.news-card[data-type="danger"]:hover {
  box-shadow: 
    0 20px 40px rgba(0,0,0,0.25),
    0 0 20px rgba(220,53,69,0.4);
}

/* WARNING (žlutá) */
.news-card[data-type="warning"]:hover {
  box-shadow: 
    0 20px 40px rgba(0,0,0,0.25),
    0 0 20px rgba(255,193,7,0.4);
}

/* JINÉ (modrá) */
.news-card[data-type="jine"]:hover {
  box-shadow: 
    0 20px 40px rgba(0,0,0,0.25),
    0 0 20px rgba(13,110,253,0.4);
}
    
.news-card:hover .news-left i {
  transform: scale(1.2);
}

.modal-footer {
  border-top: none;
}

/* FIX Bootstrap Icons */
.bi {
  font-family: "Font Awesome 6 Pro" !important;
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  font-size: 24px;
  vertical-align:unset;
  transition: 0.3s;
}


.news-title i {
  background: rgba(13,110,253,0.1);
  padding: 8px;
  border-radius: 50%;
}

.news-card:hover .bi {
  transform: scale(1.2);
}

.modal-backdrop.show {
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(12px);
  transition:.35s;
  opacity:1;
  visibility:visible;
  inset:0;
}

.news-modal .modal-dialog {
  transform: translateY(40px) scale(0.95);
  opacity: 0;
  transition: all 0.5s cubic-bezier(.2,.8,.2,1);
}

.news-modal.show .modal-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Full height */
.news-modal .modal-content{
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  height: auto;
}

/* Header */

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(32, 201, 151, 0.95); /*🔥 méně průhledné */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  box-shadow:   0 8px 20px rgba(0,0,0,0.2),
                0 0 10px rgba(32,201,151,0.2);
  padding: 15px;
}

.news-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,rgba(255,255,255,0.15),transparent);
  pointer-events: none;
}

.news-header i {
  font-size: 22px;
  color: #d1fae5; /* světlejší než text */
  align-items: center;  
  transform: translateY(1px);
  display: inline-flex; /* 🔥 změna */
}
    
/* Header gradient barva písma*/

.news-header h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  color:white;
}

/* Animace položek */
@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

    /* Button hover effect */
    .btn-primary{
      transition: all .3s ease;
    }

    .btn-primary:hover{
      transform: translateY(-2px);
      box-shadow:0 8px 20px rgba(13,110,253,0.4);
    }

    /* Checkbox style */
  .form-check {
  display: flex;
  align-items: center;
  gap: 6px;
}  

  .form-check-input{
      cursor:pointer;
      margin-top: -3px;
}

/******************/
/* Progress bar "Novinka" */
.news-badge {
  font-size: 22px;
  font-weight: 800;
  color: #ba0913;
  margin-bottom: 5px;
  /*font-family: var(--icon-font);*/
}

.progress {
  height: 6px;
  border-radius: 10px;
  background: #e9ecef;
}

.progress-bar {
  background: linear-gradient(90deg, #bac3bd, #737c76);
  animation: progressAnim 2s ease forwards;
}

/* animace progressu */
@keyframes progressAnim {
  from { width: 0; }
  to { width: 100%; }
}

/* tlačítko beru na vědomí */
.btn-3d {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid rgba(77, 148, 72, 0.35);
  border-radius: 14px;
  background: rgba(77, 148, 72, 0.08);
  color:var(--theme-color-6);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
} 

.btn-3d:hover {
  background: var(--theme-color-6);
  border-color: var(--theme-color-6);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-3d i {
  font-size: 17px;
}

/*animace*/

.news-badge-wrap {
  display: flex;
  align-items: center; /* ⬅️ KLÍČOVÉ */
  gap: 8px;
}

.news-badge-wrap i {
  font-size: 18px;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;   
}

.news-card[data-type="danger"] .news-badge-wrap i {
  color: #dc3545;
}


/* levá ikonka */
.news-left {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ikonka */
.news-left i {
  font-size: 20px;
}

/* obsah */
.news-content h6 {
  margin-top: 6px;
  margin-bottom: 6px;
  margin: 5px 0;
  font-weight: 600;
  color: #ff9800;
/*  color: var(--text-color);*/
}

.news-content p {
  margin: 0;
  margin-bottom: 6px;
  font-size: 14px;
  color: #6c757d;
  line-height: 1.6;
}

/* top row */
.news-top {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 10px; /* 🔥 přidá vzduch pod badge */
}

.news-content h6 + p {
  margin-top: 4px;
}
.news-content p + h6 {
  margin-top: 18px;
}

/* badge */

.badge {
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  height: 20px;
  font-size: 16px;
  letter-spacing: 0.5px;
}

/* time */
.time {
  color: #999;
}

.news-card:nth-child(2) {
  animation-delay: 0.15s;
}

.news-card[data-type="new"] {
  border-left-color: #198754;
}
.news-card[data-type="new"] .news-left {
  background: rgba(25,135,84,0.1);
  color: #198754;
}
.news-card[data-type="new"] .badge {
  background: rgba(25,135,84,0.1);
  color: #198754;
}

.news-card[data-type="danger"] {
  border-left-color: #dc3545;
}
.news-card[data-type="danger"] .news-left {
  background: rgba(220,53,69,0.1);
  color: #dc3545;
}
.news-card[data-type="danger"] .badge {
  background: rgba(220,53,69,0.1);
  color: #dc3545;
}

.news-card[data-type="jine"] {
  border-left-color: #0d6efd;
}
.news-card[data-type="jine"] .news-left {
  background: rgba(13,110,253,0.1);
  color: #0d6efd;
}
.news-card[data-type="jine"] .badge {
  background: rgba(13,110,253,0.1);
  color: #0d6efd;
}

.news-card[data-type="warning"] {
  border-left-color: #ffc107;
}
.news-card[data-type="warning"] .news-left {
  background: rgba(255,193,7,0.1);
  color: #ffc107;
}
.news-card[data-type="warning"] .badge {
  background: rgba(255,193,7,0.1);
  color: #ffc107;
}


/* NEW */
.news-card[data-type="new"] .news-badge-wrap i {
 background: rgba(25,135,84,0.15);
  color: #198754;
}

/* WARNING */
.news-card[data-type="warning"] .news-badge-wrap i {
  background: rgba(255,193,7,0.15);
  color: #ffc107;
}

/* DANGER */
.news-card[data-type="danger"] .news-badge-wrap i {
  background: rgba(220,53,69,0.15);
  color: #dc3545;
}

/* JINE */
.news-card[data-type="jine"] .news-badge-wrap i {
  background: rgba(13,110,253,0.15);
  color: #0d6efd;
}

/* highlight */

.highlight {
  font-weight: 600;
  color: #dc3545;
}

.highlight-danger {
  color: #dc3545;
  font-weight: 600;
    
}

/****************** DARK MODE ***************/
/* DARK MODE */

body.dark-mode {
  color: #e5e7eb;
  background: #0f172a;
  --text-color: #e5e7eb;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
  color: #f1f5f9;
}


body.dark-mode .news-card + .news-card::before {
  background: rgba(255,255,255,0.15);
}

body.dark-mode .news-content h6 {
  color: #facc15; /* světlejší oranžová */
}

body.dark-mode .btn-toggle {
  background: rgba(255,255,255,0.1);
  color: #facc15;
}

body.dark-mode .btn-toggle:hover {
  background: rgba(255,255,255,0.2);
}

/* modal */
body.dark-mode .modal-content {
  background: #1e293b;
  color: #e5e7eb;
}


body.dark-mode .news-header {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* cards */
body.dark-mode .news-card {
  --glow: rgba(255,255,255,0.15);
  background: linear-gradient(145deg, #1e293b, #172033);
}

/* text */
body.dark-mode .news-content p  {
  color: #cbd5e1 !important;
}

/* badge */
body.dark-mode .badge {
  background: rgba(255,255,255,0.1);
  color: #e5e7eb;  
}

/* footer */
body.dark-mode .modal-footer {
  background: rgba(255,255,255,0.05);
}

/* toggle tlačítko */
body.dark-mode .form-check-label {
  color: #cbd5e1;
  transition: all 0.3s ease;
}

/* toggle tlačítko */
body.dark-mode .form-check-label:hover {
  color: var(--theme-orange-hover);
}

.btn-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* ikonka */
.btn-toggle i {
  font-size: 16px;
}

/* hover */
.btn-toggle:hover {
  background: rgba(255,255,255,0.3);
  transform: scale(1.05);
}


@media (max-width: 768px) {
  .mode-text {
    display: none;
  }
  .btn-toggle {
    padding: 6px;
    border-radius: 50%;
  }
  .news-card:hover {
    transform: none; /* ❌ vypnout hover */
  }
  .news-card:active {
    transform: scale(0.97); /* 👍 tap efekt */
  }
  .news-card {
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  }
}


/* 📱 MOBILE */

@media (max-width: 576px) {

  .modal-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .modal-footer .btn-3d {
    width: 100%;
  }
  .form-check {
    justify-content: flex-start;
  }
}


/* 📱 TABLET + menší PC */
@media (max-width: 992px) {

  .news-card {
    flex-direction: column;
    gap: 10px;
  }
  .news-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }
}

/* =========================================
   ODKAZ NA ARCHIV AKTUALIT
========================================= */

.news-modal-actions {
  display:flex;
  align-items: center;
  justify-content: flex-end;
  gap: 45px;
}


.btn-news-archive {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid rgba(249, 115, 22, 0.35);
  border-radius: 14px;
  background: rgba(249, 115, 22, 0.08);
  color: #d85f00;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}


.btn-news-archive i {
  font-size: 17px;
}


.btn-news-archive:hover {
  background: var(--theme-orange-hover);
  border-color: var(--theme-orange-hover);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}


@media (max-width: 575px) {

  .news-modal-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }


  .btn-news-archive,
  .news-modal-actions .btn-3d {
    width: 100%;
    text-align: center;
  }

}

/* =========================================
   CHECKBOX – NEZOBRAZOVAT ZNOVU
========================================= */

.news-modal .form-check {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
}


.news-modal .form-check-input {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 2px solid #9ca3af;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  position: relative;
  flex: 0 0 22px;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}


/* hover */
.news-modal .form-check-input:hover {
  border-color: var(--theme-orange-hover);
  box-shadow: 0 0 0 4px rgba(255, 140, 0, 0.12);
}


/* focus – klávesnice */
.news-modal .form-check-input:focus {
  outline: none;
  border-color: var(--theme-orange-hover);
  box-shadow: 0 0 0 4px rgba(255, 140, 0, 0.18);
}


/* zaškrtnuto */
.news-modal .form-check-input:checked {
  background: var(--theme-orange-hover);
  border-color: var(--theme-orange-hover);
}


/* fajfka */
.news-modal .form-check-input:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}


/* lehký klik efekt */
.news-modal .form-check-input:active {
  transform: scale(0.92);
}


/* text */
.news-modal .form-check-label {
  cursor: pointer;
  user-select: none;
  font-size: 14px;
  line-height: 1.4;
  transition: all 0.3s ease;
}

.news-modal .form-check-label:hover {
  color: var(--theme-orange-hover);
}






/** Oprava pro mobil**/

/* =========================================================
   AKTUALITY – MOBILNÍ MODAL
   ========================================================= */

@media (max-width: 575px) {

  .news-modal .modal-dialog {
    width: calc(100% - 20px);
    max-width: none;
    margin: 10px auto;
  }

  .news-modal .modal-content {
    max-height: calc(100dvh - 20px);
    height: auto;
    border-radius: 16px;
  }

  .news-modal .modal-body {
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 14px;
  }

  .news-modal .news-card {
    margin-bottom: 16px;
    padding: 12px;
  }

  .news-modal .news-card + .news-card {
    margin-top: 12px;
  }

  .news-modal .news-content p {
    font-size: 14px;
    line-height: 1.5;
  }

  .news-modal .modal-footer {
    padding: 12px 14px;
  }

  .news-modal-actions {
    width: 100%;
  }

  .btn-news-archive,
  .news-modal-actions .btn-3d {
    width: 100%;
  }

  .news-modal .form-check {
    margin-top: 4px;
  }
}

/*@media (max-width: 575px) {

  #newsModal .modal-dialog {
    outline: 5px solid red !important;
  }

  #newsModal .modal-content {
    outline: 5px solid blue !important;
  }

}*/

/* ---------------------------------------------------------
   NEWS MODAL – MOBILNÍ POZICE
   --------------------------------------------------------- */

@media (max-width: 991px) {

  #newsModal .modal-dialog {
      margin-top: 30px;
/*    transform: translateY(40px);*/
  }

}

@media (max-width: 575px) {

  #newsModal .modal-dialog {
    transform: translateY(40px);
  }

}