/* Reset */

/* Global Colors */
:root {
  --primary-gradient: linear-gradient(135deg, #ff00cc, #3333ff);
  --primary-pink: #ff00cc;
  --primary-blue: #3333ff;
  --text-dark: #222;
  --text-light: #fff;
  --bg-light: #f9f9f9;
}

/* Body */
body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  margin: 0;
  padding: 0;
}

*{margin:0;padding:0;box-sizing:border-box;}
/*body{font-family:'Arial',sans-serif;background:linear-gradient(135deg,#ffe6f7,#e6f7ff);color:#333;line-height:1.6;}*/
.container{width:90%;max-width:1200px;margin:0 auto;}

/* Header */
.site-header{background:#fff;border-bottom:1px solid #eee;box-shadow:0 2px 6px rgba(0,0,0,0.05);position:sticky;top:0;z-index:1000;}
.top-bar{display:flex;justify-content:space-between;align-items:center;padding:8px 0;position:relative;}

/* Logo */
.logo img{height:110px;width:auto;transition:.3s ease;}

/* Search */
.search-bar{display:flex;align-items:center;}
.search-bar input{padding:8px 12px;border:2px solid #ff4dc4;border-radius:25px 0 0 25px;outline:none;font-size:14px;width:220px;}
.search-bar button{padding:8px 15px;border:none;background:linear-gradient(135deg,#ff4dc4,#4d94ff);color:white;font-weight:bold;border-radius:0 25px 25px 0;cursor:pointer;transition:.3s;}
.search-bar button:hover{opacity:.9;}

/* Desktop Buttons */
.header-actions{display:flex;gap:15px;align-items:center;}
.header-actions .sign-in{color:#333;text-decoration:none;font-weight:500;}
.header-actions .btn-subscribe{padding:8px 15px;background:#4d94ff;color:white;font-weight:bold;border-radius:25px;text-decoration:none;}

/* Nav */
.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
}

.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav ul li {
  position: relative;
  margin: 0 15px;
}

.main-nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 8px 5px;
  transition: color 0.3s ease, border-bottom 0.3s ease;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
  color: #ff4dc4;
  border-bottom: 2px solid #ff4dc4;
}

/* Dropdown */
.has-dropdown .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 10px 0;
  min-width: 160px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.has-dropdown:hover .dropdown {
  display: block;
}

.has-dropdown .dropdown li {
  margin: 0;
}

.has-dropdown .dropdown li a {
  display: block;
  padding: 10px 15px;
  color: #333;
  border-bottom: 1px solid #f2f2f2;
}

.has-dropdown .dropdown li:last-child a {
  border-bottom: none;
}

.has-dropdown .dropdown li a:hover {
  background: #f9f9f9;
  color: #ff4dc4;
}

/* Mobile Buttons */
.mobile-buttons {
  margin-left: auto;
  display: flex;
  gap: 10px;
}

.mobile-buttons .btn {
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: bold;
  text-decoration: none;
}

.sign-in {
  background: #f2f2f2;
  color: #333;
}

.subscribe {
  background: linear-gradient(135deg, #ff4dc4, #4d94ff);
  color: #fff;
}
/* Mobile menu buttons */
.mobile-buttons{display:none;flex-direction:column;align-items:center;padding:15px 0;}
.mobile-buttons .btn{margin:8px 0;text-align:center;}

/* Hamburger */
.hamburger{display:none;flex-direction:column;cursor:pointer;gap:5px;margin-left:15px;}
.hamburger span{width:28px;height:3px;background:#333;border-radius:2px;transition:all .3s;}
.hamburger.active span:nth-child(1){transform:rotate(45deg) translate(5px,5px);}
.hamburger.active span:nth-child(2){opacity:0;}
.hamburger.active span:nth-child(3){transform:rotate(-45deg) translate(6px,-6px);}

/* Hero */
.hero{display:flex;justify-content:space-between;align-items:center;padding:50px 0;gap:40px;}
.hero-text h1{font-size:2.8rem;background:linear-gradient(135deg,#ff4dc4,#4d94ff);-webkit-background-clip:text;-webkit-text-fill-color:transparent;}
.hero-text p{margin:15px 0;font-size:1.2rem;}
.hero-ad img{max-width:300px;border-radius:10px;}

/* Categories */
.categories {
  text-align: center;
  padding: 50px 0;
}

.categories .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.categories .card {
  display: block;
  text-decoration: none;
  color: #fff; /* white text for contrast */
  background: linear-gradient(135deg,#ff4dc4,#4d94ff); /* default gradient */
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
}

.categories .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, #a1c4fd, #c2e9fb); /* hover gradient */
  color:#ff4dc4;
}

.categories .card h3 {
  margin: 0;
  font-size: 1.2rem;
}


/* --- QUOTES SECTION --- */
.quotes {
  padding: 60px 20px;
}

.quotes h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.quotes .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

/* Quote Card */
.quote-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}


.quote-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Image Section */
.quote-image {
  position: relative;
}
.quote-image img {
  width: 100%;
  border-radius: 15px 15px 0 0;
  display: block;
}

/* Text Section */
.quote-text-wrapper {
  position: relative;
  padding: 15px;
}


.quote-text {
    font-size: 1rem;
    color: #444;
    padding: 15px;   /* use padding instead of margin */
    margin: 0;       /* reset margin */
    position: relative; 
    background: #f9f9f9;
    border-radius: 8px;
}

.copy-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    cursor: pointer;
    color: #666;
    font-size: 1.1rem;
}
.copy-icon:hover {
    color: #000;
}

/* Copy Button for Text */
.btn-copy {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--primary-gradient);
  border: none;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  font-size: 14px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.btn-copy:hover {
  transform: scale(1.1);
  opacity: 0.9;
}

/* Social + Download Actions */
.quote-actions {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  gap: 10px;
}


.quote-actions .icon {
  font-size: 20px;
  background: #fff;
  border-radius: 50%;
  padding: 8px;
  text-align: center;
  color: #333;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}

/* Base Icon Style */
.icon-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
  border-radius: 50%;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.quote-actions .icon:hover {
  transform: scale(1.1);
}
.icon-btn:hover {
  transform: scale(1.1);
  opacity: 0.9;
}

/* Brand Colors */
.icon-btn.download { background: var(--primary-gradient); } /* your gradient */
.icon-btn.whatsapp { background: #25D366; }
.icon-btn.facebook { background: #1877F2; }
.icon-btn.instagram { background: #E4405F; }

/* Ads */
.quote-card.ad img {
  max-width: 100%;
  border-radius: 15px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  align-items: center;
  justify-content: center;
}
.modal-content {
  background: #fff;
  padding: 20px;
  width: 90%;
  max-width: 400px;
  border-radius: 10px;
  text-align: center;
  position: relative;
}
.modal-content h3 { margin-bottom: 10px; }
.modal-content textarea {
  width: 100%;
  height: 100px;
  margin-bottom: 10px;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ddd;
  resize: none;
}
.modal-content button {
  background: linear-gradient(90deg, #ff5f6d, #ffc371);
  color: #fff;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.modal-content button:hover {
  background: linear-gradient(90deg, #ff3b50, #ff9a4d);
}
.close {
  position: absolute;
  top: 12px; right: 16px;
  font-size: 22px;
  cursor: pointer;
}


/* Brand colors */
.icon.whatsapp { color: #25D366; }
.icon.facebook { color: #1877F2; }
.icon.instagram { color: #E1306C; }
.icon.download { color: #333; }

/* Text + Copy */
.quote-text-container {
  position: relative;
}
.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #777;
  font-size: 16px;
}
.copy-btn:hover {
  color: #000;
}

.blog {
  margin: 60px auto;
  text-align: center;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 30px;
  position: relative;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.post {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.post:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.post-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.post-content {
  padding: 20px;
}

.post-content h3 {
  font-size: 1.25rem;
  margin: 0 0 10px;
}

.post-content a {
  text-decoration: none;
  color: #222;
}

.post-meta {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 12px;
}

.post-content p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 15px;
}

.read-more {
  display: inline-block;
  font-size: 0.9rem;
  color: #e63946;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: #b22234;
}


/* Community */
.community{text-align:center;padding:50px 20px;background:#fff;margin:50px 0;border-radius:15px;}
.community .btn-group{margin-top:20px;display:flex;justify-content:center;gap:15px;}
.btn{padding:10px 20px;background:linear-gradient(135deg,#ff4dc4,#4d94ff);color:white;border-radius:25px;text-decoration:none;font-weight:bold;}

/* Footer */
.site-footer{text-align:center;padding:20px;background:#f7f7f7;font-size:.9rem;}

 .footer-links {
  margin-bottom: 10px;
}
 .footer-links a {
  margin: 0 10px;
  color: #444;
  text-decoration: none;
  font-weight: 500;
}
.footer-links a:hover {
  color: #ff4dc4; /* highlight color */
}


/* Responsive */
@media(max-width:991px){
  .top-bar{flex-wrap:wrap;}
  .search-bar{order:3;width:100%;justify-content:center;margin-top:10px;}
  .search-bar input{width:70%;}
  .logo img{height:85px;}
}
@media(max-width:768px){
  .header-actions{display:none;} /* hide desktop buttons */
  .main-nav{display:none;flex-direction:column;width:100%;background:#fff;border-top:1px solid #eee;position:absolute;left:0;top:100%;z-index:999;overflow:hidden;max-height:0;transition:max-height .4s ease;}
  .main-nav.active{display:flex;max-height:500px;} /* smooth dropdown */
  .main-nav ul{flex-direction:column;align-items:center;padding:15px 0;}
  .main-nav ul li{margin:12px 0;}
  .hamburger{display:flex;}
  .mobile-buttons{display:flex;}
  .hero{flex-direction:column;text-align:center;}
  .hero-ad img{max-width:220px;}
}
@media(max-width:480px){
  .hero-text h1{font-size:1.8rem;}
  .search-bar input{width:60%;}
  .btn{padding:8px 16px;font-size:14px;}
  .logo img{height:70px;}
}


/* Quotes Page */
.page-header {
  text-align: center;
  margin: 30px auto;
}
.page-header h1 {
  font-size: 2rem;
  color: #222;
}
.page-header p {
  color: #555;
  margin-top: 8px;
}

/* Category Filter */
.quote-categories {
  text-align: center;
  margin-bottom: 20px;
}
.quote-categories ul {
  list-style: none;
  padding: 0;
  display: inline-flex;
  gap: 15px;
}
.quote-categories a {
  text-decoration: none;
  color: #444;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 20px;
  transition: all 0.3s;
}
.quote-categories a:hover,
.quote-categories a.active {
  background: #ff5a5f;
  color: #fff;
}

/* Quotes Grid */
.quotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 0 15px;
}

