/* ============================================
   BASE STYLES - Foundation & Variables
   ============================================ */

/* Base Variables - Light Mode */
:root {
  --bg: #f8fafb;
  --card: #ffffff;
  --card-secondary: #f9fafb;
  --input-bg: #ffffff;
  --input-border: #e5e7eb;
  --primary: #0f1724;
  --accent: #1fb6ff;
  --accent-dark: #0e9cdc;
  --danger: #ef4444;
  --success: #10b981;
  --warning: #f59e0b;
  --muted: #6b7280;
  --text-secondary: #6b7280;
  --border: #e5e7eb;
  --round: 16px;
  --transition: all 0.3s ease;
  --soft-shadow: 0 6px 18px rgba(15,23,36,0.08);
  --medium-shadow: 0 10px 30px rgba(15,23,36,0.12);
  --section-padding: 32px;    /* NEW */
}

/* Dark Mode Variables */
[data-theme="dark"] {
  --bg: #0f1724;
  --card: #1a2332;
  --card-secondary: #111827;
  --input-bg: #1a2332;
  --input-border: #2d3748;
  --primary: #f8fafb;
  --text-secondary: #9ca3af;
  --muted: #9ca3af;
  --border: #2d3748;
  --soft-shadow: 0 6px 18px rgba(0,0,0,0.3);
  --medium-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Dark mode smooth transition */
body {
  transition: background-color 0.3s ease, color 0.3s ease;
}

.bg-primary{
    background-color:var(--accent) !important;
}

html { 
  font-size: 15px; 
  scroll-behavior: smooth;
}
@media (min-width: 768px) { html { font-size: 16px; } }

body {
    background: var(--bg);
    color: var(--primary);
    font-family: "Quicksand", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
}

body.sidebar-open {
  overflow: hidden;
}

a{
    color:var(--accent);
    font-weight:700;
    text-decoration:none !important;
}

h0, h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 0.5em;
}
h0{font-size:3.5rem;}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
  max-width: 1140px;
}
@media (max-width: 1200px) { .container { max-width: 960px; } }
@media (max-width: 992px) { .container { max-width: 720px; } }
@media (max-width: 768px) { .container { max-width: 540px; } }
@media (max-width: 576px) {
  .container {
    max-width: 100%;
    padding-right: 12px;
    padding-left: 12px;
  }
}

.container-fluid {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  max-width: 1400px; 
  margin: 0 auto; 
  padding: 0 20px;
}
@media (max-width: 576px) {
  .container-fluid {
    padding-left: 12px;
    padding-right: 12px;
  }
}
@media (max-width: 480px) {
  .container-fluid {
    padding-left: 10px;
    padding-right: 10px;
  }
}

.app-shell { 
  display: flex; 
  min-height: 100vh; 
  position: relative;
  flex-direction: column;
}

.grid { 
  display: grid; 
  grid-template-columns: 1fr 240px; 
  gap: 24px; 
}
@media (max-width: 1200px) {
  .grid { grid-template-columns: 1fr 200px; gap: 20px; }
}
@media (max-width: 992px) { .grid { grid-template-columns: 1fr; } }

.feed-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
  padding: 0 40px;
}
@media (max-width: 1200px) {
  .feed-grid { grid-template-columns: 1fr 280px; gap: 32px; padding: 0 32px; }
}
@media (max-width: 992px) { .feed-grid { grid-template-columns: 1fr; padding: 0; } }
@media (max-width: 576px) { .feed-grid { padding: 0; } }

.feed-grid aside {
  position: fixed;
  top: calc(70px + 24px);
  right: 40px;
  width: 350px;
  height: calc(100vh - 70px - 48px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}
@media (max-width: 1200px) {
  .feed-grid aside { width: 280px; right: 24px; top: calc(70px + 24px); height: calc(100vh - 70px - 48px); }
}
@media (max-width: 992px) {
  .feed-grid aside { position: static; width: 100%; height: auto; top: auto; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.pull-right{
    float:right;
}