/*
  user.css for Cassiopeia (Joomla 5)
  - Header with lighter background for better contrast
  - White logo with white outline, menu text white, grey hover
  - Links hover: darker color
  - Minimalist design maintained
*/

/* Content links */
a {
  color: #0a4957 !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: color 0.2s ease, background-color 0.2s ease !important;
}

a:hover {
  color: #021f27 !important; /* ešte tmavší odtieň pri hover */
  background-color: rgba(10, 73, 87, 0.08) !important;
}

a:visited {
  color: #0a4957 !important;
}

/* Module and sidebar cards */
.module, .moduletable,
.sidebar-left.card, .sidebar-right.card {
  background: #ffffff !important;
  border: 1px solid rgba(0,0,0,0.08) !important;
  border-radius: 10px !important;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08) !important;
  padding: 1.25rem !important;
  margin-bottom: 1.5rem !important;
  transition: box-shadow 0.2s ease, transform 0.2s ease !important;
}
.module:hover, .moduletable:hover {
  box-shadow: 0 10px 25px rgba(0,0,0,0.12) !important;
  transform: translateY(-2px) !important;
}
.sidebar-left.card:hover, .sidebar-right.card:hover {
  box-shadow: 0 10px 25px rgba(0,0,0,0.12) !important;
  transform: none !important;
}
.module h3, .moduletable h3,
.sidebar-left.card h3, .sidebar-right.card h3 {
  margin-top: 0 !important;
  font-weight: 600 !important;
  border-bottom: 2px solid #0a4957 !important;
  padding-bottom: 0.4rem !important;
  margin-bottom: 1rem !important;
  color: #222 !important;
}

/* ============================== */
/* Header: lighter background for better contrast */
/* ============================== */
header.container-header.full-width.position-sticky.sticky-top,
.header--main,
header.site-header {
  background-color: #1b6a82 !important; /* svetlejšia modrá */
  background-image: linear-gradient(135deg, #1b6a82 0%, #3b8aa0 100%) !important;
  color: #ffffff !important;
  padding: 0.8rem 1.5rem !important;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important;
  position: relative !important;
  z-index: 9999 !important;
  font-size: 0.95rem !important;
}

/* Logo / Page title with white outline */
header.container-header .logo a,
.header--main .logo a,
header.site-header .logo a {
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 1.4rem !important;
  font-weight: 700 !important;
  text-shadow:
      -1px -1px 0 #ffffff,
       1px -1px 0 #ffffff,
      -1px  1px 0 #ffffff,
       1px  1px 0 #ffffff;
}

/* Navigation menu */
header .nav a,
header .navbar a {
  color: #ffffff !important;
  text-decoration: none !important;
  padding: 0.3rem 0.6rem !important;
  border-radius: 4px !important;
  transition: background-color 0.2s ease, color 0.2s ease !important;
}
header .nav a:hover,
header .navbar a:hover {
  background-color: #888888 !important;
  color: #ffffff !important;
}
header .nav .active,
header .navbar .active {
  border-bottom: 2px solid #888888 !important;
}

/* Header buttons and tagline */
header .tagline {
  font-size: 0.85rem !important;
  font-weight: 400 !important;
  color: rgba(255,255,255,0.85) !important;
  margin-top: 0.15rem !important;
}
header .header-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  background-color: #888888 !important;
  color: #0a4957 !important;
  font-weight: 600 !important;
  padding: 0.4rem 0.8rem !important;
  border-radius: 6px !important;
  text-decoration: none !important;
}
header .header-btn:hover {
  background-color: #666666 !important;
  color: #ffffff !important;
}

/* Focus outline */
header a:focus {
  outline: 2px solid #ffffff !important;
  outline-offset: 2px !important;
}

/* Responsive adjustments */
@media(max-width: 900px) {
  header.container-header.full-width.position-sticky.sticky-top,
  .header--main,
  header.site-header {
    padding: 0.6rem 1rem !important;
    font-size: 0.9rem !important;
  }
  header .nav,
  header .navbar {
    flex-direction: column !important;
    gap: 0.3rem !important;
  }
  header.container-header .logo a,
  .header--main .logo a,
  header.site-header .logo a {
    margin-bottom: 0.3rem !important;
    text-align: center !important;
  }
}
/* ============================== */
/* JDownloads – Card style pre info o súbore */
/* ============================== */
.jd_info_card {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.jd_info_card .jd_info_item {
    flex: 1 1 100%; /* teraz zaberie celú šírku rodiča */
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 12px 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.jd_info_card .jd_info_item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.jd_info_card .jd_info_item .jd_title {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.jd_info_card .jd_info_item .jd_value {
    color: #555;
    font-size: 14px;
}

/* ============================== */
/* Hlavička súboru – prispôsobenie pre JDownloads */
/* ============================== */
.jd_header {
    background-color: #f5f5f5;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 10px;
}

.jd_header .jd_title_left {
    font-weight: bold;
    font-size: 1.2rem;
    color: #222;
}

.jd_header .jd_title_left a {
    color: #0a4957;
    text-decoration: none;
}

.jd_header .jd_title_left a:hover {
    color: #021f27;
}
/* Jednotlivé info položky – full-width, kompaktné */
.jd_info_item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1 1 100%;
    width: 100%;
    padding: 6px 12px;
    border-radius: 6px;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    font-size: 14px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.jd_info_item:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.08);
}

.jd_info_item .jd_title {
flex: 0 0 120px; /* pevná šírka pre ľavý stĺpec */
    font-weight: 600;
    color: #333;
}

.jd_info_item .jd_value {
    flex: 1; /* zvyšok miesta pre hodnotu */
    text-align: right; /* nech hodnoty sedia napravo */
    color: #555;
}

/* Responzívne pre mobil */
@media (max-width: 768px) {
    .jd_info_item {
        padding: 6px 10px;
        font-size: 14px;
    }
}


/* Info položky – full-width, kompaktné */
.jd_info_item {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 6px 10px;
    border-radius: 6px;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 14px;
}

.jd_info_item:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.08);
}

/* Responzívne */
@media (max-width: 768px) {
    .jd_rating_box {
        width: 100%;
        justify-content: flex-start;
    }
    .jd_info_card {
        flex-direction: column;
        align-items: center;
    }
.jd_info_items {
    flex: 1;                 /* zaberá celý zostávajúci priestor vedľa thumbnailu */
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;             /* redundancia, ale bezpečná */
    }
}
.jd_rating_box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    font-size: 18px;      /* väčší text */
    font-weight: 700;     /* hrubší text */
    color: inherit;       /* zoberie farbu z hlavného CSS */
}

.jd_rating_box .jd_title {
    font-weight: 700;
    color: inherit;       /* dedí farbu */
}

.jd_rating_box .jd_value {
    font-size: 20px;      /* ešte väčšie číslo */
    color: inherit;       /* dedí farbu z hl. CSS */
}
.jd_description_block {
    margin-top: 20px;
    padding: 15px 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.jd_description_title {
    font-size: 1.2em;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
}

.jd_description_text {
    line-height: 1.6;
    color: #555;
}