/* =============================
   DAILY THOUGHTS PREMIUM MODERN UI
============================= */

:root {
  --thought-bg: linear-gradient(135deg, #020226, #04043a);
  --thought-card: rgba(11, 16, 47, 0.85);
  --thought-primary: #3b82f6;
  --thought-text: #e5e7eb;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--thought-bg);
  color: var(--thought-text);
  font-family: "Poppins", sans-serif;
  min-height: 100vh;
  padding-top: 100px;
}

/* Navbar */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  padding: 0 5%;
  backdrop-filter: blur(8px);
  background: rgba(2, 2, 38, 0.95);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav h1 {
  font-size: 28px;
  font-weight: 600;
  margin: 0;
}

.navul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.navlink {
  color: var(--thought-text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navlink:hover {
  color: var(--thought-primary);
}

.menu-toggle {
  display: none;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    width: 30px;
    height: 25px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1001;
  }

  .menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
  }

  .menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
  }

  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  nav {
    height: 80px;
    padding: 0 20px;
  }

  .navul {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(2, 2, 38, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    transition: right 0.4s ease;
  }

  .navul.active {
    right: 0;
  }

  body {
    padding-top: 80px;
  }
}

/* Back Button */
.read-btn {
  padding: 12px 22px;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: white;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s ease;
  display: inline-block;
  margin-left: 0px;
  margin-bottom: 40px;
  
}

.read-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.35);
}

/* Main Section */
.thought-main-section {
  width: min(92%, 1100px);
  margin: auto;
  padding: 60px 0 80px;
}

/* Heading */
.thought-heading {
  text-align: center;
  font-size: clamp(32px, 6vw, 52px);
  margin-bottom: 70px;
  letter-spacing: 1px;
  margin-top: 0px;
  
}

.thought-heading .primary {
  color: var(--thought-primary);
}

.thought-heading .light {
  color: #ffffff;
}

/* Grid Layout (Modern Feed Style) */
.thought-grid-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

/* Card */
.thought-note-card {
  background: var(--thought-card);
  padding: 30px;
  border-radius: 24px;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transition: all 0.4s ease;
  border: 1px solid rgba(59, 130, 246, 0.08);
}

.thought-note-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 30px 60px rgba(59, 130, 246, 0.25);
}

.thought-note-title {
  font-size: 22px;
  color: white;
  margin-bottom: 18px;
}

.thought-note-text {
  font-size: 16px;
  line-height: 1.9;
  color: var(--thought-text);
}

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

/* Tablet */
@media (max-width: 1024px) {
  .thought-main-section {
    padding: 40px 0 60px;
  }

  .thought-grid-wrapper {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 24px;
    
  }

  .thought-note-text {
    font-size: 16px;
    line-height: 1.8;
  }

   .read-btn {
    padding: 10px 16px;
    font-size: 15px;
  }
}

/* Mobile & Small Screens (Important Fix) */
@media (max-width: 768px) {
  .read-btn {
    padding: 10px 16px;
    font-size: 15px;
    margin-bottom: 24px;
  }

  /* ⭐ Keep 2-column layout */
  .thought-grid-wrapper {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 18px;
    
  }

  .thought-note-card {
    padding: 20px;
    border-radius: 18px;
  }

  .thought-note-title {
    font-size: 20px;
  }

  .thought-note-text {
    font-size: 15px;
    line-height: 1.75;
  }

  .thought-main-section {
    padding: 32px 0 50px;
  }
}

/* Very Small Mobile */
@media (max-width: 480px) {
  .thought-heading {
    font-size: 28px;
    margin-bottom: 36px;
  }

  /* Still 2 columns (feed style mobile UI) */
  .thought-grid-wrapper {
    grid-template-columns: repeat(1, 1fr);
  }

  .thought-note-card {
    padding: 20px;
  }

  .thought-note-title {
    font-size: 18px;
  }

  .thought-note-text {
    font-size: 14px;
    line-height: 1.7;
  }

   .read-btn {
    padding: 9px 14px;
    font-size: 14px;
  }
}