/* =========================================
   GLOBAL VARIABLES & BASE STYLES
   ========================================= */
:root {
  --bg-grad-start: #fcfaff;
  --bg-grad-end: #eae2f8;
  --panel-bg: rgba(255, 255, 255, 0.75);
  --panel-border: rgba(169, 144, 209, 0.3);
  --accent-main: #a38cc6;
  --accent-dark: #584a6e;
  --accent-hover: #8d74b5;
  --text-main: #423852;
  --text-heading: #2d243a;
  --font-main: "Inter", sans-serif;
  --font-heading: "Playfair Display", serif;
  --navbar-height: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
* { -webkit-tap-highlight-color: transparent; }

body {
  font-family: var(--font-main);
  background: linear-gradient(135deg, var(--bg-grad-start) 0%, var(--bg-grad-end) 100%);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: ""; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3%3Cg fill='%23A38CC6' fill-opacity='0.05' fill-rule='evenodd'%3%3Cpath d='M5 0h1L0 6V5zm1 5v1H5z'/%3E%3C/g%3E%3C/svg%3E");
  z-index: -1;
}

/* =========================================
   TOP NAVBAR STYLES
   ========================================= */
.top-navbar { width: 100%; height: var(--navbar-height); background-color: #ffffff; border-bottom: 1px solid rgba(169, 144, 209, 0.2); display: flex; justify-content: space-between; align-items: center; padding: 0 24px; z-index: 50; box-shadow: 0 2px 10px rgba(163, 140, 198, 0.05); flex-shrink: 0; position: relative; }
.nav-left { display: flex; align-items: center; gap: 12px; }
.nav-logo { width: 52px; height: 52px; object-fit: contain; }
.nav-brand { font-family: var(--font-main); font-weight: 800; font-size: 18px; color: var(--text-heading); text-transform: capitalize; letter-spacing: -0.5px; }
.nav-right { display: flex; align-items: center; gap: 24px; }
.nav-item { font-family: var(--font-main); font-size: 14px; font-weight: 500; color: var(--text-main); cursor: pointer; display: flex; align-items: center; gap: 4px; transition: color 0.2s; }
.nav-item:hover { color: var(--accent-dark); }
.nav-item svg { fill: currentColor; opacity: 0.6; }
.nav-badge { background-color: #f7df79; color: #2d243a; font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 10px; text-transform: uppercase; margin-left: 4px; transform: translateY(-5px); }
.login-btn { margin-left: 8px; }
.fs-nav { display: none; }

/* SHARE, TOOLS & MOBILE NAV STYLES */
.share-container, .tools-container { position: relative; }

.nav-share-btn, .nav-tools-btn { 
  background: var(--accent-main); color: white; border: none; padding: 8px 20px; border-radius: 8px; 
  font-family: var(--font-main); font-weight: 600; font-size: 14px; cursor: pointer; 
  display: flex; align-items: center; gap: 8px; transition: background 0.3s, box-shadow 0.3s; 
}

.nav-share-btn:hover, .nav-tools-btn:hover { 
  background: var(--accent-hover); box-shadow: 0 4px 12px rgba(163, 140, 198, 0.3); 
}

.share-dropdown, .tools-dropdown { 
  position: absolute; top: calc(100% + 10px); right: 0; background: rgba(255, 255, 255, 0.95); 
  backdrop-filter: blur(10px); border: 1px solid var(--panel-border); border-radius: 12px; 
  box-shadow: 0 10px 25px rgba(163, 140, 198, 0.15); width: 200px; display: none; 
  flex-direction: column; overflow: hidden; z-index: 1000; 
}

.share-dropdown.active, .tools-dropdown.active { 
  display: flex; animation: cardFadeIn 0.2s ease; 
}

@keyframes cardFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.share-item, .tools-item { 
  padding: 14px 18px; font-size: 14px; font-weight: 500; color: var(--text-main); 
  cursor: pointer; transition: background 0.2s; border-bottom: 1px solid rgba(169, 144, 209, 0.1); 
  display: flex; align-items: center; gap: 12px; text-decoration: none; 
}

.share-item:last-child, .tools-item:last-child { border-bottom: none; }
.share-item:hover, .tools-item:hover { background: rgba(163, 140, 198, 0.1); color: var(--accent-dark); }
.share-item.copy-link { font-weight: 700; color: var(--accent-main); }
.share-item svg, .tools-item svg { width: 18px; height: 18px; flex-shrink: 0; }

.hamburger-btn { display: none; background: transparent; border: none; color: var(--text-heading); cursor: pointer; padding: 5px; }

/* Mobile Nav Query */
@media (max-width: 768px) {
  .nav-right.std-nav { 
    display: none; position: absolute; top: 100%; left: 0; width: 100%; background: rgba(255, 255, 255, 0.98); 
    backdrop-filter: blur(15px); border-bottom: 1px solid var(--panel-border); padding: 20px 24px; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.05); flex-direction: column; align-items: stretch; gap: 15px;
  }
  .nav-right.std-nav.mobile-active { display: flex; }
  .hamburger-btn { display: block; }
  
  .share-dropdown, .tools-dropdown { 
    right: auto; left: 0; width: 100%; position: static; box-shadow: none; border: none; 
    background: transparent; border-left: 2px solid var(--accent-main); border-radius: 0; margin-top: 5px; 
  }
}
/* =========================================
   SITE FOOTER STYLES
   ========================================= */
.site-footer { background: rgba(255, 255, 255, 0.5); border-top: 1px solid var(--panel-border); padding: 60px 24px 40px; margin-top: auto; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.footer-content { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 50px; }
.footer-col { display: flex; flex-direction: column; gap: 16px; }
.footer-logo-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.footer-logo { width: 28px; height: 28px; color: var(--accent-dark); }
.footer-brand { font-family: var(--font-main); font-weight: 800; font-size: 18px; color: var(--text-heading); }
.footer-copyright { color: rgba(66, 56, 82, 0.7); font-size: 14px; font-weight: 500; }
.footer-link { color: var(--text-main); text-decoration: none; font-size: 15px; font-weight: 500; transition: color 0.2s, transform 0.2s; display: inline-flex; width: fit-content; }
.footer-link:hover { color: var(--accent-dark); transform: translateX(4px); }
.footer-social-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; padding-top: 30px; border-top: 1px solid rgba(163, 140, 198, 0.2); }
.social-link { display: flex; align-items: center; gap: 8px; color: var(--text-main); text-decoration: none; font-size: 15px; font-weight: 600; transition: opacity 0.2s, transform 0.2s; }
.social-link:hover { opacity: 0.8; transform: translateY(-2px); }
.social-icon { width: 22px; height: 22px; }
.icon-fb { color: #1877F2; fill: currentColor; }
.icon-ig { color: #E1306C; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-tw { color: #1DA1F2; fill: currentColor; }
.icon-yt { color: #FF0000; fill: currentColor; }