* {
  margin: 0; /* Remove default spacing around elements */
  padding: 0; /* Remove default inner spacing */
  box-sizing: border-box; /* Include padding/border in element width */
}

/* BODY STYLING - Sets defaults for the entire page */
body {
  background: rgb(0, 0, 0) url("https://res.cloudinary.com/dlyycwdgp/image/upload/v1745770052/cherryblossom_caaafl.jpg") no-repeat center fixed;
  background-size: cover;
  font-family: "Courier New", Courier, monospace;
  line-height: 1.6;
  color: rgb(247, 237, 247);
}

/* ==========================
   DRAWER SYSTEM STYLES
   ========================== */

/* Drawer Root Container */
.drawer {
  position: relative;
  display: flex;
  min-height: 100vh;
}

/* Hidden Checkbox Toggle */
.drawer-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Drawer Content - Main page content */
.drawer-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  transition: margin-left 0.3s ease;
}

/* Drawer Side - Sidebar wrapper */
.drawer-side {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 300px;
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

/* Drawer Overlay - Dark overlay when drawer is open */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  cursor: pointer;
  z-index: 999;
}

/* When checkbox is checked - show drawer */
.drawer-toggle:checked ~ .drawer-side {
  transform: translateX(0);
}

.drawer-toggle:checked ~ .drawer-side .drawer-overlay {
  opacity: 1;
  visibility: visible;
}

/* ==========================
   NAVIGATION & HEADER
   ========================== */

/* HERO SECTION - The big title at the top */
.hero {
  background: rgba(138, 20, 105, 0.695);
  color: white;
  text-align: center;
  padding: 2rem;
  font-size: 2.5rem;
  font-weight: bold;
  border-bottom: double rgb(248, 246, 246);
}

/* NAVIGATION BAR - The menu links */
.navbar {
  background-color: rgba(0, 0, 0, 0.8);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 2px solid rgba(138, 20, 105, 0.695);
}

/* Hamburger Menu Button */
.drawer-button {
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  transition: background-color 0.3s;
  border-radius: 4px;
  border: 2px solid rgb(243, 104, 243);
}

.drawer-button:hover {
  background-color: rgba(243, 104, 243, 0.2);
}

.hamburger-icon {
  width: 24px;
  height: 24px;
  stroke: rgb(243, 104, 243);
}

/* NAVIGATION LIST - Remove default list styling */
.navbar ul {
  list-style: none; /* Remove bullet points */
  display: flex; /* Use flexbox for horizontal layout */
  gap: 2rem; /* Space between navigation items */
  flex: 1;
  justify-content: center;
}

/* NAVIGATION LINKS - Style the clickable links */
.navbar a {
  color: white; /* White text */
  text-decoration: none; /* Remove underline */
  padding: 0.5rem 1rem; /* Add space around text */
  border-radius: 4px; /* Rounded corners */
  transition: all 0.3s; /* Smooth color change on hover */
  font-weight: bold;
}

/* HOVER EFFECT - What happens when you hover over navigation */
.navbar a:hover {
  background-color: rgba(243, 104, 243, 0.2);
  color: rgb(243, 104, 243);
}

/* ==========================
   MAIN CONTENT LAYOUT
   ========================== */

/* MAIN CONTAINER - Holds main content */
.container {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Page Title */
.page-title {
  color: rgb(255, 255, 255);
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: thick double rgba(248, 246, 246, 0.688);
  text-align: center;
}

/* MAIN CONTENT AREA - Main column for content */
.main-content {
  background-color: rgba(0, 0, 0, 0.822);
  padding: 2rem;
  border-radius: 10px;
  border: thick double rgba(248, 246, 246, 0.688);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.397);
}

/* MAIN TITLE - The h2 in main content */
.main-content h2 {
  color: rgb(243, 104, 243);
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  border-bottom: 2px solid rgb(243, 104, 243);
  padding-bottom: 0.5rem;
}

/* DEV LOG ARTICLE ENTRIES */
#dev-logs article {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: rgba(0, 0, 0, 0.6);
  border-left: 4px solid rgb(243, 104, 243);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#dev-logs article h3 {
  color: rgb(243, 104, 243);
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
  font-weight: bold;
}

#dev-logs article small {
  color: rgb(180, 180, 180);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 1rem;
}

#dev-logs article p {
  color: rgb(230, 230, 230);
  margin-bottom: 0.75rem;
  line-height: 1.8;
  font-size: 1.1em;
}

#dev-logs article p:last-child {
  margin-bottom: 0;
}

/* TEXT FORMATTING WITHIN DEV LOGS */
#dev-logs article strong,
#dev-logs article b {
  color: rgb(243, 104, 243);
  font-weight: 600;
}

#dev-logs article em,
#dev-logs article i {
  font-style: italic;
  color: rgb(200, 150, 200);
}

#dev-logs article code {
  background-color: rgba(138, 20, 105, 0.3);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.9em;
  color: rgb(255, 180, 255);
  border: 1px solid rgba(243, 104, 243, 0.3);
}

#dev-logs article ul,
#dev-logs article ol {
  margin-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: rgb(230, 230, 230);
}

#dev-logs article li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

#dev-logs article blockquote {
  border-left: 3px solid rgb(243, 104, 243);
  padding-left: 1rem;
  margin: 1rem 0;
  color: rgb(230, 230, 230);
  font-style: italic;
  background-color: rgba(138, 20, 105, 0.2);
  padding: 0.75rem 1rem;
  border-radius: 4px;
}

#dev-logs article hr {
  border: none;
  border-top: 2px solid rgba(243, 104, 243, 0.5);
  margin: 1.5rem 0;
}

/* Article Images */
.article-image {
  margin: 1.5rem 0;
  text-align: center;
}

.article-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(243, 104, 243, 0.3);
  border: 2px solid rgba(243, 104, 243, 0.5);
}

.article-image figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: rgb(180, 180, 180);
  font-style: italic;
}

/* ==========================
   SIDEBAR STYLES
   ========================== */

/* SIDEBAR - Left drawer sidebar */
.sidebar {
  background: rgba(138, 20, 105, 0.9);
  padding: 2rem;
  width: 300px;
  height: 100vh;
  overflow-y: auto;
  position: relative;
  z-index: 1001;
  border-right: thick double rgba(248, 246, 246, 0.688);
}

/* PROFILE IMAGE - The profile picture */
.profile-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 1.5rem auto;
  border: 3px solid rgba(248, 246, 246, 0.688);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* SIDEBAR HEADINGS - h2 elements in the sidebar */
.sidebar h2 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-weight: bold;
}

/* SIDEBAR PARAGRAPHS - Text in the sidebar */
.sidebar p {
  color: rgb(247, 237, 247);
  line-height: 1.5;
}

/* ==========================
   RESPONSIVE DESIGN
   ========================== */

/* RESPONSIVE DESIGN - Make it work on smaller screens */
/* @media is a "media query" - it applies styles only when conditions are met */
@media (max-width: 1000px) {
  body {
    background-size: cover;
    background-attachment: scroll;
  }

  .container {
    margin: 1rem;
    padding: 0 0.5rem;
  }

  .main-content {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  /* When screen is 768px or smaller (tablets/phones) */
  
  body {
    background-size: cover;
    background-attachment: scroll;
  }

  .hero {
    font-size: 1.8rem; /* Smaller text on small screens */
    padding: 1rem; /* Less padding */
  }

  .navbar ul {
    gap: 1rem; /* Less space between items */
  }

  .navbar {
    padding: 0.75rem;
  }

  .container {
    margin: 1rem;
    padding: 0 0.5rem;
  }

  .main-content {
    padding: 1rem;
  }

  .page-title {
    font-size: 1.8rem;
  }

  /* Sidebar takes full width on mobile */
  .drawer-side {
    width: 80%;
  }

  .sidebar {
    width: 100%;
  }

  #dev-logs article {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .drawer-side {
    width: 90%;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .hero {
    font-size: 1.5rem;
  }

  #dev-logs article p {
    font-size: 1em;
  }
}

/* ===================================
   CSS CONCEPTS DEMONSTRATED:
   ===================================
   1. SELECTORS: .class, element, #id
   2. BOX MODEL: margin, padding, border
   3. COLORS: rgb(), rgba() with transparency
   4. LAYOUT: flexbox (display: flex), fixed positioning
   5. RESPONSIVE: media queries for mobile/tablet
   6. EFFECTS: hover states, transitions, shadows
   7. TYPOGRAPHY: Courier New monospace font
   8. SPACING: rem units (relative to font size)
   9. DRAWER PATTERN: checkbox hack for sidebar toggle
   10. TRANSFORMS: translateX for slide animations
   11. BACKGROUND: full-page image with fixed attachment
   12. THEMING: purple/pink cyberpunk aesthetic
   13. TRANSPARENCY: semi-transparent overlays with rgba()
*/
