/*************************************************************
 * DEWORLD MINECRAFT PROJECT — FORUM STRUCTURE (style.css)
 * Modernized PunBB Core Stylesheet
 *************************************************************/

/* ==========================================================
   A - SETUP & BASE CONFIGURATION
   ========================================================== */

/* A1. Import the color scheme */
@import url("style_cs.1792054610.css");

/* A2. Custom Properties (Layout & Typography Defaults) */
:root {
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-code: "JetBrains Mono", "Fira Code", Consolas, Monaco, monospace;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  
  --transition-fast: 0.2s ease;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.25);
}

/* A3. Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
}

body {
  font-family: var(--font-main);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.punbb * {
  margin: 0;
}

.punbb ul, .punbb dl, .punbb li, .punbb dd, .punbb dt {
  padding: 0;
  list-style: none;
}

.punbb img {
  border: none;
  max-width: 100%;
  height: auto;
}

.punbb a {
  text-decoration: none;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.punbb a:hover {
  text-decoration: underline;
}

/* A4. Form Inputs & Typography Base */
.punbb textarea, 
.punbb input, 
.punbb select, 
.punbb button {
  font-family: var(--font-main);
  font-size: 1em;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.punbb pre, .punbb code {
  font-family: var(--font-code);
  font-size: 0.9em;
}

.punbb h1, .punbb h2, .punbb h3, .punbb h4 {
  font-weight: 600;
  line-height: 1.3;
}

/* A5. Accessibility / Hidden Elements */
.acchide,
#pun-index #pun-main h1,
#pun-navlinks h2,
#pun-pagelinks h2,
#pun-status h2,
#pun-ulinks h2,
.punbb .forum h2,
.punbb .multipage .topic h2,
.punbb dl.post-sig dt span,
.punbb p.crumbs strong,
.punbb .divider hr,
.punbb .required label em,
.punbb .formsubmit label,
.punbb .submitfield label,
.punbb .modmenu label,
#pun-userlist .main h2 {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}


/* ==========================================================
   B - PAGE LAYOUT & CONTAINER STRUCTURE
   ========================================================== */

#pun {
  max-width: 1280px;
  margin: 20px auto;
  padding: 0 15px;
}

.punbb {
  width: 100%;
}

#pun-redirect, #pun-maint {
  max-width: 600px;
  margin: 60px auto;
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.punbb .section, .punbb .main {
  margin-bottom: 20px;
}

.punbb .category, .punbb .post {
  margin-top: 15px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.punbb .container {
  border-radius: var(--radius-md);
  padding: 15px;
}

.punbb .section h2, #pun-main h1, #pun-main h2, #pun-stats h2 {
  padding: 12px 18px;
  font-size: 1.1em;
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
}


/* ==========================================================
   C - HEADER & NAVIGATION (DEWORLD BRANDING)
   ========================================================== */

/* Header & Title */
#pun-title {
  margin-bottom: 15px;
  padding: 20px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#pun-title h1 span {
  font-size: 1.8em;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Navigation Links Bar */
#pun-navlinks .container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 15px;
}

#pun-navlinks li a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  display: inline-block;
}

/* User Links & Status Bar */
#pun-ulinks .container, #pun-status .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  border-radius: var(--radius-sm);
  margin-bottom: 15px;
  font-size: 0.9em;
}

#pun-ulinks li {
  display: inline-block;
  margin-right: 10px;
}

/* Breadcrumbs */
#pun-crumbs1 p.container, #pun-crumbs2 .container {
  padding: 10px 15px;
  font-size: 0.95em;
  border-radius: var(--radius-sm);
  margin-bottom: 15px;
}


/* ==========================================================
   D - FORUM TABLES & CATEGORIES
   ========================================================== */

.punbb .main table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.punbb .main th {
  padding: 12px 15px;
  text-align: left;
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.punbb .main td {
  padding: 14px 15px;
  vertical-align: middle;
}

/* Column Widths */
.punbb .main .tcl { width: 55%; }
.punbb .main .tc2, .punbb .main .tc3, .punbb .main .tcmod { width: 10%; text-align: center; }
.punbb .main .tcr { width: 25%; }

#pun-index .tcl h3 {
  font-size: 1.1em;
  margin-bottom: 4px;
}


/* ==========================================================
   E - TOPICS & POSTS STRUCTURE
   ========================================================== */

/* Post Layout using Flexbox/Grid */
.punbb .post {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

.punbb .post .container {
  display: grid;
  grid-template-columns: 220px 1fr;
  padding: 0;
}

/* Author Profile Box (Left Side) */
.punbb .post .post-author {
  padding: 20px 15px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.pa-author {
  font-size: 1.1em;
  font-weight: 700;
  margin-bottom: 8px;
}

.pa-title {
  font-size: 0.85em;
  opacity: 0.8;
  margin-bottom: 10px;
}

/* Post Content & Body (Right Side) */
.punbb .post-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
}

.punbb .post-content {
  min-height: 100px;
}

.punbb .post-content p {
  margin-bottom: 1em;
}

/* Quotes and Code Blocks */
.punbb .post-content .quote-box, 
.punbb .post-content .code-box {
  margin: 12px 0;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border-left: 4px solid;
}

.punbb .quote-box cite, 
.punbb .code-box strong.legend {
  display: block;
  font-style: normal;
  font-weight: 600;
  margin-bottom: 8px;
}

/* Signatures */
.punbb .post-sig dt {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 15px;
  padding-top: 10px;
}

/* Post Action Links (Bottom) */
.punbb .post-links ul {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 10px;
  margin-top: 15px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.punbb .post-links li a {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.85em;
}


/* ==========================================================
   F - FORMS, BUTTONS & USER PROFILES
   ========================================================== */

/* Form Elements */
.punbb fieldset {
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 15px;
}

.punbb textarea, .punbb input[type="text"], .punbb input[type="password"], .punbb select {
  padding: 8px 12px;
  outline: none;
  width: 100%;
  max-width: 500px;
}

.punbb textarea {
  max-width: 100%;
  min-height: 150px;
  resize: vertical;
}

/* Buttons */
.punbb input[type="submit"], .punbb input[type="button"], .punbb .button {
  padding: 8px 18px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  border-radius: var(--radius-sm);
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.punbb input[type="submit"]:hover, .punbb input[type="button"]:hover {
  transform: translateY(-1px);
}

/* User Profile Section */
#profile .container {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
}


/* ==========================================================
   G - RESPONSIVE DESIGN (MOBILE ADAPTATION)
   ========================================================== */

@media (max-width: 768px) {
  #pun {
    margin: 10px auto;
    padding: 0 8px;
  }

  .punbb .post .container {
    grid-template-columns: 1fr;
  }

  .punbb .post .post-author {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .punbb .main .tc2, .punbb .main .tc3 {
    display: none;
  }

  .punbb .main .tcl { width: 70%; }
  .punbb .main .tcr { width: 30%; }

  #profile .container {
    grid-template-columns: 1fr;
  }
}