:root{
  --blur-bg: rgba(0,0,0,8.55);
  --text-color: #000;
}

/*.news-content h6 {
  color: var(--text-color);
}*/


.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: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
 /* transition: transform 0.3s ease, box-shadow 0.3s ease;*/
  transition: all 0.35s cubic-bezier(.2,.8,.2,1);
  border-left: 4px solid transparent;
  transform: translateY(20px);
  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(20px);
} 

.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(-1px);*/
   /*transform: scale(1.05) translateZ(0);
   /*transform: scale(1.06) rotateX(2deg) rotateY(-2deg);*/
   transform: scale(1.04) rotateX(1deg) rotateY(-1deg);
   transition: 0.5s;
   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);
}
    
/* 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 {
  /*background: rgba(13,110,253,0.05);*/
  border-top: none;
}

/*i:not(.bi) {
  font-family: var(--theme-font, --theme-font-2);
}*/
/*i:not(.bi):not(.fa-solid):not(.fa-regular):not(.fa-brands):not(.fab) {
  font-family: var(--theme-font);
}*/

/*.news-card i {
  /* styling jen pro aktuality */
/*}*/


/* FIX Bootstrap Icons */
.bi {
  font-family: "fontawesome.min" !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.4);
  backdrop-filter: blur(12px);
  transition: all 0.4s ease;
}

.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);
    }

/* Header */

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  background: rgba(32, 201, 151, 0.95); /*🔥 méně průhledné */
 /*   background: rgba(25,135,84, 0.75);*/
    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(25,135,84,0.2);*/
                0 0 10px rgba(32,201,151,0.2);
  padding: 15px;
}

.news-header {
  box-shadow:
    0 8px 20px rgba(0,0,0,0.2),
    0 0 10px rgba(32,201,151,0.2);
}

.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%; }
}

/* 3D tlačítko*/
.btn-3d {
  background: linear-gradient(145deg, #20c997, #198754);
  color: white;
  border: none;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}    

/* 3D efekt */

/* hover */
.btn-3d:hover {
  transform: translateY(-2px);
  color: #ff9800; /* 🟠 text */
  box-shadow: 
    0 6px 0 #146c43,
    0 8px 15px rgba(0,0,0,0.25),
    0 0 15px rgba(32,201,151,0.6);
  transition: all 0.2s ease;
}

/* kliknutí (stlačení) */
.btn-3d:active {
  transform: translateY(4px);
  box-shadow: 
  0 2px 0 #146c43,
  0 4px 8px rgba(0,0,0,0.2);
}


/*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;
}

/*@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}*/

.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 {
/*  background: #1e293b;*/
  --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;
}


.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;
  }
}

