/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Import legacy posts styles */
@import 'legacy_posts.css';

/* Import footer styles */
@import 'footer.css';

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #24292e;
  background-color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.container {
  max-width: 768px;
  margin: 0 auto;
  padding: 0 20px;
}

header.site-header {
  background-color: #24292e;
  color: #fff;
  padding: 12px 0;
  margin-bottom: 40px;
}

header.site-header .header-inner {
  max-width: 768px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header.site-header .site-title {
  font-size: 20px;
  font-weight: 600;
}

header.site-header .site-title a {
  color: #fff;
  text-decoration: none;
}

header.site-header .site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
}

header.site-header .site-nav a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
}

header.site-header .site-nav a:hover {
  color: #fff;
}

header.site-header .site-nav .user-info {
  color: rgba(255,255,255,0.8);
}

header.site-header .login-btn-submit {
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}

header.site-header .login-btn-submit:hover {
  color: #fff;
}

.flash-notice, .flash-alert {
  max-width: 768px;
  margin: 0 auto 20px;
  padding: 12px 20px;
  border-radius: 4px;
  font-size: 14px;
}

.flash-notice {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.flash-alert {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

a {
  color: #0366d6;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}
