/* ============================================================
   CEON — Circular Economy Ontology Network
   Stylesheet
   ============================================================ */

/* Base */
body {
  padding-top: 80px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
}

/* ============================================================
   Navbar
   ============================================================ */
.navbar {
  background-color: #2c3e50;
  border: none;
  border-radius: 0;
  min-height: 60px;
}
.navbar .navbar-inner {
  display: flex;
  align-items: center;
  height: 60px;
  width: 100%;
}
.navbar-brand {
  display: flex;
  align-items: center;
  padding: 0 15px 0 0;
  height: 60px;
  flex-shrink: 0;
  text-decoration: none;
}
.navbar-brand img {
  display: block;
}

/* Desktop: menu is a flex row filling remaining space */
.navbar-menu {
  display: flex;
  align-items: center;
  flex: 1;
}
.navbar-links,
.navbar-links-right {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.navbar-links-right {
  margin-left: auto;
}
.navbar-links li a,
.navbar-links-right li a {
  display: block;
  color: #ecf0f1 !important;
  font-size: 1em;
  padding: 0 14px;
  line-height: 60px;
  text-decoration: none;
  white-space: nowrap;
}
.navbar-links li a:hover,
.navbar-links-right li a:hover {
  color: #1abc9c !important;
}

/* Hamburger — hidden on desktop */
.navbar-hamburger {
  display: none;
  background: none;
  border: 1px solid #ecf0f1;
  border-radius: 4px;
  padding: 8px 10px;
  cursor: pointer;
  margin-left: auto;
  flex-shrink: 0;
}
.navbar-hamburger .icon-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #ecf0f1;
  margin: 4px 0;
  border-radius: 1px;
}

/* ============================================================
   Page header
   ============================================================ */
.page-header {
  border-bottom: 2px solid #1abc9c;
  margin-bottom: 25px;
}
.page-header h1 {
  color: #2c3e50;
  font-weight: 300;
  font-size: 2.4em;
}

/* ============================================================
   Intro & overview
   ============================================================ */
.intro-text {
  color: #555;
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.7;
}
.overview-img {
  text-align: center;
  margin: 25px 0;
}
.overview-img img {
  max-width: 100%;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px;
  background: #fff;
}

/* ============================================================
   Section headings
   ============================================================ */
h2.section-title {
  font-size: 1.6em;
  color: #2c3e50;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e0e0e0;
}
h3.subsection-title {
  font-size: 1.2em;
  color: #555;
  font-weight: 600;
  margin-top: 22px;
  margin-bottom: 10px;
}
.section-desc {
  color: #666;
  font-size: 1em;
  margin-bottom: 15px;
}

/* ============================================================
   Tables
   ============================================================ */
.table-responsive-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 15px;
}
.table {
  font-size: 1em;
}
.table > thead > tr > th {
  background-color: #2c3e50;
  color: #ecf0f1;
  border-color: #2c3e50;
  font-weight: 500;
  font-size: 1em;
}
.table-striped > tbody > tr:nth-of-type(odd) {
  background-color: #f9f9f9;
}
.table > tbody > tr > td {
  vertical-align: middle;
}
.table > tbody > tr:hover {
  background-color: #eaf7f4;
}

/* ============================================================
   Badges & labels
   ============================================================ */
.badge-format {
  display: inline-block;
  padding: 3px 8px;
  font-size: 0.85em;
  font-weight: 600;
  border-radius: 3px;
  margin-right: 3px;
  text-decoration: none;
  color: #fff;
}
.badge-format:hover {
  opacity: 0.85;
  color: #fff;
  text-decoration: none;
}
.badge-ttl  { background-color: #27ae60; }
.badge-rdf  { background-color: #e74c3c; }
.badge-json { background-color: #f39c12; }
.badge-html { background-color: #2980b9; }
.badge-pdf  { background-color: #8e44ad; }
.badge-tsv  { background-color: #16a085; }

.badge-license {
  display: inline-block;
  padding: 3px 8px;
  font-size: 0.85em;
  font-weight: 600;
  border-radius: 3px;
  text-decoration: none;
  color: #fff;
  background-color: #7f8c8d;
}
.badge-license:hover {
  opacity: 0.85;
  color: #fff;
  text-decoration: none;
}

.label-version {
  display: inline-block;
  background: #ecf0f1;
  color: #2c3e50;
  border: 1px solid #bdc3c7;
  padding: 2px 9px;
  border-radius: 10px;
  font-size: 0.88em;
  font-weight: 600;
}

.onto-name {
  font-weight: 600;
  color: #2c3e50;
  font-size: 1em;
}
.onto-name:hover {
  color: #1abc9c;
}

/* ============================================================
   Alignment arrow
   ============================================================ */
.align-arrow {
  color: #bbb;
  font-size: 1.1em;
}

/* ============================================================
   Divider
   ============================================================ */
.hr-green {
  border-top: 1px solid #1abc9c;
  margin: 30px 0;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  margin-top: 60px;
  padding: 30px 0 20px;
  border-top: 2px solid #1abc9c;
  background: #f8f8f8;
  text-align: center;
  font-size: 0.95em;
  color: #777;
}
.footer a {
  color: #2c3e50;
}
.footer a:hover {
  color: #1abc9c;
}
.footer .logos {
  margin-top: 15px;
}
.footer .logos img {
  height: 45px;
  margin: 0 12px;
  vertical-align: middle;
}

/* ============================================================
   Mobile
   ============================================================ */
@media (max-width: 767px) {
  body { padding-top: 60px; }

  .page-header h1 { font-size: 1.6em; }

  .navbar .navbar-inner { flex-wrap: nowrap; position: relative; }
  .navbar-hamburger { display: block; }

  .navbar-menu {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: #2c3e50;
    z-index: 1000;
    width: 100%;
  }
  .navbar-menu.open { display: flex; }

  .navbar-links,
  .navbar-links-right {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin: 0;
  }
  .navbar-links-right { margin-left: 0; }

  .navbar-links li,
  .navbar-links-right li { width: 100%; }

  .navbar-links li a,
  .navbar-links-right li a {
    line-height: 1;
    padding: 14px 20px;
    border-bottom: 1px solid #3d5166;
    width: 100%;
  }
}
