/**
 * @file
 * Main stylesheet for NextDC theme.
 */

/* Global font family - Jost */
body,
.nextdc-body {
  font-family: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Base styles */
.nextdc-body {
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #333;
  margin-top: 0 !important;
}

.nextdc-page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header styles */
.nextdc-top-header {
  background-color: #f5f5f5;
  padding: 0.5rem 0;
}

/* Main content */
.nextdc-main-content {
  flex: 1;
  padding: 0;
}

.nextdc-content-wrapper {
  display: flex;
  gap: 2rem;
}

.nextdc-content {
  flex: 1;
}

.nextdc-content-full-width .nextdc-content {
  width: 100%;
}

.nextdc-sidebar {
  width: 300px;
  flex-shrink: 0;
}

/* Messages */
.nextdc-messages {
  margin-bottom: 1rem;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Branding */
.nextdc-branding {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nextdc-branding__logo img {
  max-height: 60px;
  width: auto;
}

.nextdc-branding__name {
  font-size: 1.5rem;
  font-weight: bold;
}

.nextdc-branding__name a {
  text-decoration: none;
  color: inherit;
}

.nextdc-branding__slogan {
  font-size: 0.9rem;
  color: #666;
}

/* Front page specific */
.nextdc-front-page .nextdc-content-wrapper {
  flex-direction: column;
}

/* 404 Page Styles */
.nextdc-page-404 {
  background-color: #f8f9fa;
}

.nextdc-404-content {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding: 4rem 0;
}

.nextdc-404-wrapper {
  text-align: center;
  max-width: 600px;
  padding: 2rem;
}

.nextdc-404-title {
  font-family: "Jost", sans-serif;
  font-size: 8rem;
  font-weight: 700;
  line-height: 1;
  color: #3BB7B3;
  margin: 0 0 1rem 0;
  letter-spacing: -0.02em;
}

.nextdc-404-subtitle {
  font-family: "Jost", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #201850;
  margin: 0 0 1rem 0;
  text-transform: uppercase;
  letter-spacing: 0.032em;
}

.nextdc-404-message {
  font-family: "Jost", sans-serif;
  font-size: 1.125rem;
  color: #666;
  margin: 0 0 2.5rem 0;
  line-height: 1.6;
}

.nextdc-404-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.nextdc-button {
  display: inline-block;
  padding: 14px 32px;
  font-family: "Jost", sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.032em;
  border: 2px solid transparent;
  border-radius: 0;
  transition: all 0.3s ease;
  cursor: pointer;
  line-height: 1.3;
}

.nextdc-button--primary {
  background-color: #3BB7B3;
  color: #ffffff;
  border-color: #3BB7B3;
}

.nextdc-button--primary:hover,
.nextdc-button--primary:focus {
  background-color: #201850;
  color: #ffffff;
  border-color: #201850;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
  .nextdc-content-wrapper {
    flex-direction: column;
  }

  .nextdc-sidebar {
    width: 100%;
  }

  .nextdc-404-title {
    font-size: 5rem;
  }

  .nextdc-404-subtitle {
    font-size: 1.75rem;
  }

  .nextdc-404-message {
    font-size: 1rem;
  }

  .nextdc-404-content {
    min-height: 50vh;
    padding: 2rem 0;
  }
}

.ck.ck-balloon-panel.ck-balloon-panel_visible {
  z-index: 999999 !important;
}
