/* --- GLOBALS --- */

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9fafb;
  color: #222;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container-fluid {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 0px;
  overflow-x: hidden;
}

.row {
  margin: 0 -15px;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.content {
  padding: 40px 20px;
  min-height: 100vh;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}

/* --- FOOTER --- */

footer {
  background-color: #30475e;
  color: #e0e0e0;
  padding: 20px;
  text-align: center;
  font-size: 14px;
}

footer a {
  color: #a8c0ff;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #6279ff;
}

/* --- LOGIN FORM --- */

.loginform {
  background-color: #30475e;
  border-radius: 10px;
  max-width: 400px;
  margin: 3rem auto;
  padding: 25px 30px;
  box-shadow: 0 8px 20px rgba(48, 71, 94, 0.4);
  color: #fff;
  font-weight: 600;
}

.loginform #signinlabel {
  font-size: 2.8rem;
  margin-bottom: 25px;
  text-align: center;
  letter-spacing: 1px;
}

.loginErrorMessage {
  background-color: rgba(250, 50, 50, 0.85);
  padding: 12px 15px;
  border-radius: 6px;
  margin-bottom: 15px;
  font-weight: 700;
  text-align: center;
}

/* --- LINKS --- */

.fplink {
  padding-bottom: 10px;
  text-align: center;
}

.fplink a {
  color: #ddd;
  font-weight: 600;
  transition: color 0.3s ease;
}

.fplink a:hover {
  color: #fff;
  text-decoration: underline;
}

/* --- NAVBAR --- */

.navbar {
  position: relative;
  background: transparent;
  padding: 15px 20px;
  font-weight: 600;
  user-select: none;
}

.nav-link.active {
  color: rgba(220, 220, 220, 0.6);
}


@media (min-width: 992px) {
  .navbar-right {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }
}

/* --- NOSELECT --- */

.noselect {
  user-drag: none; 
  user-select: none;
  pointer-events: none;
}

/* --- MAIN PAGE & SECTIONS --- */

.mainpage #about, 
.mainpage #topservers, 
.mainpage #topposts {
  width: 100%;
  height: 100vh;
  background-color: #1abc9c;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.sectioncontainer {
  margin-top: 40px;
}

.section {
  background-color: #fff;
  margin: 2rem auto;
  padding: 30px 40px;
  max-width: 900px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.07);
}

.section h2 {
  font-weight: 700;
  font-size: 2rem;
  color: #222;
  margin-bottom: 18px;
}

.section p {
  font-size: 1.1rem;
  color: #555;
  max-width: 700px;
  margin: 0 auto 25px;
  line-height: 1.5;
}

.section a {
  color: #6279ff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.25s ease;
}

.section a:hover {
  color: #4058ff;
  text-decoration: underline;
}

/* --- TABLES & CODE VIEWS --- */

.codeBorder {
  width: 100%;
  overflow-x: auto;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.05);
  margin: 20px 0;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  padding: 10px 15px;
  font-family: 'Source Code Pro', monospace;
  font-size: 14px;
}

@media (min-width: 992px) {
  .codeBorder {
    width: 80%;
    margin: 20px auto;
    white-space: nowrap;
  }
}

.fileView {
  background-color: #fefefe;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 600px;
  margin: 20px auto;
  padding: 12px 20px;
  transition: box-shadow 0.3s ease;
}

.fileView:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.fileView #folder {
  background-color: #6279ff;
  color: #fff;
  padding: 14px 22px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.fileView #folder:hover {
  background-color: #4058ff;
}

.fileView .showCodeButton {
  background: none;
  border: none;
  color: #6279ff;
  font-size: 16px;
  cursor: pointer;
  font-weight: 700;
  transition: color 0.3s ease;
  padding: 12px 20px;
}

.fileView .showCodeButton:hover {
  color: #4058ff;
}

.fileInfo {
  color: #555;
  margin-right: 15px;
  font-weight: 500;
}

/* --- IMAGES --- */

.imgBorder {
  border-radius: 12px;
  border: 1px solid #ddd;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.imgBorder img {
  max-width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
  border-radius: 12px;
}

.imgBorder img:hover {
  transform: scale(1.03);
}

/* --- PROJECT CARDS --- */

.card {
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  max-width: 18rem;
  margin: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card:hover {
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  transform: translateY(-4px);
}

.card-img-top {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  transition: transform 0.4s ease;
}

.card-img-top:hover {
  transform: scale(1.05);
}

.card-body {
  padding: 20px 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  
   user-select: none;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 6px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.card-title a {
  text-decoration: none;
  color: inherit;
}

.card-title a:hover {
  color: #4058ff;
}

.card-subtitle {
  font-weight: 500;
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 12px;
}

.card-text {
  flex-grow: 1;
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 12px;
  line-height: 1.4;
}

/* Badges (tags) */
.badge {
  display: inline-block;
  padding: 0.35em 0.8em;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  background-color: #6279ff;
  border-radius: 9999px;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  transition: background-color 0.3s ease;
  cursor: pointer;
  user-select: none;
}

.badge:hover {
  background-color: #4058ff;
}

/* --- RESPONSIVE --- */

@media (max-width: 768px) {
  .container-fluid {
    padding: 0 0px;
  }

  .card {
    max-width: 100%;
    margin: 0.5rem 0;
  }

  .section {
    margin: 1rem 10px;
    padding: 20px 15px;
  }
  #example img {
    width: 90% !important;
  }
}

/* --- Tag Selection Section --- */
/* Container tweaks */
#tagSelection {
  max-width: 100%;
  margin: 0 auto 2rem;
  padding: 0 10px;
}

/* Tag filter container */
.tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}

/* Modern badge style */
.tag-filter .badge {
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #495057;
  background: #e9ecef;
  border-radius: 20px;
  cursor: pointer;
  user-select: none;
  transition: 
    background-color 0.3s ease, 
    color 0.3s ease, 
    box-shadow 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.07);
  border: 1px solid transparent;
}

/* Hover effect */
.tag-filter .badge:hover {
  background-color: #6279ff;
  color: white;
  box-shadow: 0 4px 10px rgba(98,121,255,0.4);
  border-color: #4058ff;
}

/* Active (selected) tag style */
.tag-filter .badge.active {
  background-color: #4058ff;
  color: white;
  box-shadow: 0 6px 15px rgba(64, 88, 255, 0.6);
  border-color: #3149d9;
}

/* Responsive tweak */
@media (max-width: 576px) {
  .tag-filter .badge {
    padding: 6px 12px;
    font-size: 0.85rem;
  }
}

.show-more-btn {
  cursor: pointer;
  display: inline-block;

  padding: 0.35em 0.8em;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  background-color: #495057;
  border-radius: 9999px;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  transition: background-color 0.3s ease;
  cursor: pointer;
  user-select: none;
}
.show-more-btn:hover {
    background-color: #6279ff;
}


/** LINKED IN BUTTON BOTTOM RIGHT - nav.php **/

.linkedin-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #0077b5; /* LinkedIn blue */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: background-color 0.3s ease;
	z-index: 100;
}

.linkedin-button img {
    width: 60%; /* or fixed px value like 30px */
    height: 60%; /* or auto for keeping aspect ratio */
    object-fit: contain; /* ensures the whole image fits */
    display: block; /* removes inline image spacing */
}



.linkedin-button:hover {
    background-color: #005983; /* darker on hover */
	transform: scale(1.05);
}
