/* Technogumbo Modern 2025 Developer Blog Design */

/* ============================================
   CSS Variables for Theming
   ============================================ */
:root {
  /* Light mode colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #e9ecef;
  --bg-code: #f6f8fa;
  --bg-card: #ffffff;

  --text-primary: #1a1a1a;
  --text-secondary: #4a5568;
  --text-tertiary: #718096;

  --accent-primary: #009999;
  --accent-secondary: #06b6d4;
  --accent-hover: #2563eb;

  --border-color: #FF9900;
  --border-focus: #3b82f6;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

  /* Spacing scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
  --font-mono: 'SF Mono', 'Monaco', 'Cascadia Code', 'Courier New', monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;

  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

  /* Layout */
  --max-width-content: 900px;
  --max-width-full: 1280px;
  --sidebar-width: 240px;

  /* Border radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 250ms ease-in-out;
}

/* Dark mode removed per user request */

/* ============================================
   Reset & Base Styles
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--line-height-relaxed);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: var(--line-height-tight);
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

h1 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-lg);
  letter-spacing: -0.025em;
}

h1 a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

h1 a:hover {
  color: var(--accent-primary);
}

h2 {
  font-size: var(--text-3xl);
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--text-2xl);
  color: var(--accent-primary);
  font-weight: 600;
}

h4 {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  font-weight: 600;
  font-style: normal;
}

p {
  margin-bottom: var(--space-lg);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
}

/* ============================================
   Layout - Works with existing HTML structure
   ============================================ */
.OuterContainer {
  min-height: 100vh;
  width: 100%;
}

.CenterContainer {
  width: 100%;
  max-width: var(--max-width-full);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.InsideContainer {
  width: 100%;
  margin: 0 auto;
  font-size: 0; /* Remove whitespace between inline-block elements */
}

/* Restore font-size for child elements */
.InsideContainer > * {
  font-size: 1rem;
}

/* Header - full width */
.Header {
  /*background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);*/
  border-bottom: 1px solid var(--border-color);
  padding: var(--space-3xl) 0;
  text-align: center;
  margin-bottom: var(--space-2xl);
  width: 100%;
}

.Header img {
  max-width: 100%;
  margin: 0 auto;
  display: block;
}

/* Three column layout using inline-block (compatible with existing structure) */
.LeftColumb {
  width: 100%;
  vertical-align: top;
  margin-bottom: var(--space-2xl);
}

.CenterColumb {
  width: 100%;
  vertical-align: top;
}

.RightColumb {
  display: none; /* Hidden on mobile */
  vertical-align: top;
}

/* Tablet: side-by-side */
@media (min-width: 768px) {
  .LeftColumb {
    width: 240px;
    display: inline-block;
    margin-right: 20px;
    margin-bottom: 0;
    vertical-align: top;
  }

  .CenterColumb {
    width: calc(100% - 260px);
    display: inline-block;
    vertical-align: top;
  }
}

/* Desktop: three columns */
@media (min-width: 1200px) {
  .LeftColumb {
    width: 240px;
    margin-right: 20px;
  }

  .CenterColumb {
    width: calc(100% - 480px);
    margin-right: 20px;
  }

  .RightColumb {
    display: inline-block;
    width: 200px;
    vertical-align: top;
  }
}

/* Footer - full width */
.Footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
  color: var(--text-tertiary);
  font-size: var(--text-sm);
  margin-top: var(--space-3xl);
  width: 100%;
  clear: both;
}

/* ============================================
   Navigation / Left Column
   ============================================ */
.LeftColumb .menuItem {
  display: block;
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-weight: 600;
  font-size: var(--text-base);
  text-align: center;
  text-decoration: none;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.LeftColumb .menuItem:hover {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.LeftColumb .menuItem img {
  width: 100%;
  border-radius: var(--radius-sm);
}

.datepicker_trigger {
  display: block;
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-weight: 600;
  font-size: var(--text-base);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.datepicker_trigger:hover {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.ColumbContainer {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-top: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.ColumbContainer h3 {
  margin-top: 0;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--accent-primary);
}

.ColumbContainer a {
  color: var(--accent-primary);
  font-size: var(--text-sm);
}

.adLeftCol {
  width: 100%;
  min-height: 250px;
  margin-top: var(--space-lg);
}

/* ============================================
   Main Content Column
   ============================================ */
.CenterColumb .adLeaderboard {
  width: 100%;
  max-width: 728px;
  height: 90px;
  margin: 0 auto var(--space-2xl);
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   Blog Post Cards
   ============================================ */
.MessagePost {
  background: var(--bg-card);
  /*border: 1px solid var(--border-color);*/
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  margin-bottom: var(--space-2xl);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base);
}

.MessagePost:hover {
  box-shadow: var(--shadow-lg);
}

.MessagePost h1 {
  margin-top: 0;
  font-size: var(--text-3xl);
}

.MessagePost h2 {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-lg);
}

/* Image alignment in posts */
.MessagePost .leftimage {
  float: left;
  margin: 0 var(--space-xl) var(--space-lg) 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.MessagePost .leftimage img {
  display: block;
}

.MessagePost .rightimage {
  float: right;
  margin: 0 0 var(--space-lg) var(--space-xl);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.MessagePost .rightimage img {
  display: block;
}

/* ============================================
   Code Blocks
   ============================================ */
.CodeExample {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: var(--line-height-normal);
  background: var(--bg-code);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin: var(--space-xl) 0;
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

/* ============================================
   Comments Section
   ============================================ */
.CommentContainer {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-primary);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  display: flex;
  gap: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}

.CommentContainer:hover {
  transform: translateX(4px);
}

.CommentContainer .UserPostInfo {
  flex-shrink: 0;
  width: 80px;
  text-align: center;
}

.CommentContainer .UserPostInfo img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin: 0 auto var(--space-sm);
  border: 2px solid var(--border-color);
}

.CommentContainer .InlinePostInfo {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.CommentContainer .CommentTime {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  font-weight: 500;
  text-align: right;
  margin-bottom: var(--space-sm);
}

.CommentContainer p {
  color: var(--text-secondary);
  margin: 0;
  word-wrap: break-word;
  line-height: var(--line-height-normal);
}

/* ============================================
   Comment Form
   ============================================ */
.CommentMessageTab {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-bottom: none;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  padding: var(--space-md) var(--space-lg);
  margin-top: var(--space-2xl);
  display: inline-block;
}

.CommentMessageTab p {
  margin: 0;
  font-weight: 600;
  color: var(--text-primary);
  font-size: var(--text-base);
}

.PostMessageContainer {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0 var(--radius-md) var(--radius-md) var(--radius-md);
  padding: var(--space-xl);
  margin-bottom: var(--space-2xl);
  box-shadow: var(--shadow-sm);
}

.PostMessageContainer textarea {
  width: 100%;
  padding: var(--space-md);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--text-primary);
  background: var(--bg-primary);
  resize: vertical;
  min-height: 120px;
  margin-bottom: var(--space-md);
  transition: border-color var(--transition-fast);
}

.PostMessageContainer textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.PostMessageContainer input[type="text"] {
  width: 100%;
  padding: var(--space-md);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--text-primary);
  background: var(--bg-primary);
  margin-bottom: var(--space-md);
  transition: border-color var(--transition-fast);
}

.PostMessageContainer input[type="text"]:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.PostMessageContainer input[type="submit"],
.PostMessageContainer button {
  background: var(--accent-primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-xl);
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.PostMessageContainer input[type="submit"]:hover,
.PostMessageContainer button:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.PostCommentTab {
  text-align: right;
  margin-top: var(--space-lg);
}

.PostCommentTab a {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  background: var(--accent-primary);
  color: white;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.PostCommentTab a:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ============================================
   Navigation Links
   ============================================ */
.NoscriptNav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: var(--space-2xl) 0;
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.NoscriptNav a {
  padding: var(--space-sm) var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--accent-primary);
  font-weight: 600;
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
}

.NoscriptNav a:hover {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

.NoscriptNav .Previous {
  /* Styles applied via parent */
}

.NoscriptNav .Next {
  /* Styles applied via parent */
}

/* ============================================
   Profile Section
   ============================================ */
.profile {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-2xl);
  display: flex;
  gap: var(--space-xl);
  box-shadow: var(--shadow-sm);
}

.profile .profileImage {
  flex-shrink: 0;
}

.profile .profileImage img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--border-color);
}

.profile .profileText {
  flex: 1;
}

.profile a {
  color: var(--accent-primary);
  font-size: var(--text-sm);
}

/* ============================================
   Utility Classes
   ============================================ */
.highlight {
  background-color: rgba(59, 130, 246, 0.1);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
}

.DynaTagCloud {
  font-style: italic;
  color: var(--text-tertiary);
}

.DisplayFont {
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: var(--text-base);
}

/* ============================================
   Mobile Responsive Adjustments
   ============================================ */
@media (max-width: 767px) {
  :root {
    --text-4xl: 1.75rem;
    --text-3xl: 1.5rem;
    --text-2xl: 1.25rem;
  }

  .CenterContainer {
    padding: 0 var(--space-md);
  }

  .Header {
    padding: var(--space-xl) 0;
  }

  .MessagePost {
    padding: var(--space-lg);
  }

  .MessagePost .leftimage,
  .MessagePost .rightimage {
    float: none;
    margin: var(--space-lg) 0;
  }

  .CommentContainer {
    flex-direction: column;
  }

  .CommentContainer .UserPostInfo {
    width: 100%;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    text-align: left;
  }

  .CommentContainer .UserPostInfo img {
    margin: 0;
  }

  .profile {
    flex-direction: column;
    text-align: center;
  }

  .profile .profileImage img {
    margin: 0 auto;
  }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
  .LeftColumb,
  .RightColumb,
  .adLeaderboard,
  .adLeftCol,
  .PostMessageContainer,
  .CommentMessageTab,
  .PostCommentTab,
  .NoscriptNav {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }

  .MessagePost {
    border: 1px solid #000;
    box-shadow: none;
  }
}
