@import url('https://fonts.googleapis.com/css2?family=Play&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
  font-family: 'Inter', 'Play', sans-serif;
}

/* =====================================================
   The "account masthead" bar across the top of the site
   ===================================================== */

.account-masthead {
  background-color: white;
  color: #626b72;
}

.account-masthead .account .notifications a span {
  background-color: white;
  color: #626b72;
}

.span.badge {
  background-color: white;
  color: #626b72;
}

.account-masthead .account ul li a {
  background-color: white;
  color: #626b72;
}

.account-masthead .account ul li a:hover {
  background-color: #a0b84a;
  color: white;
}

.account-masthead {
  background: white;
}

/* ========================================================================
   The main masthead bar that contains the site logo, nav links, and search
   ======================================================================== */

.masthead {
  border-style: solid !important;
  border-color: #a0b84a !important;
  background-color: white !important;
  background: white !important;
  color: black !important;
}

.masthead .main-navbar ul li a {
  border-style: solid !important;
  border-color: #a0b84a !important;
  border-width: medium !important;
  background-color: white !important;
  color: #333333 !important;
}

.masthead .main-navbar ul li:hover a,
.masthead .main-navbar ul li:focus a {
  border-radius: 0.3rem !important;
  background-color: #a0b84a !important;
  color: white !important;
}

.masthead .main-navbar ul li.active a {
  border-radius: 0.3rem !important;
  background-color: #a0b84a !important;
  color: white !important;
}

.masthead .main-navbar ul li a .text {
  color: #333333 !important;
}

.masthead .main-navbar ul li:hover a .text,
.masthead .main-navbar ul li:focus a .text,
.masthead .main-navbar ul li.active a .text {
  color: white !important;
}

/* ===========================================
   Modern Homepage Styles
   =========================================== */

.homepage {
  background-color: #f8f9fa;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, rgba(160, 184, 74, 0.95) 0%, rgba(160, 184, 74, 0.85) 100%),
              url("https://rekis.hydro.tu-dresden.de/wp-content/uploads/2020/12/rekis_header_01b_expert.png");
  background-size: cover;
  background-position: center;
  padding: 80px 0;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(160, 184, 74, 0.9) 0%, rgba(140, 164, 54, 0.85) 100%);
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 40px;
  opacity: 0.95;
  font-weight: 400;
}

.search-wrapper {
  max-width: 700px;
  margin: 0 auto;
}

.search-wrapper .module-search {
  background: white;
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.search-wrapper .module-content {
  border: none !important;
  padding: 25px;
}

.search-wrapper input[type="text"] {
  border: none;
  font-size: 1.1rem;
  padding: 15px 20px;
  border-radius: 8px;
  background: #f8f9fa;
}

.search-wrapper input[type="text"]:focus {
  box-shadow: none;
  border: 2px solid #a0b84a;
  background: white;
}

.search-wrapper .btn {
  padding: 15px 35px;
  font-size: 1.1rem;
  border-radius: 8px;
  font-weight: 600;
}

/* Stats Section */
.stats-section {
  background: white;
  padding: 60px 0;
  border-bottom: 1px solid #e9ecef;
}

.stats-row {
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.stat-card {
  text-align: center;
  padding: 30px 20px;
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #a0b84a 0%, #8ca436 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 30px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 10px;
  line-height: 1;
}

.stat-label {
  font-size: 1.1rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* Featured Section */
.featured-section {
  padding: 70px 0;
  background: #f8f9fa;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 50px;
  color: #2c3e50;
  position: relative;
  padding-bottom: 20px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #a0b84a 0%, #8ca436 100%);
  border-radius: 2px;
}

.featured-datasets {
  margin-bottom: 30px;
}

.dataset-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
}

.dataset-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.dataset-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.dataset-card h3 a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.3s ease;
}

.dataset-card h3 a:hover {
  color: #a0b84a;
}

.dataset-card p {
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.dataset-meta {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #e9ecef;
}

.dataset-meta .badge {
  background: #e9ecef;
  color: #495057;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Info Section */
.info-section {
  padding: 70px 0 80px;
  background: white;
}

.info-box {
  text-align: center;
  padding: 40px 30px;
  transition: all 0.3s ease;
  border-radius: 12px;
}

.info-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  background: #f8f9fa;
}

.info-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  background: linear-gradient(135deg, #a0b84a 0%, #8ca436 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 35px;
  transition: transform 0.3s ease;
}

.info-box:hover .info-icon {
  transform: rotate(10deg) scale(1.1);
}

.info-box h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 15px;
}

.info-box p {
  font-size: 1rem;
  color: #6c757d;
  line-height: 1.6;
  margin: 0;
}

/* Buttons */
.btn {
  background-color: #a0b84a;
  border-color: #a0b84a;
  color: white;
  border-radius: 8px;
  font-weight: 600;
  padding: 12px 30px;
  transition: all 0.3s ease;
  border: 2px solid #a0b84a;
}

.btn:hover {
  background-color: #8ca436;
  border-color: #8ca436;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(160, 184, 74, 0.3);
}

.btn-large {
  padding: 15px 40px;
  font-size: 1.1rem;
}

/* Toolbar */
.main .container .toolbar {
  background-image: url("https://rekisviewer.hydro.tu-dresden.de/fdm/files/naviBackground.png");
  border-radius: 5px;
  padding: 15px;
}

.main .container .toolbar .breadcrumb {
  padding-left: 20px;
}

.main .container .toolbar .breadcrumb .active .a {
  color: white;
}

#content > div.toolbar > ol > li > a {
  color: white;
  font-size: medium;
}

/* Box styles */
.box {
  box-shadow: none;
}

.hero .box {
  border: none;
}

.homepage .module-search .module-content {
  border-style: solid;
  border-color: grey;
  border-width: thin;
  color: white;
}

.homepage .module-search .tags {
  border-style: solid;
  border-color: grey;
  border-width: thin;
  background-color: #e6e1dc;
  color: #626b72;
}

.homepage .module-search .tags .tag:hover {
  background-color: #a0b84a;
  border-color: #a0b84a;
  color: white;
}

.module-content:last-child {
  padding-bottom: 0px;
}

.homepage .module-search {
  padding: 0px;
}

.homepage [role="main"] {
  border-top: none;
}

/* Footer */
.site-footer,
body {
  background-color: rgb(40, 40, 40);
}

.site-footer,
.site-footer label,
.site-footer small {
  color: rgba(255, 255, 255, 0.6);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.6);
}

.hiddenRow {
  padding: 0 !important;
}

.tag-list .custom {
  padding-left: 0;
  padding-right: 0;
  margin: 0;
  list-style: none;
  padding: 10px 10px 5px 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-section {
    padding: 50px 0;
  }

  .stats-section,
  .featured-section,
  .info-section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .stat-number {
    font-size: 2.5rem;
  }
}