/* Custom styles for AlegoricSite with SimpleGrid */
/* Modern CSS - No IE support */

:root {
  --primary-color: #1f8dd6;
  --secondary-color: #fafafa;
  --text-color: #333;
  --text-light: #666;
  --white: #ffffff;
  --border-radius: 8px;
  --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --box-shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
  --sidebar-color: #3d4f5d;
  --sidebar-light: #b0cad8;
}

/* Modern Base Styles - Replacing pure-blog.css */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
}

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

a:hover,
a:focus {
  text-decoration: underline;
}

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

/* Container and layout improvements */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Main page layout using CSS Grid */
#content {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 2rem;
  min-height: 100vh;
}

/* Sidebar improvements */
.sidebar {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.sidebar .header {
  text-align: center;
  padding: 20px 0;
}

.sidebar .brand-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.sidebar .brand-tagline {
  font-size: 1rem;
  opacity: 0.8;
  margin-bottom: 2rem;
  color: var(--white);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Navigation improvements */
.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-item {
  margin-bottom: 10px;
}

.nav-item .pure-button {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 20px;
  transition: var(--transition);
  border-radius: var(--border-radius);
  backdrop-filter: blur(10px);
}

.nav-item .pure-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-hover);
}

/* Content area improvements */
.content {
  padding: 30px;
  background-color: var(--secondary-color);
  min-height: 100vh;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

/* Posts styling - CSS Grid Layout */
.posts {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  margin-bottom: 40px;
}

/* Footer improvements */
.footer {
  border-top: 1px solid #eee;
  margin-top: 40px;
  padding-top: 20px;
}

.footer .pure-menu {
  justify-content: center;
}

.footer .pure-menu ul {
  display: flex;
  gap: 20px;
}

/* Modern CSS Responsive Design */
@media (max-width: 768px) {
  #content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .sidebar {
    min-height: auto;
    padding: 15px;
    order: 2;
  }
  
  .content {
    padding: 20px 15px;
    order: 1;
  }
  
  .sidebar .brand-title {
    font-size: 1.5rem;
  }
  
  .posts {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .nav-item {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 5px;
  }
  
  .nav-item .pure-button {
    width: auto;
    padding: 8px 16px;
  }
}

/* Additional modern features */
@supports (backdrop-filter: blur(10px)) {
  .nav-item .pure-button {
    backdrop-filter: blur(10px);
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --text-color: #e0e0e0;
    --text-light: #b0b0b0;
    --secondary-color: #1a1a1a;
    --white: #2d2d2d;
  }
}

/* Modern card-like styling for posts */
.post {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 20px;
  margin-bottom: 20px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.post::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), #0078d7);
}

.post:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

/* Post header improvements */
.post-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.post-avatar {
  margin-right: 15px;
  flex-shrink: 0;
}

.post-title {
  margin: 0;
  font-size: 1.3rem;
}

.post-title a {
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
}

.post-title a:hover {
  color: var(--primary-color);
  text-shadow: 0 1px 2px rgba(31, 141, 214, 0.2);
}

.post-meta {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 5px 0;
}

/* Loading and animation improvements */
.fade-in {
  animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}