/* ==========================================================================
   CSS Custom Properties for theming
   ========================================================================== */
:root {
    --primary-color: #2d7a30;        /* Darker green for links/actions */
  --primary-hover: #256626;        /* Even darker on hover */
  --secondary-color: #ffffff;
  --accent-color: #dc2626;         /* Muted red for alerts/accents */
  --text-color: #1f2937;          /* Near-black for main text */
  --text-muted: #6b7280;          /* Grey for secondary text */
  --bg-color: #FCFCFB;            /* Pure white background */
  --bg-secondary: #f4f1ea;        /* Very light grey alternative */
  --border-color: #ede5d3;        /* Light grey borders */
  --border-color-hover: #2563eb;  /* Blue on hover */
  --header-bg: #ffffff;
  --sidebar-bg: #FCFCFB;          /* Subtle grey distinction */
  --content-bg: #ffffff;
  --card-bg: #FCFCFB;
  --header-height: 60px;
  --sidebar-width: 280px;
  --transition: 0.2s ease;
  --shadow: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-hover: 0 4px 6px rgba(0,0,0,0.1);
  --border-radius: 5px;
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --forum-container-bg: #f4f1ea; /* Slightly darker grey for forum areas */
  --photo-frame: #ffffff; 
  --question: #f0f8ff; 
  --paper-pattern-color: rgba(230, 221, 221, 0.15);
  --paper-fade-color: rgba(255, 255, 255, 0.9);
  --paper-container-bg:
    radial-gradient(
      circle at center,
      transparent 20%,
      var(--paper-fade-color) 80%
    ),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 8px,
      var(--paper-pattern-color) 8px,
      var(--paper-pattern-color) 9px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 8px,
      var(--paper-pattern-color) 8px,
      var(--paper-pattern-color) 9px
    );
}

/* Dark mode variables */
[data-theme="dark"] {
  --primary-color: #4CAF50;
  --primary-hover: #45a049;
  --secondary-color: #2d2d2d;
  --text-color: #C8C8C8;
  --text-muted: #adb5bd;
  --bg-color: #1a1a1a;
  --bg-secondary: #2d2d2d;
  --border-color: #495057;
  --header-bg: #2d2d2d;
  --sidebar-bg: #1a1a1a;
  --content-bg: #1a1a1a;
  --card-bg: #2d2d2d;
  --shadow: 0 2px 4px rgba(0,0,0,0.3);
  --shadow-hover: 0 4px 12px rgba(0,0,0,0.4);
  --forum-container-bg: #1a1a1a;
  --photo-frame: #B1B1B1; 
  --question: #C8C8C8;
  --paper-pattern-color: rgba(61, 56, 56, 0.15);
  --paper-fade-color: rgba(0, 0, 0, 0.9);
  --paper-container-bg:
    radial-gradient(
      circle at center,
      transparent 20%,
      var(--paper-fade-color) 80%
    ),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 8px,
      var(--paper-pattern-color) 8px,
      var(--paper-pattern-color) 9px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 8px,
      var(--paper-pattern-color) 8px,
      var(--paper-pattern-color) 9px
    );  
}

/* ==========================================================================
   Typography - Lexend Font Implementation
   ========================================================================== */
:root {
    --font-family-primary: Georgia, serif; 
    --font-family-system: 'Roboto', sans-serif;
    --font-family-title: Georgia, serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 800;
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.625;
}

/* Reset and base styles */
* {
  box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    font-feature-settings: 'kern' 1, 'liga' 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 16px;
    transition: background-color var(--transition), color var(--transition);
    text-rendering: optimizeSpeed; 
    font-variant-ligatures: common-ligatures;
    font-kerning: normal;

}



/* ==========================================================================
   Typography
   ========================================================================== */

a {color: var(--primary-color);}
a:hover {color: var(--primary-hover);}
p {font-size: 1.1rem;}

   h1, h2, h3, h4, h5, h6,
.heading,
.site-title,
.post-title,
.widget-title,
.notes-title {
    font-family: var(--font-family-title);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-tight);
}

@media (max-width: 768px) {
    
    p {
        font-size: 1.1rem;
    }

}

h1, .h1 {
    font-size: 2.5rem;
    font-weight: var(--font-weight-normal);
}

h2, .h2 {
    font-size: 1.875rem;
    font-weight: var(--font-weight-normal);
}

h3, .h3 {
    font-size: 1.5rem;
    font-weight: var(--font-weight-semibold);
}

h4, .h4 {
    font-size: 1.25rem;
    font-weight: var(--font-weight-medium);
}

h5, .h5 {
    font-size: 1.125rem;
    font-weight: var(--font-weight-medium);
}

h6, .h6 {
    font-size: 1rem;
    font-weight: var(--font-weight-medium);
}

.main-navigation,
.sidebar-menu,
.filter-controls,
.topic-meta,
.post-meta,
.breadcrumbs {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-normal);
}

.btn,
button,
input[type="submit"],
input[type="button"],
.button {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.01em;
}

input,
textarea,
select {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-normal);
}

code,
pre,
kbd,
samp {
    font-family: var(--font-family-title);
    font-size: 1rem;
    margin: 0 0 1.7rem;
    text-wrap: inherit;
}

/* ==========================================================================
   Material Design Icons
   ========================================================================== */
.material-icon {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 1.2em;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    vertical-align: middle;
}

.material-icon.size-small { font-size: 1rem; }
.material-icon.size-medium { font-size: 1.2rem; }
.material-icon.size-large { font-size: 1.5rem; }
.material-icon.size-xl { font-size: 2rem; }

.menu-icon {
    margin-right: 0.5rem;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.menu-item:hover .menu-icon {
    opacity: 1;
}


