/*
Theme Name: Trend Echo Portal
Theme URI: https://trendechoportal.com
Author: Trend Echo Portal
Author URI: https://trendechoportal.com
Description: A premium Glassmorphism Modern WordPress theme for Trend Echo Portal. Soft Lavender + Frosted White + Deep Purple design system, floating pill navbar, blurred gradient background shapes, a centered glass hero, and an asymmetric bento-style post grid — structurally distinct from a standard blog. Automatic relevant internal linking and full SEO / AEO / GEO optimization (JSON-LD schema + llms.txt) included.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: trendecho
Tags: news, glassmorphism, custom-colors, custom-logo, custom-menu, featured-images, translation-ready, grid-layout, one-column

Trend Echo Portal is a proprietary premium theme built specifically for a glassmorphism-styled authority portal.
*/

/* =========================================================
   0. DESIGN TOKENS
   ========================================================= */
:root{
  --lavender:      #EFEAFB;
  --lavender-2:    #E4DBF7;
  --purple:        #5B3E96;
  --purple-dark:   #43296F;
  --purple-light:  #8A6FC2;
  --ink:           #2B2340;
  --stone:         #776E8C;
  --white:         #FFFFFF;
  --glass-bg:      rgba(255,255,255,.55);
  --glass-bg-2:    rgba(255,255,255,.72);
  --glass-border:  rgba(255,255,255,.6);
  --glass-shadow:  0 12px 40px rgba(91,62,150,.14);

  --font-head: 'Quicksand', 'Poppins', sans-serif;
  --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --container: 1280px;
}

/* =========================================================
   1. RESET / BASE
   ========================================================= */
*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;}
body{
  margin:0;color:var(--ink);
  font-family:var(--font-body);font-weight:400;font-size:16.5px;line-height:1.7;
  -webkit-font-smoothing:antialiased;
  background:
    radial-gradient(circle at 12% 8%, rgba(138,111,194,.20), transparent 40%),
    radial-gradient(circle at 90% 18%, rgba(91,62,150,.14), transparent 42%),
    radial-gradient(circle at 50% 90%, rgba(228,219,247,.6), transparent 50%),
    var(--lavender);
  background-attachment:fixed;
}
img{max-width:100%;height:auto;display:block;}
a{color:inherit;text-decoration:none;}
ul{margin:0;padding:0;list-style:none;}
h1,h2,h3,h4,h5,h6{
  font-family:var(--font-head);font-weight:600;line-height:1.2;
  letter-spacing:-.01em;margin:0 0 .5em;color:var(--ink);
}
p{margin:0 0 1.15em;}
button{font-family:inherit;cursor:pointer;}
:focus-visible{outline:2px solid var(--purple);outline-offset:3px;}
.screen-reader-text{position:absolute!important;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden;}

.container{max-width:var(--container);margin:0 auto;padding:0 28px;}
.section{padding:72px 0;}
.eyebrow{
  display:inline-flex;align-items:center;gap:9px;
  font-family:var(--font-head);font-weight:700;font-size:11.5px;
  letter-spacing:.16em;text-transform:uppercase;color:var(--purple);
  margin-bottom:16px;
}
.eyebrow::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--purple-light);display:inline-block;}
.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:36px;flex-wrap:wrap;}
.section-head h2{font-size:clamp(26px,3.2vw,36px);margin:0;}

/* Reusable glass panel */
.te-glass{
  background:var(--glass-bg);
  backdrop-filter:blur(18px) saturate(160%);
  -webkit-backdrop-filter:blur(18px) saturate(160%);
  border:1px solid var(--glass-border);
  border-radius:var(--radius-md);
  box-shadow:var(--glass-shadow);
}

/* =========================================================
   2. FLOATING NAVBAR (structurally distinct: pill-shaped, inset)
   ========================================================= */
.te-nav-wrap{position:sticky;top:16px;z-index:60;padding:0 20px;}
.te-navbar{
  max-width:var(--container);margin:0 auto;
  background:var(--glass-bg-2);
  backdrop-filter:blur(20px) saturate(180%);
  -webkit-backdrop-filter:blur(20px) saturate(180%);
  border:1px solid var(--glass-border);
  border-radius:999px;
  box-shadow:var(--glass-shadow);
  padding:10px 12px 10px 22px;
  display:flex;align-items:center;gap:24px;
}
.te-logo{display:flex;align-items:center;gap:10px;flex:0 0 auto;}
.te-logo img{height:38px;width:auto;display:block;}
.te-logo-icon{height:38px;width:38px;flex:0 0 auto;display:block;}
.te-logo-word{display:flex;flex-direction:column;line-height:1.05;}
.te-logo-word strong{font-family:var(--font-head);font-weight:700;font-size:15.5px;color:var(--ink);}
.te-logo-word small{font-family:var(--font-body);font-weight:700;font-size:9px;letter-spacing:.16em;color:var(--purple);text-transform:uppercase;margin-top:1px;}
.te-footer .te-logo-word strong{color:var(--white);}
.te-footer .te-logo-word small{color:var(--purple-light);}

.te-primary-nav{flex:1 1 auto;}
.te-primary-nav ul{display:flex;gap:2px;justify-content:center;flex-wrap:wrap;}
.te-primary-nav a{
  display:inline-block;font-family:var(--font-head);font-weight:600;font-size:13.5px;
  color:var(--ink);padding:10px 16px;border-radius:999px;transition:background .15s,color .15s;
}
.te-primary-nav a:hover,.te-primary-nav .current-menu-item a{background:var(--purple);color:var(--white);}

.te-header-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto;}
.te-search-toggle{
  width:38px;height:38px;border-radius:50%;background:var(--white);border:1px solid var(--glass-border);
  display:flex;align-items:center;justify-content:center;color:var(--purple);
}
.te-search-toggle:hover{background:var(--purple);color:var(--white);}
.te-menu-toggle{display:none;width:38px;height:38px;border-radius:50%;background:var(--white);border:1px solid var(--glass-border);align-items:center;justify-content:center;color:var(--purple);}

.te-search-panel{
  max-width:var(--container);margin:8px auto 0;padding:0 20px;max-height:0;overflow:hidden;transition:max-height .25s ease;
}
.te-search-panel.is-open{max-height:90px;}
.te-search-form{
  display:flex;max-width:560px;margin:0 auto;background:var(--glass-bg-2);backdrop-filter:blur(16px);
  border:1px solid var(--glass-border);border-radius:999px;padding:6px 6px 6px 20px;box-shadow:var(--glass-shadow);
}
.te-search-form input[type="search"]{flex:1;border:none;padding:10px 4px;font-size:15px;background:transparent;color:var(--ink);font-family:var(--font-body);}
.te-search-form input[type="search"]::placeholder{color:var(--stone);}
.te-search-form button{border:none;background:var(--purple);color:var(--white);font-family:var(--font-head);font-weight:700;padding:10px 22px;border-radius:999px;font-size:12.5px;letter-spacing:.03em;}
.te-search-form button:hover{background:var(--purple-dark);}

/* =========================================================
   3. HERO — centered glass card over blurred background blobs
   ========================================================= */
.te-hero{position:relative;padding:64px 20px 40px;overflow:hidden;}
.te-blob{position:absolute;border-radius:50%;filter:blur(60px);opacity:.55;z-index:0;pointer-events:none;}
.te-blob-1{width:380px;height:380px;background:var(--purple-light);top:-120px;left:-100px;}
.te-blob-2{width:320px;height:320px;background:#C9B8ED;top:40px;right:-80px;}
.te-blob-3{width:260px;height:260px;background:#B79EDD;bottom:-100px;left:38%;}

.te-hero-card{
  position:relative;z-index:1;max-width:900px;margin:0 auto;text-align:center;
  padding:64px 56px;
}
.te-hero-badge{
  display:inline-flex;align-items:center;gap:8px;background:var(--white);
  font-family:var(--font-head);font-weight:700;font-size:11.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--purple);
  padding:8px 18px;border-radius:999px;margin-bottom:24px;box-shadow:0 4px 14px rgba(91,62,150,.12);
}
.te-hero-card h1{font-size:clamp(32px,5vw,52px);margin-bottom:20px;color:var(--ink);}
.te-hero-card h1 span{color:var(--purple);}
.te-hero-sub{font-size:17px;color:var(--stone);max-width:600px;margin:0 auto 30px;}
.te-hero-actions{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;margin-bottom:34px;}
.te-btn{
  display:inline-flex;align-items:center;gap:8px;font-family:var(--font-head);font-weight:700;font-size:14px;
  background:var(--purple);color:var(--white);padding:14px 30px;border-radius:999px;border:none;
  box-shadow:0 10px 24px rgba(91,62,150,.28);
}
.te-btn:hover{background:var(--purple-dark);}
.te-btn-outline{background:var(--white);color:var(--purple);box-shadow:0 6px 16px rgba(91,62,150,.1);}
.te-btn-outline:hover{background:var(--lavender-2);}

.te-hero-stats{display:flex;justify-content:center;gap:0;flex-wrap:wrap;border-top:1px solid rgba(91,62,150,.14);padding-top:26px;}
.te-hero-stat{padding:0 28px;text-align:center;border-right:1px solid rgba(91,62,150,.14);}
.te-hero-stat:last-child{border-right:none;}
.te-hero-stat strong{display:block;font-family:var(--font-head);font-weight:700;font-size:24px;color:var(--purple);}
.te-hero-stat span{display:block;font-size:10.5px;color:var(--stone);text-transform:uppercase;letter-spacing:.08em;font-weight:700;margin-top:4px;}

/* =========================================================
   4. CATEGORY PILLAR GLASS TILES (horizontal-friendly row)
   ========================================================= */
.te-pillars-row{display:grid;grid-template-columns:repeat(6,1fr);gap:16px;}
.te-pillar{
  padding:22px 16px;text-align:center;transition:transform .18s,box-shadow .18s;
}
.te-pillar:hover{transform:translateY(-5px);box-shadow:0 18px 40px rgba(91,62,150,.18);}
.te-pillar-icon{
  width:44px;height:44px;border-radius:14px;margin:0 auto 12px;
  background:linear-gradient(145deg,var(--purple-light),var(--purple));
  display:flex;align-items:center;justify-content:center;color:var(--white);
}
.te-pillar h3{font-size:13.5px;margin-bottom:2px;}
.te-pillar p{font-size:10.5px;color:var(--stone);margin:0;}

/* =========================================================
   5. BENTO GRID — asymmetric, structurally unique
   ========================================================= */
.te-bento{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  grid-auto-rows:220px;
  grid-auto-flow:dense;
  gap:22px;
}
.te-bento-item{grid-column:span 1;grid-row:span 1;}
.te-bento-item.is-feature{grid-column:span 2;grid-row:span 2;}
.te-bento-item.is-wide{grid-column:span 2;grid-row:span 1;}

.te-bcard{
  position:relative;height:100%;display:flex;flex-direction:column;justify-content:flex-end;
  overflow:hidden;padding:22px;color:var(--white);
  background-size:cover;background-position:center;
}
.te-bcard-noimg{background:linear-gradient(150deg,var(--purple-light),var(--purple-dark));}
.te-bcard::before{
  content:"";position:absolute;inset:0;
  background:linear-gradient(0deg,rgba(43,35,64,.86) 0%,rgba(43,35,64,.25) 55%,rgba(43,35,64,.05) 100%);
  z-index:0;
}
.te-bcard-content{position:relative;z-index:1;}
.te-bcard-cat{
  display:inline-block;background:rgba(255,255,255,.92);color:var(--purple);
  font-family:var(--font-head);font-weight:700;font-size:10px;letter-spacing:.06em;text-transform:uppercase;
  padding:5px 12px;border-radius:999px;margin-bottom:12px;
}
.te-bcard h3{color:var(--white);font-size:16px;margin-bottom:6px;}
.te-bento-item.is-feature .te-bcard h3{font-size:24px;}
.te-bcard h3 a:hover{color:var(--lavender-2);}
.te-bcard-excerpt{font-size:12.5px;color:rgba(255,255,255,.82);margin-bottom:0;display:none;}
.te-bento-item.is-feature .te-bcard-excerpt{display:block;}
.te-bcard-meta{font-size:10.5px;color:rgba(255,255,255,.75);font-weight:700;text-transform:uppercase;letter-spacing:.03em;display:flex;gap:8px;align-items:center;margin-top:8px;}
.te-bcard-meta .te-dot{width:3px;height:3px;background:rgba(255,255,255,.6);border-radius:50%;}

/* Standard 3-up glass card (related posts + secondary listings) */
.te-grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;}
.te-card{overflow:hidden;display:flex;flex-direction:column;}
.te-card-thumb{aspect-ratio:16/10;position:relative;overflow:hidden;background:var(--lavender-2);border-radius:var(--radius-md) var(--radius-md) 0 0;}
.te-card-thumb img{width:100%;height:100%;object-fit:cover;}
.te-card-cat{
  position:absolute;top:12px;left:12px;background:var(--white);color:var(--purple);
  font-family:var(--font-head);font-weight:700;font-size:10px;letter-spacing:.06em;text-transform:uppercase;
  padding:5px 12px;border-radius:999px;
}
.te-card-body{padding:20px;}
.te-card-body h3{font-size:16.5px;margin-bottom:8px;}
.te-card-body h3 a:hover{color:var(--purple);}
.te-card-excerpt{font-size:13px;color:var(--stone);margin-bottom:12px;}
.te-card-meta{font-size:10.5px;color:var(--stone);font-weight:700;text-transform:uppercase;letter-spacing:.03em;display:flex;gap:9px;align-items:center;}
.te-card-meta .te-dot{width:3px;height:3px;background:var(--stone);border-radius:50%;}

/* =========================================================
   6. OLDER POSTS
   ========================================================= */
.te-pagination{display:flex;justify-content:center;margin-top:44px;}
.te-older-posts{
  font-family:var(--font-head);font-weight:700;font-size:13.5px;
  background:var(--glass-bg-2);backdrop-filter:blur(16px);color:var(--purple);
  padding:14px 34px;border:1px solid var(--glass-border);border-radius:999px;box-shadow:var(--glass-shadow);
}
.te-older-posts:hover{background:var(--purple);color:var(--white);}

/* =========================================================
   7. SINGLE POST
   ========================================================= */
.te-breadcrumbs{font-size:12px;color:var(--stone);margin-bottom:18px;}
.te-breadcrumbs a:hover{color:var(--purple);}
.te-breadcrumbs span{margin:0 8px;}

.te-article-wrap{padding:36px 20px 0;}
.te-article-head{max-width:820px;margin:0 auto 28px;}
.te-article-head h1{font-size:clamp(28px,4.4vw,44px);}
.te-article-meta{
  display:flex;gap:16px;align-items:center;color:var(--stone);font-size:12px;font-weight:700;
  text-transform:uppercase;letter-spacing:.03em;margin-top:16px;
}
.te-article-meta .te-dot{width:3px;height:3px;background:var(--stone);border-radius:50%;}
.te-article-thumb{max-width:960px;margin:0 auto 36px;border-radius:var(--radius-lg);overflow:hidden;aspect-ratio:16/9;box-shadow:var(--glass-shadow);}
.te-article-thumb img{width:100%;height:100%;object-fit:cover;}
.te-article-body-wrap{padding:36px 44px;max-width:820px;margin:0 auto;}
.te-article-body{font-size:17.5px;color:#332B47;}
.te-article-body h2{font-size:26px;margin-top:1.6em;}
.te-article-body h3{font-size:20px;margin-top:1.4em;}
.te-article-body a{color:var(--purple);text-decoration:underline;text-decoration-color:var(--purple-light);text-underline-offset:3px;font-weight:700;}
.te-article-body a:hover{color:var(--purple-dark);}
.te-article-body img{border-radius:var(--radius-md);margin:1.2em 0;}
.te-article-body blockquote{
  background:var(--glass-bg-2);border-radius:var(--radius-md);margin:1.8em 0;padding:20px 24px;
  font-style:italic;color:var(--ink);font-size:18px;border:1px solid var(--glass-border);
}
.te-article-body ul,.te-article-body ol{padding-left:1.4em;margin-bottom:1.2em;}
.te-article-body li{margin-bottom:.4em;}

.te-internal-links-group{
  background:var(--glass-bg-2);border:1px solid var(--glass-border);border-radius:var(--radius-md);
  padding:18px 22px;margin:1.8em 0;font-size:14.5px;box-shadow:var(--glass-shadow);
}
.te-internal-links-group .te-ilg-label{
  font-family:var(--font-head);font-weight:700;font-size:10.5px;text-transform:uppercase;
  letter-spacing:.1em;color:var(--purple);display:block;margin-bottom:10px;
}
.te-internal-links-group ul{display:flex;flex-direction:column;gap:7px;}
.te-internal-links-group a{font-weight:700;color:var(--ink);text-decoration:none;}
.te-internal-links-group a:hover{color:var(--purple);text-decoration:underline;}

.te-author-box{
  max-width:820px;margin:44px auto 0;padding:22px 26px;border-radius:var(--radius-md);
  display:flex;gap:16px;align-items:center;
}
.te-author-box img{width:52px;height:52px;border-radius:50%;flex:0 0 auto;}
.te-author-box strong{font-family:var(--font-head);font-weight:700;font-size:14px;color:var(--ink);display:block;}
.te-author-box span{font-size:12.5px;color:var(--stone);}

/* =========================================================
   8. RELATED POSTS
   ========================================================= */
.te-related{margin-top:56px;padding-bottom:64px;}
.te-related-inner{max-width:1080px;margin:0 auto;padding:0 20px;}
.te-related h2{font-size:22px;margin-bottom:24px;}

/* =========================================================
   9. FOOTER — solid deep purple with glass accent cards
   ========================================================= */
.te-footer{background:linear-gradient(160deg,var(--purple-dark),#33204F);color:var(--white);margin-top:40px;border-radius:var(--radius-lg) var(--radius-lg) 0 0;}
.te-footer-top{padding:56px 0 32px;}
.te-footer-grid{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:36px;}
.te-footer-brand p{color:rgba(255,255,255,.65);font-size:13.5px;margin-top:14px;max-width:280px;}
.te-footer h4{color:var(--white);font-family:var(--font-head);font-weight:700;font-size:12px;text-transform:uppercase;letter-spacing:.08em;margin-bottom:16px;}
.te-footer ul li{margin-bottom:9px;}
.te-footer a{color:rgba(255,255,255,.65);font-size:13.5px;}
.te-footer a:hover{color:var(--white);}
.te-footer-bottom{
  border-top:1px solid rgba(255,255,255,.12);padding:20px 0;
  display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;
}
.te-footer-bottom p{margin:0;font-size:12px;color:rgba(255,255,255,.6);}
.te-footer-bottom ul{display:flex;gap:18px;}
.te-footer-bottom a{font-size:12px;}

/* =========================================================
   10. ARCHIVE / SEARCH / 404 / STATIC
   ========================================================= */
.te-page-header{padding:52px 20px 40px;}
.te-page-header-inner{max-width:var(--container);margin:0 auto;padding:36px 40px;}
.te-page-header h1{font-size:clamp(26px,4vw,38px);margin-bottom:8px;}
.te-page-header p{color:var(--stone);margin:0;max-width:640px;}

.te-static-page{max-width:820px;margin:0 auto;padding:44px 44px 64px;font-size:17px;}
.te-static-page h1{font-size:clamp(28px,4vw,38px);margin-bottom:24px;}
.te-static-page h2{font-size:22px;margin-top:1.6em;}

.te-404{text-align:center;padding:70px 44px;}
.te-404 .te-404-code{font-family:var(--font-head);font-weight:700;font-size:88px;color:var(--purple-light);line-height:1;}
.te-404 h1{font-size:26px;}

/* =========================================================
   11. RESPONSIVE
   ========================================================= */
@media (max-width:1080px){
  .te-bento{grid-template-columns:repeat(3,1fr);grid-auto-rows:200px;}
  .te-bento-item.is-feature{grid-column:span 2;grid-row:span 2;}
  .te-bento-item.is-wide{grid-column:span 2;}
  .te-pillars-row{grid-template-columns:repeat(3,1fr);}
  .te-grid-3{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:860px){
  .te-primary-nav{
    position:fixed;top:0;right:-320px;width:300px;height:100vh;
    background:var(--glass-bg-2);backdrop-filter:blur(20px);
    padding:100px 24px 24px;transition:right .25s ease;z-index:70;overflow-y:auto;
  }
  .te-primary-nav.is-open{right:0;box-shadow:-8px 0 24px rgba(43,35,64,.2);}
  .te-primary-nav ul{flex-direction:column;gap:2px;}
  .te-primary-nav a{color:var(--ink);width:100%;padding:14px 16px;border-radius:14px;}
  .te-menu-toggle{display:flex;}
  .te-bento{grid-template-columns:repeat(2,1fr);grid-auto-rows:190px;}
  .te-bento-item.is-feature{grid-column:span 2;grid-row:span 2;}
  .te-bento-item.is-wide{grid-column:span 2;}
  .te-hero-card{padding:48px 28px;}
  .te-footer-grid{grid-template-columns:1fr 1fr;}
  .te-grid-3{grid-template-columns:1fr;}
}
@media (max-width:640px){
  .te-bento{grid-template-columns:1fr;grid-auto-rows:220px;}
  .te-bento-item.is-feature,.te-bento-item.is-wide{grid-column:span 1;}
  .te-pillars-row{grid-template-columns:repeat(2,1fr);}
  .te-hero-stats{gap:0;}
  .te-hero-stat{padding:0 16px;}
  .te-footer-grid{grid-template-columns:1fr;}
  .te-article-body-wrap{padding:28px 24px;}
  .te-static-page{padding:36px 24px 56px;}
  .section{padding:52px 0;}
}
