/* Custom variables for premium Slate Obsidian & Icy Blue look & feel */
:root {
  --primary-color: #3b82f6; /* Icy Blue */
  --primary-glow: rgba(59, 130, 246, 0.4);
  --bg-gradient: linear-gradient(135deg, #1e263b 0%, #2e3d5c 50%, #1e263b 100%);
  --panel-bg: rgba(15, 23, 42, 0.7);
  --sidebar-bg: rgba(30, 41, 59, 0.85);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text-primary: #cbd5e1; /* Crisp Slate Light */
  --text-secondary: #64748b; /* Muted Slate */
  --accent-color: #60a5fa; /* Soft Blue */
  --highlight-color: #ffffff; /* Pure White */
  --link-color: #38bdf8; /* Light Cyan */
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* Reset default styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg-gradient);
  background-attachment: fixed;
  font-family: var(--font-body);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar styles */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: rgba(3, 7, 18, 0.6);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* Base headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--highlight-color);
}

/* Structure */
#bg {
  width: 100%;
  min-height: 100vh;
  padding: 0 14px 28px 14px;
}

#shadow {
  max-width: 1300px;
  margin: 0 auto;
  background: rgba(3, 7, 18, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--panel-border);
  border-top: none;
  border-radius: 0 0 24px 24px;
  padding: 0 28px 28px 28px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

/* Header */
header {
  margin-bottom: 21px;
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 14px;
}

#blogname {
  text-decoration: none;
  display: block;
}

#blogname span.bold {
  font-size: 38px;
  font-weight: 800;
  color: var(--highlight-color);
  background: linear-gradient(to right, var(--highlight-color) 20%, var(--accent-color) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

header h1 {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 400;
  margin-top: 4px;
  font-family: var(--font-body);
}

/* Navigation */
nav {
  margin-bottom: 28px;
}

#nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
}

#nav li a {
  display: inline-block;
  padding: 7px 14px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: var(--font-title);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#nav li a:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
  box-shadow: 0 0 15px var(--primary-glow);
  transform: translateY(-2px);
}

/* Layout container */
#container {
  display: flex;
  gap: 28px;
}

#left-col {
  flex: 1;
  min-width: 0; /* Avoid layout break */
}

/* Main Content Card */
.post {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.entry_header h2 {
  font-size: 28px;
  margin-bottom: 18px;
  color: var(--accent-color);
  border-left: 4px solid var(--primary-color);
  padding-left: 11px;
  line-height: 1.2;
}

.entry_header h2 a,
.entry_header h2 a:link,
.entry_header h2 a:visited {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

.entry_header h2 a:hover {
  color: var(--highlight-color);
}


.entry_content {
  font-size: 16px;
  color: var(--text-primary);
  line-height: 1.8;
}

/* Styles for inside post content */
.entry_content p {
  margin-bottom: 14px;
}

.entry_content a {
  color: var(--link-color);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px dashed var(--link-color);
  transition: all 0.2s ease;
}

.entry_content a:visited {
  color: var(--link-color);
  border-bottom-color: var(--link-color);
}

.entry_content a:hover {
  color: var(--accent-color);
  border-bottom-style: solid;
  border-bottom-color: var(--accent-color);
}

.entry_content ul, .entry_content ol {
  margin: 11px 0 18px 18px;
}

.entry_content li {
  margin-bottom: 7px;
}

/* Flex Container formatting inside resume */
.flexContainer {
  display: flex;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.4);
  padding: 8px 14px;
  border-radius: 8px;
  margin: 21px 0 7px 0;
  border: 1px solid var(--panel-border);
  font-family: var(--font-title);
  font-weight: 600;
  color: var(--highlight-color);
  font-size: 15px;
}

.flexContainer div:first-child {
  color: var(--accent-color);
}

.entry_content p.has-text-align-center {
  font-weight: 700;
  color: var(--highlight-color);
  margin-bottom: 11px;
  font-size: 17px;
}

.entry_content p.has-medium-font-size {
  font-size: 22px;
  font-weight: 800;
  color: var(--highlight-color);
  margin-top: 28px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--panel-border);
  padding-bottom: 6px;
}

/* Sidebar */
#sidebar {
  width: 380px;
  flex-shrink: 0;
}

#sidebar ul {
  list-style: none;
}

.widget {
  background: var(--sidebar-bg);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 21px;
  margin-bottom: 21px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.widget h2 {
  font-size: 18px;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-color);
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 7px;
}

.widget h2 a {
  color: inherit;
  text-decoration: none;
}

.widget ul li {
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.2);
  padding-bottom: 7px;
}

.widget ul li:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.widget ul li a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
  display: block;
}

.widget ul li a:hover {
  color: var(--accent-color);
  transform: translateX(5px);
  text-decoration: none;
}

/* BookMe widget modifications for Icy Slate theme */
.book-me-widget {
  background: var(--sidebar-bg) !important;
  border: 1px solid var(--panel-border) !important;
}

.book-me-widget h3 {
  color: var(--accent-color) !important;
  border-bottom: 1px solid var(--panel-border) !important;
}

.book-me-widget label {
  color: var(--text-primary) !important;
}

.book-me-widget input, .book-me-widget select, .book-me-widget textarea {
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: rgba(3, 7, 18, 0.5) !important;
}

.book-me-widget button {
  background: var(--primary-color) !important;
}

/* Post and content image constraints */
.entry_content img,
.wp-block-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  margin-bottom: 20px;
  display: block;
}

/* Responsiveness */
@media (max-width: 1024px) {
  #container {
    flex-direction: column;
    gap: 21px;
  }
  
  #sidebar {
    width: 100%;
  }
}

@media (max-width: 768px) {
  #shadow {
    padding: 0 14px 14px 14px;
    border-radius: 0 0 16px 16px;
  }
  
  #blogname span.bold {
    font-size: 28px;
  }
  
  .post {
    padding: 18px;
  }
  
  .flexContainer {
    flex-direction: column;
    gap: 4px;
    padding: 7px 11px;
  }
}
