/* =========================================================
   MAIN INDEX CSS
   - Wireframe styling for main content
   - Narrow page width (900px)
   - Neutral colors: #fff, #eee, #ccc
   ========================================================= */

* {
  font-family: "Segoe UI", Geneva, sans-serif !important;
  box-sizing: border-box !important;
}

html {
  overflow-y: scroll;
  scrollbar-width: none;
  min-height: 100%;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  background-color: #f0f0f0;
  background-image: url('/images/mc heads/1B.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding-top: 58px;
  padding-bottom: 0;
}

body > footer {
  position: relative !important;
  margin: 0 !important;
  z-index: 100 !important;
}

.container {
  max-width: 900px !important;
  margin: 0 auto !important;
  display: flex;
  flex: 1;
  font-family: "Segoe UI", Tahoma, Geneva, sans-serif !important;
  color: #000;
  font-size: 14px !important;
  padding: 12px !important;
  width: 100%;
  box-sizing: border-box;
}

/* Main content area */
.main-content {
  flex: 1;
  background: linear-gradient(135deg, #A0826D 0%, #8B6F47 50%, #7B5E37 100%);
  border: 2px solid #000;
  padding: 12px;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Headings in main content */
.main-content h1,
.main-content h2,
.main-content h3,
.main-content h4,
.main-content h5,
.main-content h6 {
  font-size: 14px !important;
  color: #000 !important;
}


/* Welcome hero heading */
.welcome-hero h1 {
  font-size: 14px;
  border-bottom: 2px solid #000;
  padding-bottom: 6px;
  margin: 0 0 6px 0;
}

.welcome-hero p {
  color: #000;
  font-size: 14px;
  margin: 0;
}

/* Server status display - styled in navbar.css */

/* Content hub grid */
.content-hub {
  /* Stack sections vertically so each section occupies one full row */
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 0;
}

.hub-section {
  background-color: #f3ede1;
  border: 2px solid #000;
  padding: 8px;
  min-height: auto;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
  width: 100%;
  box-sizing: border-box;
}

/* Color backgrounds for different section types */
.announcements-section {
  background-color: #f3ede1;
}

.announcements-section:nth-of-type(2) {
  background-color: #f3ede1;
}

.updates-section {
  background-color: #f3ede1;
}

.featured-builds-section {
  background-color: #f3ede1;
}

.community-highlights-section {
  background-color: #f3ede1;
}

.database-updates-section {
  background-color: #f3ede1;
}

.player-count-section {
  background: linear-gradient(135deg, #e1f3e1 0%, #d0f0d0 100%) !important;
  border-color: #4caf50 !important;
}

.player-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.player-stat-card {
  background: rgba(76, 175, 80, 0.1);
  border: 2px solid #4caf50;
  padding: 12px;
  text-align: center;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.1);
}

.stat-label {
  font-size: 12px;
  color: #333;
  margin-bottom: 6px;
  font-weight: 600;
}

.stat-value {
  font-size: 32px;
  font-weight: bold;
  color: #4caf50;
}

.section-header {
  border-bottom: 2px solid #000;
  padding-bottom: 6px;
  margin-bottom: 8px;
}

.section-header h2 {
  font-size: 14px;
  margin: 0;
  color: #000;
  border: none;
  padding: 0;
}

.section-content {
  flex: 1;
  color: #000;
  font-size: 14px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
  gap: 12px;
}

.section-content p {
  margin: 0 0 6px 0;
}

.section-content p:last-child {
  margin-bottom: 0;
}

/* News items (tidied) */
.news-item {
  border: 2px solid #000;
  padding: 8px;
  margin-bottom: 0;
  background-color: #fbfbfa;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
  width: 100%;
  box-sizing: border-box;
}

.news-item:last-child {
  margin-bottom: 0;
}

.news-item h3 {
  font-size: 14px;
  color: #111111;
  margin: 0 0 4px 0;
  padding: 0;
}

.news-item h4 {
  font-size: 14px;
  margin: 4px 0 3px 0;
  color: #222222;
}

.news-item p {
  color: #222222;
  font-size: 14px;
  margin: 0 0 6px 0;
}

.news-item ul {
  margin: 0 0 6px 16px;
  padding: 0;
}

.news-item li {
  margin: 3px 0;
}

.news-meta {
  font-size: 14px;
  color: #666666;
  margin-top: 8px;
}

/* Form styling for wireframe design */
.contact-form {
  max-width: none;
}

.form-group {
  margin-bottom: 8px;
}

.form-group label {
  display: block;
  font-size: 14px;
  color: #000;
  margin-bottom: 3px;
}

.form-group input {
  width: 100%;
  padding: 6px;
  border: 1px solid #cccccc;
  background-color: #ffffff;
  font-size: 14px;
  font-family: "Segoe UI", Tahoma, Geneva, sans-serif;
  color: #000;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Tip item */
.tip-item {
  border: 1px solid #000;
  padding: 8px;
  background-color: #f9f9f9;
}

.tip-item strong {
  display: block;
  color: #333333;
  margin-bottom: 4px;
  font-size: 14px;
}

.tip-item p {
  color: #000;
  font-size: 14px;
  margin: 0;
}

/* Buttons */
.btn,
.vote-btn,
.refresh-btn {
  display: inline-block;
  padding: 6px 10px;
  background-color: #b36351;
  border: 2px solid #000;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  font-family: "Arial", sans-serif;
  transition: all 0.05s;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn:hover,
.vote-btn:hover,
.refresh-btn:hover {
  box-shadow: 2px 2px 0 rgba(0,0,0,0.3);
  transform: translate(2px, 2px);
}

.btn-primary {
  background-color: #28a745;
  border-color: #28a745;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #1e7e34;
}

/* Vote feature container */
#feature-vote-container {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #cccccc;
}

#feature-vote-container > div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

#vote-message {
  font-size: 14px;
  color: #000;
  margin-top: 6px;
  background-color: #fbfbfa;
  border: 2px solid #000;
  padding: 8px 12px;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
}

/* Vote modal */
.vote-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.vote-modal.active,
.vote-modal[style*="display: flex"] {
  display: flex;
}

.vote-modal-content {
  background-color: #ffffff;
  border: 2px solid #000;
  padding: 12px;
  max-width: 400px;
  width: 90%;
}

.vote-modal-header {
  border-bottom: 2px solid #000;
  padding-bottom: 8px;
  margin-bottom: 8px;
}

.vote-modal-header h2 {
  font-size: 14px;
  margin: 0;
  color: #333333;
  border: none;
}

.vote-modal-body {
  margin-bottom: 8px;
}

.vote-modal-body p {
  color: #666666;
  font-size: 14px;
  margin: 0 0 6px 0;
}

.vote-modal-body p:last-child {
  margin-bottom: 0;
}

.vote-modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.vote-modal-btn {
  padding: 10px 16px;
  background-color: #dc3545;
  border: 1px solid #dc3545;
  color: #ffffff;
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
  font-family: "Segoe UI", Tahoma, Geneva, sans-serif;
  text-transform: uppercase;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.vote-modal-btn:hover {
  background-color: #c82333;
  border-color: #c82333;
}

.vote-modal-confirm {
  background-color: #28a745;
  border-color: #28a745;
  color: #ffffff;
}

.vote-modal-confirm:hover {
  background-color: #1e7e34;
}

/* Refresh icon */
.refresh-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
}

/* Server info section */
.server-info-section {
  margin-bottom: 1.5rem;
}

/* Responsive grid */
@media (max-width: 1024px) {
  /* Keep sections stacked on narrower screens as well */
  .content-hub {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 50px;
  }

  .container {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 8px !important;
  }

  .content-hub {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
  }

  .hub-section {
    min-height: auto;
    padding: 8px;
    margin: 0;
  }

  .section-header h2 {
    font-size: 14px;
    margin: 0 0 6px 0;
  }

  .section-content {
    font-size: 13px;
    padding: 0;
  }

  .btn,
  .vote-btn,
  .refresh-btn {
    padding: 6px 8px;
    font-size: 10px;
  }

  .main-content {
    padding: 8px;
    border: 1px solid #000;
    margin-top: 12px;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 8px;
    margin-top: 12px;
  }

  .container {
    padding: 8px !important;
  }

  .hub-section {
    padding: 8px;
  }

  .section-header h2 {
    font-size: 14px;
  }

  .section-content {
    font-size: 12px;
  }

  .vote-modal-content {
    padding: 8px;
  }

  .btn,
  .vote-btn,
  .refresh-btn {
    padding: 4px 8px;
    font-size: 9px;
  }
}

/* About Page Styling */
.about-section {
  margin-bottom: 20px;
}

.about-section h2 {
  font-size: 14px;
  color: #000;
  margin: 16px 0 10px 0;
  padding-bottom: 6px;
  border-bottom: 2px solid #000;
  font-weight: bold;
}

.about-section:first-child h2 {
  margin-top: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 12px 0;
}

.feature-card {
  border: 2px solid #000;
  padding: 12px;
  background-color: #fbfbfa;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.2);
}

.feature-card h3 {
  font-size: 13px;
  color: #000;
  margin: 0 0 8px 0;
  font-weight: bold;
}

.feature-card p {
  font-size: 12px;
  color: #333;
  margin: 0;
  line-height: 1.5;
}

/* Contact Form Styling */
.profile-form {
  width: 100%;
}

.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: bold;
  color: #000;
  margin-bottom: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 6px 8px;
  font-size: 13px;
  border: 2px solid #000;
  background-color: #fbfbfa;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.1);
  font-family: "Segoe UI", Tahoma, Geneva, sans-serif;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  background-color: #fff;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Submit Button */
.submit-btn,
.contact-submit-btn {
  background-color: #2ecc71;
  color: #fff;
  border: 3px solid #000;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.2);
  text-transform: uppercase;
  margin-top: 12px;
}

.submit-btn:hover,
.contact-submit-btn:hover {
  background-color: #27ae60;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.2);
  transform: translate(2px, 2px);
}

/* Stats Grid for About Page */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 12px 0;
}

.stat-card {
  border: 2px solid #000;
  padding: 12px;
  background-color: #ffa500;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.2);
  text-align: center;
}

.stat-card .stat-number {
  font-size: 18px;
  font-weight: bold;
  color: #000000;
  margin: 0 0 4px 0;
}

.stat-card .stat-label {
  font-size: 12px;
  color: #000000;
  margin: 0;
}

/* Policy Section Styling */
.policy-section {
  margin-bottom: 16px;
}

.policy-section h2 {
  font-size: 14px;
  color: #000;
  margin: 16px 0 8px 0;
  padding-bottom: 6px;
  border-bottom: 2px solid #000;
  font-weight: bold;
}

.policy-section h3 {
  font-size: 13px;
  color: #000;
  margin: 12px 0 6px 0;
  font-weight: bold;
}

.policy-section p {
  font-size: 13px;
  color: #333;
  margin: 0 0 10px 0;
  line-height: 1.6;
}

.policy-section ul,
.policy-section ol {
  margin: 10px 0 10px 20px;
  padding: 0;
}

.policy-section li {
  font-size: 13px;
  color: #333;
  margin-bottom: 6px;
  line-height: 1.5;
}

.policy-section a {
  color: #0066cc;
  text-decoration: none;
}

.policy-section a:hover {
  text-decoration: underline;
}

/* Jobs Page Styling */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
  margin: 16px 0;
}

.job-card {
  border: 2px solid #000;
  padding: 8px;
  margin-bottom: 8px;
  background-color: #fbfbfa;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.job-card:hover {
  transform: none;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
}

.job-card-header {
  background-color: #ffffff;
  padding: 0;
  border-bottom: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.job-card-header h3 {
  font-size: 14px;
  color: #111111;
  margin: 0;
  font-weight: bold;
  text-transform: uppercase;
  flex: 1;
}

.job-card-badge {
  background-color: #fbfbfa;
  color: #000;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: bold;
  border-radius: 0;
  text-transform: uppercase;
  border: 2px solid #000;
  white-space: nowrap;
  flex-shrink: 0;
}

.job-card-badge.closed {
  background-color: #be3737 !important;
  color: #000 !important;
  border: 3px solid #000 !important;
  padding: 4px 8px !important;
  font-weight: 900 !important;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.3) !important;
}

.job-card-content {
  padding: 0;
}

.job-card-content p {
  font-size: 14px;
  color: #222222;
  margin: 0 0 6px 0;
  line-height: 1.4;
}

.job-card-content strong {
  display: block;
  font-size: 14px;
  margin-top: 6px;
  margin-bottom: 3px;
  color: #222222;
  font-weight: bold;
}

.job-card-content ul {
  margin: 0 0 6px 16px;
  padding: 0;
}

.job-card-content li {
  font-size: 13px;
  color: #222222;
  margin: 3px 0;
  line-height: 1.4;
}

.job-card-footer {
  padding: 8px 0;
  border-top: none;
  text-align: center;
  background-color: transparent;
  margin-top: 8px;
}

.job-apply-btn {
  background-color: #ffa500 !important;
  color: #000 !important;
  border: 3px solid #000 !important;
  padding: 6px 12px !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  display: inline-block !important;
  letter-spacing: 0.5px !important;
  transition: all 0.05s !important;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.3) !important;
}

.job-apply-btn:hover {
  background-color: #ffb733 !important;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.3) !important;
  transform: translate(2px, 2px) !important;
}

.job-apply-btn:active {
  box-shadow: 1px 1px 0 rgba(0,0,0,0.3) !important;
  transform: translate(3px, 3px) !important;
}

.job-apply-btn.disabled {
  background-color: #95a5a6;
  cursor: not-allowed;
}

.job-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.job-modal-content {
  background-color: #fbfbfa;
  border: 3px solid #000;
  box-shadow: 8px 8px 0 rgba(0,0,0,0.3);
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
}

.job-modal-header {
  background-color: #ffa500;
  padding: 16px;
  border-bottom: 3px solid #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.job-modal-header h2 {
  color: #fff;
  margin: 0;
  font-size: 18px;
  text-transform: uppercase;
}

.job-modal-close {
  background-color: #e74c3c;
  color: #fff;
  border: none;
  padding: 6px 12px;
  font-size: 16px;
  cursor: pointer;
  font-weight: bold;
}

.job-modal-close:hover {
  background-color: #c0392b;
}

.job-modal-body {
  padding: 16px;
}

.job-modal-body h3 {
  font-size: 14px;
  color: #000;
  margin: 16px 0 8px 0;
  border-bottom: 2px solid #ffa500;
  padding-bottom: 6px;
  text-transform: uppercase;
  font-weight: bold;
}

.job-modal-body p,
.job-modal-body li {
  font-size: 13px;
  color: #333;
  line-height: 1.6;
}

/* =========================================================
   DOWNLOAD PROGRESS BAR
   ========================================================= */

.download-progress-container {
  background: #f3ede1;
  border: 2px solid #A0826D;
  border-radius: 8px;
  padding: 25px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.download-progress-header h3 {
  margin: 0 0 10px 0;
  color: #A0826D;
  font-size: 18px;
  font-weight: bold;
}

.download-progress-header p {
  margin: 0 0 20px 0;
  color: #666;
  font-size: 14px;
}

.download-progress-bar {
  width: 100%;
  height: 20px;
  background: #ddd;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
  border: 1px solid #A0826D;
}

.download-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4CAF50, #45a049);
  transition: width 0.3s ease;
  border-radius: 10px;
}

.download-progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #666;
  margin-bottom: 15px;
}

