@font-face {
  font-family: "bootstrap-icons";
  src: url("../fonts/bootstrap-icons.woff2") format("woff2"),
       url("../fonts/bootstrap-icons.woff") format("woff");
}

@font-face {
  font-family: "Nunito Sans";
  src: url("../fonts/NunitoSans.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

:root {
  --primary-color: #6c5ce7;
  --primary-color-hover: #5f4ed8;
  --secondary-color: #a829e4;
  --primary-color-light: #A89FF1;
  --secondary-color-light: #C46DED;
  --accent-color: #fd79a8;
  --success-color: #00b894;
  --warning-color: #fdcb6e;
  --dark-color: #2d3436;
  --light-color: #f8f9fa;
  --card-shadow: 0 4px 20px rgba(0,0,0,0.08);
  --card-shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
  --background-color: #f0f2f5;
  --header-background-color: #d6ccfa;
  --logotype-color: #1f1b5d;
  --slogan-color: #3d3ec0;

  --rarity-legendary: linear-gradient(45deg, #f39c12, #e74c3c);
  --rarity-epic: linear-gradient(45deg, #9b59b6, #8e44ad);
  --rarity-rare: linear-gradient(45deg, #3498db, #2980b9);  
  --rarity-common: linear-gradient(45deg, #aeafaf, #8b8b8b);

  --rarity-legendary-color: #f39c12;
  --rarity-epic-color: #9b59b6;
  --rarity-rare-color: #3498db;
  --rarity-common-color: #aeafaf;
}

/******************************************************/
/*                Různé pomocné třídy                 */
/******************************************************/
.gap-wrapper {
  gap: 1rem;
}

.full-height {
  height: 100vh;
}

.flex {
  flex: 1;
}

.rarity-legendary {
  background: var(--rarity-legendary);
  color: white;
}

.rarity-epic {
  background: var(--rarity-epic);
  color: white;
}

.rarity-rare {
  background: var(--rarity-rare);
  color: white;
}        

.rarity-common {
  background: var(--rarity-common);
  color: white;
}     

.btn-outline-custom {
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  background-color: transparent;
  transition: all 0.2s ease;
}

.btn-primary-custom {
  color: white;
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  transition: all 0.2s ease;
}

.btn-primary-custom:hover,
.btn-primary-custom:focus {
  background-color: var(--primary-color-hover);
  border-color: var(--primary-color-hover);
  color: white;
  text-decoration: none;
}


.bi-2x { font-size: 2em; }


.btn-link-custom {
  color: var(--primary-color);
}


.btn-outline-custom:hover,
.btn-outline-custom:focus {
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
}

/******************************************************/
/*                  Hlavní kontejnery                 */
/******************************************************/
html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--background-color);
}

.main-page-content {
  max-width: 1200px;          /* omezení šířky obsahu */
  width: 100%;               /* 100 % šířky až po max-width */
}


.footer {
  max-width: 1200px;
}



/******************************************************/
/*                   Titulní stránka                  */
/******************************************************/


/******************************************************/
/*                       Hlavička                     */
/******************************************************/

.header-container {
  background: linear-gradient(135deg, var(--primary-color-light) 0%, var(--secondary-color-light) 100%);
}

.header-top-menu {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.header-top-menu a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.header-top-menu a:hover {
  color: var(--primary-color-hover);
}

.header {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* pro Safari */
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: var(--card-shadow);
  border-radius: 20px 20px 20px 20px;
  margin-bottom: 1rem;
  min-height: 150px;
  width: 100%;
}

.header-logo-container {
  min-width: 150px;
}

.header-logo-text {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  margin: 0;
  color: var(--logotype-color);
  line-height: 1.1;
}

.header-logo-slogan {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--slogan-color);
  line-height: 1.2;
  text-align: right;
}

.header-logo-symbol {
  height: auto;
  width: 60px;
}

.logo-container {
  cursor: pointer;
}

.header-hamburger {
  color: var(--primary-color);
  font-size: 3rem;
}



/* ===== Off-canvas panel ===== */
.offcanvas-mobile {
  position: fixed;
  top: 0; bottom: 0; right: 0;
  width: 80vw;
  max-width: 300px;
  background: rgba(255,255,255,0.5);         /* stejný poloprůhledný podklad jako header */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: -2px 0 12px rgba(0,0,0,0.2);
  border-top-left-radius: 20px;             /* zaoblení rohů */
  border-bottom-left-radius: 20px;
  transform: translateX(100%);
  transition: transform .3s ease;
  z-index: 1050;
}

.offcanvas-mobile.active {
  transform: translateX(0);
}

/* ===== Backdrop ===== */
.main-page-backdrop {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.3);               /* lehce tmavší stín */
  opacity: 0;
  transition: opacity .3s ease;
  z-index: 1040;
  pointer-events: none;
}
.main-page-backdrop.active {
  opacity: 1;
  pointer-events: all;
}

/* ===== Obsah menu ===== */
.offcanvas-mobile .offcanvas-header {
  padding: 1rem 1.25rem;
  border-bottom: none;
}
.offcanvas-mobile .offcanvas-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #2c2c2c;
}

.offcanvas-mobile nav.nav {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0;
}
.offcanvas-mobile .nav-link {
  padding: 0.75rem 1.25rem;
  color: #2c2c2c;                           /* tmavší grafitová barva */
  font-weight: 500;
  border-radius: 0.5rem;
  transition: background .2s;
}
.offcanvas-mobile .nav-link:hover {
  background: rgba(108, 92, 231, 0.1);      /* lehký fialový nádech při hover */
}

/* ===== Login/Register tlačítka ===== */
.offcanvas-mobile .btn-outline-custom {
  width: 100%;
  margin-bottom: 0.5rem;
}
.offcanvas-mobile .btn-primary-custom {
  width: 100%;
}






/******************************************************/
/*                Menu hlavní stránky                 */
/******************************************************/

.main-page-menu {
  position: absolute;


  background-color: white;
  box-shadow: var(--card-shadow);
  

  min-width: 280px;
  height: 97%;
  overflow: hidden;
  transition: all 0.3s ease;



  display: flex;
  flex-direction: column;
  justify-content: start;
  z-index: 1000;
}








/******************************************************/
/*                       Widget                       */
/******************************************************/
.widget-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.widget-content {
  margin-bottom: 1rem;  
}

.widget-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(45deg, var(--accent-color), var(--success-color));
}

/******************************************************/
/*                    Achievement                     */
/******************************************************/
.achievement-card {
  background-color: white;
  box-shadow: var(--card-shadow);
  border-radius: 20px 20px 20px 20px;
  width: 100%;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 600;
  position: relative;   /* kvůli ::before */
  overflow: hidden;     /* zabrání přesahu pruhu */ 
  min-height: 250px;
  box-sizing: border-box;   
}

@media (max-width: 767.98px) {
  .achievement-card {
    min-height: 230px; /* nebo třeba 200px, dle potřeby */
  }
}

.achievement-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
}

.achievement-rarity-badge {
  position: absolute;
  bottom: 15px;
  left: 15px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.achievement-image {
  width: 80px;
  height: 80px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 2rem;
  color: white;
}

.achievement-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 8px;
}

.achievement-description {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;      /* omezení na 2 řádky */
  line-clamp: 2;              /* standard property for compatibility */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;            
}

.achievement-date {
  position: absolute;
  bottom: 15px;
  right: 15px;
  font-size: 0.75rem;
  color: #888;
  font-style: normal;
}

.achievement-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.achievement-card.rarity-strip-legendary::before {
  background: var(--rarity-legendary);
}

.achievement-card.rarity-strip-epic::before {
  background: var(--rarity-epic);
}

.achievement-card.rarity-strip-rare::before {
  background: var(--rarity-rare);
}

.achievement-card.rarity-strip-common::before {
  background: var(--rarity-common);
}
