﻿body {
  margin: 0;
  font-family: Arial;
  background: #0f172a;
  color: #fff;
}


.app {
  display: flex;
}


.content-area {
  flex: 1;
  display: flex;
  flex-direction: column;
}


/* SIDEBAR */
.sidebar {
  width: 240px;
  background: #020617;
  padding: 70px 20px;
}




.sidebar h2{
  margin-bottom:20px;
}




.sidebar a {
  display: block;
  color: #94a3b8;
  margin: 10px 0;
  text-decoration: none;
}


.sidebar a:hover {
  color: #fff;
}


/* MAIN CONTENT */
.main {
  margin-left: 0px;
  padding: 70px 30px 30px;
  width: 75%;
}


/* SCROLL */
html, body {
  margin: 0;
  height: 100%;
  overflow-x: hidden;
}




/** BLOG CARD **/
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}


.blog-card {
  position: relative;
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
}


.blog-cards{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:20px;
}




.blog-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}


.blog-card-content {
  padding: 15px;
}


.main img {
  max-width: 700px;
  width: 100%;
  display: block;
  margin: 25px auto;
  border-radius: 12px;
}


@media (max-width: 768px) {
  .main img {
    max-width: 100%;
  }
}




.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ff9800;
  color: #fff;
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 5px;
}


.affiliate-box a {
  display: block;
  margin-top: 10px;
  background: #28a745;
  padding: 8px;
  color: #fff;
  border-radius: 5px;
  text-align: center;
}






/** LINK COLORS **/


a {
  color: #facc15; /* yellow */
}


a:hover {
  color: #fff;
}




/** logo **/


.logo img {
  height: 60px;   /* bigger */
  width: auto;    /* keep proportions */
  max-width: none; /* remove restriction */
  transition: 0.3s ease;
}




.logo {
  margin-left: 0;
  display: flex;
  align-items: center;
}




.logo img:hover {
  opacity: 0.8;
  transform: scale(1.05);
}


@media (max-width: 768px) {
  .logo img {
    height: 32px;
  }
}




/** HEADER **/
.top-nav {
  position: fixed;
  top: 0;
  left: ; /* ✅ start AFTER sidebar */
  width: 100%; /* ✅ don't cover sidebar */
  height: 70px;
  background: #020617;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  z-index: 1000;
}


.top-nav nav {
  margin-left: auto;   /* ✅ pushes nav to the right */
  margin-right: 50px;  /* 🔥 THIS controls how far from edge */
  display: flex;
  gap: 15px;
}




.top-nav nav a{
  margin-left:15px;
  color:#94a3b8;
}


.top-nav nav a:hover{
  color:white;
}






@media (max-width: 768px) {


  


  .sidebar.open {
    left: 0;
  }


  .top-nav {
    left: 0;
    width: 100%;
  }


  .main {
    margin-left: 0;
    width: 100%;
    padding: 80px 15px;
  }
}


.card {
  background: #1e293b;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
}


@media (max-width: 768px) {
  .top-nav nav {
    margin-right: 10px;
    gap: 10px;
  }


  .top-nav {
    padding: 0 10px;
  }
}
/* DEFAULT (DESKTOP) */
.menu-toggle {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}




/* SCROLLBAR CLEANUP */
.sidebar {
  scrollbar-width: none;
}
.sidebar::-webkit-scrollbar {
  display: none;
}


/* =========================
   MOBILE FIX (ONE BLOCK ONLY)
========================= */
@media (max-width: 768px) {


  .sidebar {
    position: fixed;          /* 🔥 stick to bottom */
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;


    display: flex;
    align-items: center;
    justify-content: space-around;


    background: #020617;
    padding: 0;
    z-index: 1000;


    overflow-x: auto;
  }


  .sidebar h2 {
    display: none;
  }


  .sidebar a {
    flex: 1;
    text-align: center;
    font-size: 12px;
    padding: 5px;
    margin: 0;
  }
  


  .top-nav nav {
    display: none; /* 🔥 THIS IS THE KEY */
    position: absolute;
    top: 70px;
    right: 10px;
    background: #020617;
    width: 200px;
    flex-direction: column;
    padding: 15px;
    border-radius: 8px;
  }


  .top-nav nav.open {
    display: flex; /* 🔥 SHOW WHEN ACTIVE */
  }


  .menu-toggle {
    display: block;
    margin-left: auto;
    margin-right: 15px;
  }




  /* 🔥 IMPORTANT: prevent content being hidden behind bottom bar */
  .main {
    padding-bottom: 80px;
  }
}






/*  TOOLS  VISUAL FIX   */
input, textarea {
  width: 100%;
  max-width: 500px;
  padding: 12px;
  margin: 10px 0;
  border-radius: 10px;
  border: none;
  background: #1e293b;
  color: white;
  font-size: 14px;
}


button {
  padding: 10px 16px;
  background: #22c55e;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}


button:hover {
  background: #16a34a;
}


#result {
  margin-top: 15px;
  background: #1e293b;
  padding: 15px;
  border-radius: 10px;
}