/* ============================================================
   TAG WEB — DESIGN SYSTEM
   CSS Custom Properties (theme variables)
   Dark mode = default  |  Light mode = [data-theme="light"]
   ============================================================ */

/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ── Dark Theme (default) ─────────────────────────────────── */
:root {
    /* Backgrounds */
    --bg-body: #0d1117;
    --bg-header: #161b22;
    --bg-nav: #161b22;
    --bg-section: #0d1117;
    --bg-card: #161b22;
    --bg-modal: #161b22;
    --bg-entry: #0d1117;
    --bg-quiz: #0d1117;
    --bg-textarea: #010409;
    --bg-scrollbtn: #21262d;

    /* Text */
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-heading: #f0f6fc;
    --text-modal-h3: #3fb950;
    --text-modal-h4: #58a6ff;
    --text-accent: #193454;
    --text-code: #e6edf3;
    --text-history: #9da7b3;

    /* Borders & Shadows */
    --border-card: #30363d;
    --border-modal: #30363d;
    --shadow-card: rgba(0, 0, 0, 0.4);
    --shadow-section: rgba(0, 0, 0, 0.25);
    --shadow-header: 0 2px 20px rgba(0, 0, 0, 0.6);

    /* Glows */
    --glow-h2: 0 0 10px rgba(88, 166, 255, 0.6);

    /* Interactive */
    --btn-primary-bg: #238636;
    --btn-primary-text: #ffffff;
    --btn-run-bg: #21262d;
    --btn-run-hover: #58a6ff;
    --nav-link: #c9d1d9;
    --nav-link-hover: #58a6ff;

    /* Misc */
    --quiz-border: #30363d;
    --toggle-bg: #21262d;
    --tooltip-bg: #161b22;
    --search-bg: #010409;
    --search-text: #e6edf3;
    --search-border: #238636;
    --link-more: #58a6ff;
    --footer-text: #8b949e;
    --overlay-bg: rgba(0, 0, 0, 0.75);
}

/* Light */
html[data-theme="light"] {
    --bg-body: #f6f8fa;
    --bg-header: #16a085;
    --bg-nav: #1abc9c;
    --bg-section: #ffffff;
    --bg-card: #f8fafc;
    --bg-modal: #ffffff;
    --bg-entry: #f1f4f8;
    --bg-quiz: #eef4ff;
    --bg-textarea: #ffffff;
    --bg-scrollbtn: #e2e8f0;

    --text-primary: #24292f;
    --text-secondary: #57606a;
    --text-heading: #1f2328;
    --text-modal-h3: #1a7f37;
    --text-modal-h4: #0969da;
    --text-accent: #0969da;
    --text-code: #24292f;
    --text-history: #57606a;

    --border-card: #d0d7de;
    --border-modal: #d0d7de;
    --shadow-card: rgba(0, 0, 0, 0.08);
    --shadow-section: rgba(0, 0, 0, 0.05);
    --shadow-header: 0 2px 15px rgba(0, 0, 0, 0.1);

    --glow-h2: none;

    --btn-primary-bg: #2da44e;
    --btn-primary-text: #ffffff;
    --btn-run-bg: #eaeef2;
    --btn-run-hover: #0969da;
    --nav-link: #57606a;
    --nav-link-hover: #0969da;

    --quiz-border: #d0d7de;
    --toggle-bg: #eaeef2;
    --tooltip-bg: #24292f;
    --search-bg: #ffffff;
    --search-text: #24292f;
    --search-border: #2da44e;
    --link-more: #0969da;
    --footer-text: #57606a;
    --overlay-bg: rgba(0, 0, 0, 0.55);
}

/* ============================================================
   BASE RESET & BODY
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
}

/* Dark Theme (GitHub style) */

html[data-theme="dark"] body,
:root body {

    background:
        radial-gradient(circle at 15% 20%, rgba(88, 166, 255, 0.15), transparent 35%),
        radial-gradient(circle at 85% 80%, rgba(88, 166, 255, 0.15), transparent 35%),
        linear-gradient(180deg, #0d1117 0%, #0d1117 40%, #080808 100%);
}

/* Light Theme (GitHub style) */

html[data-theme="light"] body {

    background:
        radial-gradient(circle at 10% 10%, rgba(9, 105, 218, 0.08), transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(26, 127, 55, 0.06), transparent 40%),
        linear-gradient(135deg, #ffffff 0%, #f6f8fa 50%, #eef1f4 100%);
}

/* ============================================================
   GLOBAL ELEMENTS
   ============================================================ */
h1 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--text-heading);
}

h2 {
    color: var(--text-heading);
    text-shadow: var(--glow-h2);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 20px;
    margin-top: 8px;
}

/* Fix: previously p had grey bg + dark text globally — removed */
p {
    margin: 0 0 8px;
    line-height: 1.6;
    color: var(--text-primary);
}

a {
    color: var(--text-accent);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--nav-link-hover);
}

/* ============================================================
   HEADER
   ============================================================ */
header {
    background: var(--bg-header);
    color: var(--text-primary);
    text-align: center;
    padding: 16px 20px;
    box-shadow: var(--shadow-header);
    position: relative;
}

header h1 {
    font-size: 1.6rem;
    color: #fff;
    text-shadow: 0 0 4px rgba(14, 34, 63, 0.4);

    margin-bottom: 4px;
}

html[data-theme="light"] header h1 {
    color: #0D1117;
}

/* Logo */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    text-decoration: none;
}

.dra-LOGO {
    width: 55px;
    height: 55px;
    border-radius: 10px;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.dra-LOGO:hover,
.logo:focus-within .dra-LOGO {
    transform: scale(1.1);
}

.brand-wordmark {
    color: #fff;
    font-weight: 700;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
}


html[data-theme="light"] .brand-wordmark {
    color: #0D1117;
}

.logo:focus-visible {
    outline: 3px solid rgba(34, 197, 94, 0.4);
    outline-offset: 4px;
    border-radius: 8px;
}

/* ============================================================
   THEME TOGGLE BUTTON (UPGRADED UI/UX)
   ============================================================ */

#theme-switch {
    height: 50px;
    width: 50px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #010125;
    position: fixed;
    top: 14px;
    right: 20px;
    z-index: 1002;
    cursor: pointer;
}

/* Light mode (moon) */
#theme-switch #moon {
    fill: snow;
}

/* Hide sun in light mode */
#theme-switch svg:first-child {
    display: none;
}

/* Dark mode (sun) */
html[data-theme="light"] #theme-switch {

    background-color: #f8efc9;
    /* light cream background */
    box-shadow: 0 0 10px rgba(208, 190, 58, 0.6);
    /* glowing effect */
}

/* Sun icon visible in dark mode */
html[data-theme="light"] #theme-switch svg:first-child {
    display: block;
    fill: #d1b61b;
}

/* Hide moon in dark mode */
html[data-theme="light"] #theme-switch svg:last-child {
    display: none;
}

/* Responsive position */
@media (max-width: 768px) {
    #theme-switch {
        top: auto;
        bottom: 8rem;
        right: 15px;
        z-index: 1002;
    }
}


/* ============================================================
   RESPONSIVE NAVIGATION SYSTEM
   ============================================================ */
.nav-container {
    width: calc(100% + 40px);
    margin-left: -20px;
    margin-top: 16px;
    margin-bottom: -16px;
    position: relative;
    background: var(--bg-nav);
    box-shadow: 0 0 15px var(--shadow-card);
}

/* 🔴 DEFAULT: HIDE hamburger on desktop */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: absolute;
    top: -46px;
    right: 15px;
    z-index: 2000;
}

/* Bars */
.hamburger .bar {
    width: 26px;
    height: 3px;
    margin: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* 🔥 PERFECT CENTER CROSS ANIMATION */
.hamburger[aria-expanded="true"] .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] .bar:nth-child(2) {
    opacity: 0;
}

.hamburger[aria-expanded="true"] .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* NAVBAR */
.navbar {
    width: 100%;
    z-index: 1000;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.nav-list>li {
    position: relative;
}

.nav-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 14px;
    color: var(--nav-link);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 6px;
    transition: 0.3s;
}

.nav-list a:hover {
    background: var(--btn-run-hover);
    color: #fff;
}

/* DROPDOWN */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-nav);
    border: 1px solid var(--border-modal);
    min-width: 220px;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.3s;
}

/* Desktop dropdown */
@media (min-width: 769px) {
    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

    /* ✅ SHOW hamburger only on mobile */
    .hamburger {
        display: flex;
    }

    header {
        position: relative;
    }

    /* Sidebar menu */
    .navbar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 300px;
        height: 100vh;
        background: var(--bg-nav);
        transition: left 0.4s ease;
        padding-top: 70px;
        z-index: 1500;
    }

    .navbar.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }

    .nav-list li {
        width: 100%;
    }

    .nav-list a {
        width: 100%;
        padding: 12px;
    }

    /* Mobile dropdown */
    .dropdown-menu {
        position: static;
        display: none;
        background: rgba(255, 255, 255, 0.05);
        padding-left: 10px;
    }

    .dropdown.mobile-open .dropdown-menu {
        display: block;
    }
}

/* SEARCH BAR */
.search-container {
    margin: 1rem auto 4px;
    text-align: center;
}

#searchBar {
    width: 60%;
    max-width: 420px;
    padding: 10px 16px;
    border: 2px solid var(--search-border);
    border-radius: 25px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: var(--search-bg);
    color: var(--search-text);
}

#searchBar::placeholder {
    color: var(--text-secondary);
}

#searchBar:focus {
    border-color: var(--btn-run-hover);
    box-shadow: 0 0 10px rgba(30, 144, 255, 0.35);
}

/* ============================================================
   ENTRY OVERLAY (Splash Screen)
   ============================================================ */
#entry-overlay {
    position: fixed;
    inset: 0;
    background: var(--overlay-bg);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.entry-box {
    max-width: 520px;
    width: 90%;
    background: var(--bg-entry);
    padding: 32px 28px;
    border: 1px solid #30363d;

    box-shadow:
        0 1px 0 rgba(27, 31, 36, 0.04),
        0 8px 24px rgba(0, 0, 0, 0.4);
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border-modal);
}

.entry-box h1 {
    color: var(--text-accent);
    margin-bottom: 12px;
    font-size: 1.6rem;
}

.entry-box p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 0.95rem;
    line-height: 1.6;
    background: none;
}

.entry-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

#enter-btn,
#reject-btn {
    padding: 11px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.25s, transform 0.15s;
}

#enter-btn {
    background: #16a085;
    color: #fff;
}

#enter-btn:hover {
    background: var(--btn-run-hover);
    transform: translateY(-1px);
}

#reject-btn {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-modal);
}

#reject-btn:hover {
    background: rgba(255, 60, 60, 0.12);
    color: #ff5555;
    border-color: #ff5555;
}

/* ============================================================
   SECTIONS
   ============================================================ */
section {
    margin: 24px auto;
    padding: 24px;
    max-width: 1100px;
    background: var(--bg-section);
    border-radius: 12px;
    box-shadow: 0 0 20px var(--shadow-section);
    transition: background 0.3s;
}

/* ============================================================
   TAG CARDS
   ============================================================ */
.tag-card {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-card);
    margin: 8px 0;
    padding: 16px 20px;
    border-radius: 14px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 4px 12px var(--shadow-card);
    position: relative;
    font-weight: 500;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.tag-card:hover {
    transform: translateY(-4px) scale(1.015);
    box-shadow: 0 12px 28px var(--shadow-card);
    border-color: var(--text-accent);
}

.tag-card.highlight {
    background: var(--btn-run-hover);
    color: #fff;
    border-color: transparent;
}

/* ── "More tags" links inside sections (previously inline styles) ── */
.more-tags-link {
    display: block;
    margin-top: 12px;
    color: var(--link-more);
    font-weight: bold;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s;
}

.more-tags-link:hover {
    color: var(--btn-run-hover);
}

/* ── Blur when search active ── */
.blur .tag-card {
    filter: blur(3px);
}

.tag-card[style*="inline-block"] {
    filter: none !important;
}

/* ============================================================
   TOOLTIP
   ============================================================ */
.tooltip {
    visibility: hidden;
    background: var(--tooltip-bg);
    color: #fff;
    padding: 4px 10px;
    border-radius: 5px;
    position: absolute;
    top: -36px;
    left: 0;
    z-index: 10;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.tag-card:hover .tooltip {
    visibility: visible;
}

/* ============================================================
   MODAL
   ============================================================ */
#modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-bg);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.25s ease;
}

#modal-content {
    background: var(--bg-modal);
    color: var(--text-primary);
    padding: 24px;
    max-width: 860px;
    width: 92%;
    border-radius: 12px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideDown 0.25s ease;
    border: 1px solid var(--border-modal);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
    transition: background 0.3s, color 0.3s;
}

#modal-content h3 {
    margin-top: 0;
    color: var(--text-modal-h3);
    font-size: 1.3rem;
}

#modal-content h4 {
    color: var(--text-modal-h4);
    margin: 16px 0 8px;
}

/* History paragraph inside modal */
#modal-history {
    color: var(--text-history);
    background: none;
    border-left: 3px solid var(--border-card);
    padding: 8px 14px;
    border-radius: 0 6px 6px 0;
    margin: 0 0 14px;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Modal close button */
#close-modal {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 26px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.2s;
    line-height: 1;
}

#close-modal:hover {
    color: #ff5555;
}

/* Modal theme toggle (moon/sun inside modal) */
.modal-toggle,
#modalThemeBtn {
    background: var(--toggle-bg);
    border: 1px solid var(--border-modal);
    color: var(--text-primary);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.25s;
    margin-bottom: 10px;
}

.modal-toggle:hover,
#modalThemeBtn:hover {
    background: var(--btn-run-hover);
    color: #fff;
}

/* ── Dark variant of modal (internal toggle) ── */
#modal-content.modal-dark {
    background: #051c38;
    color: #eaeaea;
    border-color: #0a2a4f;
}

#modal-content.modal-dark h3 {
    color: #64ffda;
}

#modal-content.modal-dark h4 {
    color: #3fc1c9;
}

#modal-content.modal-dark #modal-history {
    color: #a9bfd4;
    border-left-color: #1e90ff;
}

/* ============================================================
   CODE EDITOR (Textarea inside modal)
   ============================================================ */
textarea {
    width: 100%;
    height: 150px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    border-radius: 8px;
    border: 1px solid var(--border-modal);
    padding: 12px;
    background: var(--bg-textarea);
    color: var(--text-code);
    resize: vertical;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

textarea:focus {
    outline: none;
    border-color: var(--btn-run-hover);
}

/* CodeMirror overrides */
.CodeMirror {
    height: auto;
    min-height: 150px;
    max-height: 400px;
    border-radius: 8px;
    border: 1px solid var(--border-modal);
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
    font-size: 14px;
    margin-bottom: 10px;
}

.CodeMirror-scroll {
    min-height: 150px;
    max-height: 400px;
}

/* ============================================================
   MODAL ACTION BUTTONS
   ============================================================ */
.action-sm-btn {
    background: transparent;
    border: 1px solid var(--border-modal);
    color: var(--text-secondary);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    margin-left: 6px;
}

.action-sm-btn:hover {
    background: var(--btn-run-hover);
    color: #fff;
    border-color: var(--btn-run-hover);
}

button.run-btn,
button.copy-btn,
button.quiz-btn {
    padding: 9px 16px;
    background: var(--btn-run-bg);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
    margin-right: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.25s, transform 0.15s;
}

button.run-btn:hover,
button.copy-btn:hover,
button.quiz-btn:hover {
    background: var(--btn-run-hover);
    transform: translateY(-1px);
}

/* ============================================================
   LIVE PREVIEW IFRAME
   ============================================================ */
iframe {
    width: 100%;
    height: 250px;
    border: 1px solid var(--border-modal);
    border-radius: 10px;
    margin-top: 14px;
    background: #ffffff;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: height 0.3s ease;
}

html[data-theme="dark"] iframe {
    background: #0d1117;
    border-color: #30363d;
}

/* ============================================================
   QUIZ SECTION
   ============================================================ */
.quiz-section {
    background: var(--bg-quiz);
    padding: 14px 16px;
    margin: 14px 0 0;
    border-radius: 8px;
    border: 1px solid var(--quiz-border);
}

.quiz-section h4 {
    margin-top: 0;
}

.quiz-section p {
    background: none;
    color: var(--text-secondary);
    padding: 0;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.quiz-section input[type="text"] {
    width: 100%;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-modal);
    background: var(--bg-textarea);
    color: var(--search-text);
    font-size: 0.9rem;
    box-sizing: border-box;
    margin-bottom: 8px;
}

.quiz-section input[type="text"]:focus {
    outline: none;
    border-color: var(--btn-run-hover);
}

/* ============================================================
   SCROLL BUTTONS
   ============================================================ */
#scrollTopBtn,
#scrollBottomBtn {
    position: fixed;
    right: 18px;
    bottom: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-modal);
    background: var(--bg-scrollbtn);
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    transition: background 0.25s, transform 0.15s;
    z-index: 999;
    display: none;
}

#scrollBottomBtn {
    bottom: 70px;
    display: block;
}

#scrollTopBtn:hover,
#scrollBottomBtn:hover {
    background: var(--btn-run-hover);
    transform: scale(1.1);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    text-align: center;
    padding: 24px;
    font-size: 0.9rem;
    color: var(--footer-text);
    border-top: 1px solid var(--border-modal);
    margin-top: 16px;
}

footer h3 {
    margin: 0 0 8px;
    color: var(--text-heading);
}

footer p {
    background: none;
    color: var(--footer-text);
    padding: 4px 0;
    margin: 4px 0;
    line-height: 1.5;
}

footer a {
    color: var(--link-more);
    font-weight: 600;
}

footer a:hover {
    color: var(--btn-run-hover);
}

.DP {
    height: 80px;
    width: 80px;
    border-radius: 50%;
    border: 2px solid #21262d;
    object-fit: cover;
    margin-bottom: 10px;
}

.wa {
    margin-top: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: box-shadow 0.3s ease, transform 0.2s;
}

.wa:hover {
    transform: scale(1.1);
}

/* ============================================================
   JAVASCRIPT COMING SOON SECTION
   ============================================================ */
.coming-soon-section {
    position: relative;
    overflow: hidden;
}

.coming-soon-section::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: repeating-linear-gradient(-45deg,
            transparent,
            transparent 8px,
            rgba(255, 193, 7, 0.04) 8px,
            rgba(255, 193, 7, 0.04) 16px);
    pointer-events: none;
}

.coming-soon-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.js-card-locked {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px dashed #f59e0b;
    margin: 8px 0;
    padding: 14px 18px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.js-card-locked:hover {
    opacity: 0.9;
}

.lock-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-40px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.3rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    section {
        margin: 14px 10px;
        padding: 16px;
    }

    #searchBar {
        width: 85%;
    }
}

@media (max-width: 480px) {
    .entry-box {
        padding: 22px 16px;
    }

    .entry-box h1 {
        font-size: 1.3rem;
    }

    .entry-actions {
        flex-direction: column;
        align-items: stretch;
    }

    #enter-btn,
    #reject-btn {
        width: 100%;
    }

    .brand-wordmark {
        display: none;
    }

    .dra-LOGO {
        width: 44px;
        height: 44px;
    }

    #modal-content {
        padding: 16px;
    }
}

/* ============================================================
   SCROLLBAR STYLING (optional, webkit)
   ============================================================ */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
    background: var(--border-modal);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-accent);
}

/* social icons */
.social-icons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.icon {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

/* Social icons container */
.social-icons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.social-icons .icon {
    position: relative;
    font-size: 25px;
    color: snow;
    transition: color 0.3s ease;
}

/* Icon base style */
.icon {
    position: relative;
    font-size: 30px;
    color: #333;
    transition: color 0.3s ease;
    touch-action: manipulation;
    /* for mobile tap */
}

.social-icons .icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

/* Tooltip-style label below icon */
.icon::after {
    content: attr(aria-label);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 4px;
    color: white;
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.3s ease,
        bottom 0.3s ease;
    white-space: nowrap;
}

/* Show label on hover or tap */
.icon:hover::after,
.icon:focus::after,
.icon:active::after {
    opacity: 1;
    bottom: -40px;
}

/* Brand-specific hover color and label background */
.icon[aria-label="YouTube"]:hover,
.icon[aria-label="YouTube"]:focus,
.icon[aria-label="YouTube"]:active {
    color: #ff0000;
}

.icon[aria-label="YouTube"]::after {
    background-color: #ff0000;
}

.icon[aria-label="GitHub"]:hover,
.icon[aria-label="GitHub"]:focus,
.icon[aria-label="GitHub"]:active {
    color: #2b3137;
}

.icon[aria-label="GitHub"]::after {
    background-color: #24292e;
}

.icon[aria-label="Instagram"]:hover,
.icon[aria-label="Instagram"]:focus,
.icon[aria-label="Instagram"]:active {
    color: #e1306c;
}

.icon[aria-label="Instagram"]::after {
    background-color: #e1306c;
}

.icon[aria-label="LinkedIn"]:hover,
.icon[aria-label="LinkedIn"]:focus,
.icon[aria-label="LinkedIn"]:active {
    color: #0077b5;
}

.icon[aria-label="LinkedIn"]::after {
    background-color: #0077b5;
}

.icon[aria-label="whatsapp"]:hover,
.icon[aria-label="whatsapp"]:focus,
.icon[aria-label="whatsapp"]:active {
    color: #25d366;
}

.icon[aria-label="whatsapp"]::after {
    background-color: #25d366;
}

/* light mode */
html[data-theme="light"] .social-icons .icon {
    color: #0D1117;

    background: rgba(0, 0, 0, 0.05);

    border: 1px solid rgba(0, 0, 0, 0.15);

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);

    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

html[data-theme="light"] .social-icons .icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .icon[aria-label="YouTube"]:hover,
.icon[aria-label="YouTube"]:focus,
.icon[aria-label="YouTube"]:active {
    color: #ff0000;
}

html[data-theme="light"] .icon[aria-label="youtube"]::after {
    background-color: #ff0000;
}

html[data-theme="light"] .icon[aria-label="GitHub"]:hover,
.icon[aria-label="GitHub"]:focus,
.icon[aria-label="GitHub"]:active {
    color: #2b3137;
}

html[data-theme="light"] .icon[aria-label="GitHub"]::after {
    background-color: #24292e;
}

html[data-theme="light"] .icon[aria-label="Instagram"]:hover,
.icon[aria-label="Instagram"]:focus,
.icon[aria-label="Instagram"]:active {
    color: #e1306c;
}

html[data-theme="light"] .icon[aria-label="Instagram"]::after {
    background-color: #e1306c;
}

html[data-theme="light"] .icon[aria-label="LinkedIn"]:hover,
.icon[aria-label="LinkedIn"]:focus,
.icon[aria-label="LinkedIn"]:active {
    color: #0077b5;
}

html[data-theme="light"] .icon[aria-label="LinkedIn"]::after {
    background-color: #0077b5;
}

html[data-theme="light"] .icon[aria-label="whatsapp"]:hover,
.icon[aria-label="whatsapp"]:focus,
.icon[aria-label="whatsapp"]:active {
    color: #25d366;
}

html[data-theme="light"] .icon[aria-label="whatsapp"]::after {
    background-color: #25d366;
}