/* General Styles */

/* HOME PAGE TRIANGLE STYLE */
/* Variables */
:root {
  --size: 50;
  --border: 10;
}


.triangle-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50vh; /* 100% of the viewport height */
}
/* Picture Styles */
.picture {
  --clip: polygon(0 calc(100% - (var(--border) * 1px)), 50% 0, 100% calc(100% - (var(--border) * 1px)));
  height: calc(var(--size) * 1vmin);
  width: calc(var(--size) * 1vmin);
  background: black;
  position: absolute;
  clip-path: var(--clip);
}

/* Image Styles */
.picture img {
  --b: calc(var(--border) * 1px);
  --clip: polygon(var(--b) calc(100% - var(--b)), 50% var(--b), calc(100% - var(--b)) calc(100% - var(--b)));
  position: relative;
  top: 50%;
  left: 50%;
  height: calc(100% - (2 * var(--b)));
  width: calc(100% - (2 * var(--b)));
  transform: translate(-50%, -50%);
  clip-path: var(--clip);
}

/* HOME PAGE TRIANGLE STYLE ENDS */

.navigation-bar {
  margin-top: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.homepage-content-tiles {
  margin-top: 10px; /* Space from the navigation bar */
}

/* HOME PAGE NAVIGATION BAR & CONTENT TILES */ 
 

/* Subtitle style*/
.subtitle {
  font-size: 1.5em;
  color: gray;
  line-height: 0.9;
}



/* Zoomable image */

.zoomable-image {
  width: 100%; /* Adjust this based on your layout preferences */
  transition: transform 0.3s ease; /* Smooth transform effect */
  cursor: pointer; /* Indicates that the image can be interacted with */
}

.zoomable-image:hover {
  transform: scale(1.5); /* Increase scale to enlarge image on hover */
}


/* Nodes navigation bar */

.top-bar {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  background: rgb(235, 219, 205); /* Light gray background */
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 12px; /* Smoother rounded corners */
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 1920px; /* Set a max-width if needed to prevent too wide a layout on very large screens */
  margin: auto; /* Centers the content */
  }
 







.taxonomy-links {
  flex-grow: 1;
}

.top-bar h2 {
  display: inline;
  margin-right: 10px;
}

.top-bar a {
  margin-right: 10px;
  border-radius: 4px;
  background-color: transparent;
  transition: background-color 0.3s ease;
  border-radius: 5px; /* Rounds the corners of the links */
  transition: all 0.3s ease; /* Smooth transition for hover effects */
  white-space: nowrap; /* Prevents the text from wrapping inside buttons */
}

.top-bar .highlighted {
  background-color: lightcoral;
  color: white;
}


/* All Categories Button Specific Style */
.all-categories-btn {
  font-weight: bold; /* Make it stand out */
}

/* Specific Style for Nodes */
.top-bar .nodes a {
  font-weight: bold;
  border: 2.5px solid rgba(0,0,0,0.1);
  padding: 3px 8px; /* Adds padding for a better button-like appearance */
  text-transform: uppercase; /* Makes all navigation links uppercase */
}




/* Dark mode adjustments */
:is(:where(.dark) .top-bar .nodes a) {
  border: 2.5px solid rgba(220,220,220,0.2);
} 
/* Dark mode adjustments */
:is(:where(.dark) .top-bar .highlighted) {
  background-color: deepskyblue;
  color: white;
}
 
.top-bar .tags a {
  border: 2.5px solid rgba(0,0,0,0.1);
  position: relative;
  top:10px;
  color: darkslategray; /* Grey color for tags */
  background: rgb(235, 219, 205); /* Light gray background */
  padding: 2px 4px; /* Adds padding for a better button-like appearance */
}

/* Dark mode adjustments */
:is(:where(.dark) .top-bar .tags a) {
  color: white;
  background: gray;
  border: 2.5px solid rgba(220,220,220,0.2);
}

.top-navigation .nodes a {
  border: 1px solid rgba(0,0,0,0.1);
  font-weight: bold;
  color: #007BFF;
}

.top-navigation .tags a {
  color: #666; /* Less emphasis on tags */ 
}

.top-bar .tags a:hover {
  background-color: #ddd;
}
.top-bar .nodes a:hover {
  background-color: #ddd;
}

/* Dark mode adjustments */
:is(:where(.dark) .top-bar) {
  background: rgba(44,41,41,0.8); /* Darker background for readability, semi-transparent */ 
  color: var(--text-color-inverted); /* Lighter text for visibility */
}


.current-taxonomy h1 {
  color: #333; /* Dark gray for titles */
  margin-left: 20px; /* Space from the left edge */
  margin-right: 20px;
}


/* Dark mode adjustments */
:is(:where(.dark) .current-taxonomy h1) {
  color: whitesmoke; /* Lighter text for visibility */
}

.top-bar h2 {
  display: inline; /* Ensures labels are inline */
  margin-right: 10px; /* Space after the label */
}

.top-bar a {
  color: lightcoral; /* Node links color */
  text-decoration: none; /* Removes underline */
  margin-right: 10px; /* Space between links */
}

/* Dark mode adjustments */
:is(:where(.dark) .top-bar a) {
  color: deepskyblue;
}



/* CONTENT GRID TILES STYLE */




/* Grid Layout Colors */
:root {
  --text-color: #333;  /* Dark text for light background */
  --text-color-inverted: #ccc2c2;  /* Light text for dark background */
}

/* Grid Layout for Posts */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}


.grid-container {
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;

}

.content-tile {
  background-color: var(--tile-background-color, rgb(235, 219, 205));
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 12px; /* Smoother rounded corners */
  overflow: hidden; /* Ensures no content spills outside the border */
  transition: box-shadow 0.3s;
  position: relative; /* For positioning the image correctly */
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  height: 85%; 
}

/* Apply dark mode styles */
:is(:where(.dark) .content-tile) {
  --tile-background-color: #2c2929; /* Slightly lighter tile background in dark mode */
}


.content-tile:hover {
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Hover effects specific to dark mode */
:is(:where(.dark) .content-tile:hover) {
  box-shadow: 0 5px 15px rgba(255, 255, 255 / 0.2);
}

.tile-image {
  width: 100%; /* Slightly larger to cover the entire width */
  position: relative;
  top: 0;
  left: 0;
}


.tile-details {
  padding: 15px;
  background: rgba(255, 255, 255, 0.8); /* Semi-transparent background */
  position: absolute;
  bottom: 0;
  width: 100%;
  transition: background-color 0.3s;
}

.tile-details h2 {
  margin: 0;
  font-size: 1.2em;
  color: var(--text-color);
}


.post-date {
  display: block;
  font-size: 0.8em;
  color: #666;
  margin-top: 5px;
}

/* Dark mode adjustments */
:is(:where(.dark) .tile-details) {
  background: rgba(44,41,41,0.8); /* Darker background for readability, semi-transparent */ 
  color: var(--text-color-inverted); /* Lighter text for visibility */
}

/* Dark mode adjustments */
:is(:where(.dark) .tile-details h2) {
  color: var(--text-color-inverted); /* Lighter text for visibility */
}

/* Dark mode adjustments */
:is(:where(.dark) .post-date) {
  color: #b6afaf; /* Lighter text for visibility */
}


/* Mobile override */
@media (max-width: 1000px) {
  .current-taxonomy h1 {
    font-size: 1.5rem; /* visually similar to h2 */
	color: red;
  }
}
