/**
 * Custom styles - Combined from simple-grid.css and own.css
 * simple-grid.css (C) ZACH COLE 2016
 */

/* === UNIVERSAL === */
html,
body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  left: 0;
  top: 0;
  font-size: 100%;
}

/* === POSITIONING === */
.left {
  text-align: left;
}

.right {
  text-align: right;
}

.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.justify {
  text-align: justify;
}

/* === GRID SYSTEM === */
.container {
  width: 90%;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 3rem;
}

.row {
  position: relative;
  width: 100%;
}

.row [class^="col"] {
  float: left;
  margin: 0.5rem 2%;
  min-height: 0.125rem;
}

.col-1,
.col-2,
.col-3,
.col-4,
.col-5,
.col-6,
.col-7,
.col-8,
.col-9,
.col-10,
.col-11,
.col-12 {
  width: 96%;
}

.col-1-sm {
  width: 4.33%;
}
.col-2-sm {
  width: 12.66%;
}
.col-3-sm {
  width: 21%;
}
.col-4-sm {
  width: 29.33%;
}
.col-5-sm {
  width: 37.66%;
}
.col-6-sm {
  width: 46%;
}
.col-7-sm {
  width: 54.33%;
}
.col-8-sm {
  width: 62.66%;
}
.col-9-sm {
  width: 71%;
}
.col-10-sm {
  width: 79.33%;
}
.col-11-sm {
  width: 87.66%;
}
.col-12-sm {
  width: 96%;
}

.row::after {
  content: "";
  display: table;
  clear: both;
}

.hidden-sm {
  display: none;
}

@media only screen and (min-width: 33.75em) {
  .container {
    width: 80%;
  }
}

@media only screen and (min-width: 45em) {
  .col-1 {
    width: 4.33%;
  }
  .col-2 {
    width: 12.66%;
  }
  .col-3 {
    width: 21%;
  }
  .col-4 {
    width: 29.33%;
  }
  .col-5 {
    width: 37.66%;
  }
  .col-6 {
    width: 46%;
  }
  .col-7 {
    width: 54.33%;
  }
  .col-8 {
    width: 62.66%;
  }
  .col-9 {
    width: 71%;
  }
  .col-10 {
    width: 79.33%;
  }
  .col-11 {
    width: 87.66%;
  }
  .col-12 {
    width: 96%;
  }

  .hidden-sm {
    display: block;
  }
}

@media only screen and (min-width: 60em) {
  .container {
    width: 75%;
    max-width: 60rem;
  }
}

/* === CUSTOM STYLES === */
.portrait {
  width: 250px;
  height: 250px;
  border-radius: 50%;
}

.logo-link {
  text-decoration: none;
}

.logo {
  width: 48px;
  height: 48px;
}

.publication-year {
  font-weight: bold;
  font-size: 20px;
}

.publication-title {
  font-weight: bold;
}

.publication-description {
  padding-left: 15px;
}

.publication-authors {
  padding-left: 15px;
  font-size: 12px;
}

.publication-item {
  padding-left: 10px;
}

.publication-links {
  margin-left: 15px;
}

.publication-link {
  display: inline-block;
  font-weight: 400;
  line-height: 1.5;
  color: #b5e853;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  background-color: transparent;
  border: 1px solid #b5e853;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  border-radius: 0.25rem;
  transition:
    color 0.15s ease-in-out,
    background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
  padding-left: 10px;
}

.publication-link:hover {
  color: #1a1a1a;
  background-color: #b5e853;
  border-color: #b5e853;
}

.publication-link:active {
  color: #1a1a1a;
  background-color: #9ccc3d;
  border-color: #9ccc3d;
}

.icon {
  height: 40px;
  width: 40px;
}

.publications {
  margin-bottom: 10px;
}

/* === CV / EMPLOYMENT === */
.cv-jobs {
  margin-bottom: 2rem;
}

.cv-job {
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 2px solid #444;
}

.cv-employer {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.cv-employer a {
  color: #b5e853;
  text-decoration: none;
}

.cv-employer a:hover {
  text-decoration: underline;
}

.cv-positions {
  margin-bottom: 0.5rem;
}

.cv-position {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

.cv-position-multi {
  padding-left: 1rem;
  border-left: 1px solid #666;
  margin-bottom: 0.25rem;
}

.cv-title {
  font-weight: 500;
}

.cv-dates {
  font-size: 0.9rem;
  color: #888;
}

.cv-description {
  font-size: 0.95rem;
  margin-top: 0.5rem;
  color: #ccc;
}

.cv-description p {
  margin: 0.25rem 0;
}

.cv-links {
  margin-top: 0.75rem;
}

@media only screen and (max-width: 45em) {
  .cv-position {
    flex-direction: column;
    gap: 0.25rem;
  }

  .cv-dates {
    font-size: 0.85rem;
  }
}

/* === CV / EDUCATION === */
.cv-education {
  margin-bottom: 2rem;
}

.cv-edu {
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 2px solid #444;
}

.cv-institution {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.cv-institution a {
  color: #b5e853;
  text-decoration: none;
}

.cv-institution a:hover {
  text-decoration: underline;
}

.cv-degree {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

@media only screen and (max-width: 45em) {
  .cv-degree {
    flex-direction: column;
    gap: 0.25rem;
  }
}

/* === FOOTER === */
.site-footer {
  background-color: #1a1a1a;
  border-top: 1px solid #333;
  padding: 2rem 0 1rem;
  margin-top: 3rem;
}

.site-footer .container {
  padding-bottom: 0;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-contact,
.footer-social,
.footer-quick {
  flex: 1;
  min-width: 150px;
}

.site-footer h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
  color: #b5e853;
}

.site-footer a {
  color: #ccc;
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.15s ease-in-out;
}

.site-footer a:hover {
  color: #b5e853;
}

.footer-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.footer-social-links a {
  display: inline;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 1rem;
  text-align: center;
}

.footer-bottom p {
  color: #666;
  font-size: 0.85rem;
  margin: 0;
}

@media only screen and (max-width: 45em) {
  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
  }
}

/* === GITHUB CONTRIBUTIONS === */
.contributions {
  margin-bottom: 2rem;
}

.contributions-updated {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 1.5rem;
}

.contributions-summary h3,
.contributions-repos h3 {
  color: #b5e853;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.contributions-totals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.contributions-period {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 1rem;
}

.contributions-period h4 {
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
  color: #ccc;
}

.contributions-stats {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contributions-stats .stat {
  font-size: 0.85rem;
  color: #888;
}

.contributions-stats .stat strong {
  color: #b5e853;
  font-size: 1.1rem;
}

.contributions-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.contributions-table th,
.contributions-table td {
  padding: 0.5rem;
  text-align: left;
  border-bottom: 1px solid #333;
}

.contributions-table th {
  color: #b5e853;
  font-weight: 600;
  font-size: 0.85rem;
}

.contributions-table .repo-name a {
  color: #ccc;
}

.contributions-table .repo-name a:hover {
  color: #b5e853;
}

.contributions-table .repo-stat {
  text-align: center;
}

.contributions-table .repo-stat .total {
  display: block;
  font-weight: 600;
  color: #eee;
}

.contributions-table .repo-stat .breakdown {
  display: block;
  font-size: 0.75rem;
  color: #666;
}

.contributions-table .repo-stat .zero {
  color: #444;
}

.contributions-note {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: #666;
}

@media only screen and (max-width: 45em) {
  .contributions-table {
    font-size: 0.8rem;
  }

  .contributions-table th,
  .contributions-table td {
    padding: 0.35rem;
  }

  .contributions-table .repo-stat .breakdown {
    display: none;
  }
}

/* === PROFILE SECTION === */
@media only screen and (min-width: 45em) {
  .profile-row {
    display: flex;
    align-items: center;
  }

  .profile-row .col-6 {
    float: none;
  }

  .profile-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* === COUNTRIES VISITED === */
.countries {
  margin-bottom: 2rem;
}

.countries-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.countries-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 2rem;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 4px;
}

.countries-stat .stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: #b5e853;
}

.countries-stat .stat-label {
  font-size: 0.9rem;
  color: #888;
}

.countries-by-continent {
  margin-top: 2rem;
}

.countries-continent {
  margin-bottom: 2rem;
}

.countries-continent h3 {
  color: #b5e853;
  border-bottom: 1px solid #333;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.countries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.country-card {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 1rem;
  transition: border-color 0.15s ease-in-out;
}

.country-card:hover {
  border-color: #b5e853;
}

.country-card.favorite {
  border-left: 3px solid #b5e853;
}

.country-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.country-name {
  font-weight: 600;
  color: #eee;
}

.country-year {
  font-size: 0.85rem;
  color: #666;
}

.country-visits {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 0.25rem;
}

.country-notes {
  font-size: 0.85rem;
  color: #aaa;
  font-style: italic;
}

.countries-map-container {
  margin: 2rem 0;
}

.countries-map {
  position: relative;
  background: #111;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 1rem;
  overflow: hidden;
}

.countries-map svg {
  width: 100%;
  height: auto;
  display: block;
}

.countries-map .city-overlay {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  pointer-events: none;
}

.map-legend {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #888;
}

.legend-visited,
.legend-not-visited {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.legend-visited {
  background: #b5e853;
}

.legend-not-visited {
  background: #333;
}

.legend-city {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff6b6b;
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* City markers on map */
.city-markers .city-marker circle {
  fill: #ff6b6b;
  stroke: #fff;
  stroke-width: 1;
}

.city-markers .city-marker text {
  fill: #fff;
  font-size: 8px;
  font-family: sans-serif;
  pointer-events: none;
}

@media only screen and (max-width: 45em) {
  .countries-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .countries-stat {
    padding: 0.75rem 1rem;
  }

  .countries-grid {
    grid-template-columns: 1fr;
  }
}

/* === CITIES MAP === */
.cities {
  margin-bottom: 2rem;
}

.cities-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.cities-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 2rem;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 4px;
}

.cities-stat .stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: #b5e853;
}

.cities-stat .stat-label {
  font-size: 0.9rem;
  color: #888;
}

.cities-map-container {
  height: 500px;
  border: 1px solid #333;
  border-radius: 4px;
  margin-bottom: 2rem;
}

.cities-list {
  margin-top: 2rem;
}

.cities-list h3 {
  color: #b5e853;
  margin-bottom: 1rem;
}

.cities-list ul {
  list-style: none;
  padding: 0;
}

.cities-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #333;
}

.city-country {
  color: #888;
  font-size: 0.9rem;
}

.city-date {
  color: #666;
  font-size: 0.85rem;
}

.city-notes {
  color: #aaa;
  font-size: 0.85rem;
  font-style: italic;
  margin: 0.25rem 0 0 0;
}

@media only screen and (max-width: 45em) {
  .cities-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .cities-map-container {
    height: 350px;
  }
}
