/* ===== RESET DEFAULT BROWSER STYLES ===== */
/* Notes:
     * ensures all elements use border-box sizing.
     Removes default margin and padding applied by browsers. */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===== BODY AND OPTIONAL BACKGROUND ===== */
/* Notes:
     Sets default font, flex layout for stacking header/main/footer, and minimum viewport height.
     Optional background can be added with background-image. */
body {
  font-family: 'Roboto', sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;

  /* Optional background image: */
  /* background-image: url('background.jpg'); */
  /* background-size: cover; */
  /* background-position: center; */
  /* background-attachment: fixed; */
}

/* ===== HEADER ===== */
header {
  background-color: #222;
  color: #fff;
  text-align: center;
  padding: 1rem;
  font-size: 1.5rem;
  font-weight: bold;
}

/* ===== NAVIGATION BAR ===== */
nav {
  background-color: #333;
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 0.5rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background 0.3s;
}

nav a:hover {
  background-color: #555;
}

/* ===== MAIN CONTAINER ===== */
.main-container {
  display: flex;
  flex: 1;
  padding: 1rem;
  gap: 1rem;
}

/* ===== SIDEBAR ===== */
aside {
  flex: 0 0 250px;
  background-color: #f4f4f4;
  padding: 1rem;
  border-radius: 8px;
  height: fit-content;
  position: sticky;
  top: 1rem;
}

/* Notes:
     Profile picture is circular with a dark border and optional shadow. */
aside img {
  width: 100%;
  border-radius: 50%;           /* circular shape */
  margin-bottom: 1rem;
  border: 4px solid #222;       /* circular border */
  box-shadow: 0 2px 6px rgba(0,0,0,0.3); /* subtle shadow */
}

/* ===== CONTENT AREA ===== */
.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ===== SCROLLABLE BOXES WITH HEADER ===== */
.blog-box, .photo-gallery-box {
  background-color: #fff;
  border-radius: 8px;
  border: 1px solid #ccc;
  display: flex;
  flex-direction: column;
  height: 300px;   /* fixed height for scrolling */
  overflow: hidden; 
}

.box-header {
  background-color: #eee;
  padding: 0.5rem 1rem;
  font-weight: bold;
  border-bottom: 1px solid #ccc;
  flex-shrink: 0;
}

.box-content {
  padding: 1rem;
  overflow-y: auto;
  flex: 1;
}

/* ===== PHOTO GALLERY GRID ===== */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.photo-gallery img {
  width: 100%;
  height: 150px;             /* uniform height for all images */
  object-fit: cover;         /* fills grid cell without stretching */
  border-radius: 8px;        /* rounded corners */
  border: 2px solid #222;    /* border around image */
  padding: 2px;               /* spacing inside border */
  box-sizing: border-box;    /* ensures border + padding stay within grid cell */
  transition: transform 0.3s; 
}

.photo-gallery img:hover {
  transform: scale(1.05);    /* subtle zoom on hover */
}

/* ===== FOOTER ===== */
footer {
  background-color: #222;
  color: #fff;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  position: relative;
}

/* Footer "made by" button floats right on desktop */
footer .made-by {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

footer .made-by img {
  width: 88px;
  height: 31px;
  transition: transform 0.3s;
}

footer .made-by img:hover {
  transform: scale(1.2);
}

/* ===== RESPONSIVE FOR MOBILE ===== */
@media (max-width: 768px) {
  .main-container {
    flex-direction: column;
  }

  aside {
    width: 100%;
    position: relative;
    top: 0;
  }

  footer .made-by {
    position: relative;
    transform: none;
    display: inline-block;
    margin-left: 0.5rem;
    top: auto;
  }
}
