/* =========================================================
   terms.css — Modern Glossary / Dictionary Page
   Enhanced, Refactored & Scalable (A–Z Included)
   Author: Netstuts
========================================================= */

/* =========================================================
   DESIGN TOKENS
========================================================= */
:root {
    --bg-main: #ffffff;
    --bg-card: #dbeafe;
    --bg-glass: rgba(30, 41, 59, 0.85);

    --primary: #3b82f6;
    --primary-light: #60a5fa;
    --accent: #34d399;

    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --text-white: #ffffff;

    --border-soft: rgba(100, 116, 139, 0.3);
    --border-strong: rgba(100, 116, 139, 0.45);

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;

    --shadow-sm: 0 6px 15px rgba(0,0,0,.25);
    --shadow-md: 0 10px 30px rgba(0,0,0,.3);
    --shadow-lg: 0 15px 35px rgba(0,0,0,.4);

    --transition-fast: 0.25s ease;
    --transition-smooth: 0.35s cubic-bezier(.4,0,.2,1);
}

/* =========================================================
   BASE RESET
========================================================= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.65;
    min-height: 100vh;
}

.wrapper,
.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

/* =========================================================
   PAGE TITLE
========================================================= */
h1 {
    text-align: center;
    font-size: 3.2rem;
    margin: 2.8rem 0;
    font-weight: 800;
    letter-spacing: -0.6px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 3px 12px rgba(0,0,0,.25);
}

/* =========================================================
   A–Z GLOSSARY NAVIGATION (TOC)
========================================================= */
.toc {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .55rem;
    padding: 1.8rem;
    margin-bottom: 3.2rem;
    background: var(--bg-glass);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
}

/* Base A–Z button */
.toc a {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--primary-light);
    text-decoration: none;
    border-radius: var(--radius-md);
    background: rgba(15,23,42,.9);
    border: 1px solid var(--border-soft);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

/* Hover */
.toc a:hover {
    background: linear-gradient(135deg, var(--primary), #1d4ed8);
    color: var(--text-white);
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 10px 22px rgba(59,130,246,.45);
    border-color: transparent;
}

/* Active / current letter */
.toc a.active {
    background: linear-gradient(135deg, var(--accent), #16a34a);
    color: #022c22;
    box-shadow: 0 0 0 2px rgba(52,211,153,.35);
}

/* Disabled letters (no terms) */
.toc a.disabled {
    pointer-events: none;
    opacity: .35;
    background: rgba(15,23,42,.5);
    color: var(--text-muted);
}

/* Shine effect */
.toc a::before {
    content: '';
    position: absolute;
    inset: 0;
    left: -100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
    transition: left .7s ease;
}
.toc a:hover::before { left: 100%; }

/* =========================================================
   LETTER SECTIONS
========================================================= */
h2 {
    font-size: 2.25rem;
    margin: 3.8rem 0 1.6rem;
    padding-bottom: .75rem;
    color: var(--primary-light);
    border-bottom: 3px solid var(--primary);
    position: relative;
    font-weight: 700;
}

h2::before {
    content: '📘';
    position: absolute;
    left: -42px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.7rem;
    opacity: .85;
}

/* =========================================================
   TERM CARD
========================================================= */
.term {
    background: var(--bg-card);
    border-left: 5px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 1.9rem;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-sm);
    position: relative;
    animation: fadeInUp .55s ease forwards;
    transition: var(--transition-fast);
	color: #0f172a;
}

.term:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--primary-light);
}

.term h3 {
    font-size: 1.55rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
	color: #020617;
}

.term h3::before {
    content: '•';
    font-size: 2rem;
    color: var(--primary-light);
}

/* =========================================================
   CONTENT BLOCKS
========================================================= */
.definition,
.usage,
.example {
    margin-bottom: 1.2rem;
    padding-left: 1rem;
    border-left: 2px solid rgba(59,130,246,.35);
    font-size: 1.05rem;
	color: #1e293b;
}

.definition strong,
.usage strong,
.example strong {
    color: var(--primary-light);
    font-weight: 700;
    margin-right: 6px;
}

code {
    font-family: 'Fira Code', monospace;
    background: rgba(15,23,42,.85);
    color: var(--accent);
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid var(--border-soft);
    font-size: .95rem;
}

/* =========================================================
   PRIMARY BUTTON
========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: .9rem 1.9rem;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary), #1d4ed8);
    color: var(--text-white);
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn svg {
    width: 20px;
    transition: transform .3s ease;
}
.btn:hover svg { transform: translateX(-4px); }

/* =========================================================
   FOOTER
========================================================= */
footer {
    margin-top: 4rem;
    padding: 2.6rem 0;
    background: rgba(15,23,42,.95);
    border-top: 1px solid var(--border-soft);
    text-align: center;
}

footer p:first-child {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.4rem;
}

footer div {
    color: var(--text-muted);
    font-size: .95rem;
}

/* =========================================================
   SOCIAL BUTTONS
========================================================= */
.social-share {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.svg-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: .7rem 1.5rem;
    border-radius: var(--radius-sm);
    color: #fff;
    font-weight: 600;
    transition: var(--transition-fast);
}

.svg-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Brand colors */
.facebook { background: linear-gradient(135deg,#1877f2,#0d65c9); }
.twitter  { background: linear-gradient(135deg,#1da1f2,#0c8bd9); }
.whatsapp { background: linear-gradient(135deg,#25d366,#1ea952); }
.linkedin { background: linear-gradient(135deg,#0077b5,#00669c); }

/* =========================================================
   ANIMATIONS
========================================================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   SCROLLBAR
========================================================= */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0f172a; }
::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover { background: #475569; }

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 768px) {
    h1 { font-size: 2.4rem; }
    h2 { font-size: 1.85rem; }
    .toc a { width: 42px; height: 42px; }
    .term { padding: 1.6rem; }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    .toc { border-radius: 14px; }
    .svg-button { width: 90%; }
}
footer div span {
    color: #020617; /* dark black / slate-black */
    font-size: 0.95rem; /* optional, keep consistent */
    font-weight: 500;   /* optional, slightly bold */
}
