/* ============================================================
 * WisWits Hiring Theme — main.css
 * Lightweight, professional, SaaS / EdTech aesthetic.
 * Pairs with the WisWits Advanced Internship Hiring System plugin.
 * ============================================================ */

:root {
    --wwht-primary: #4f46e5;
    --wwht-accent:  #7c3aed;
    --wwht-text:    #1f2937;
    --wwht-muted:   #64748b;
    --wwht-bg:      #f6f7fb;
    --wwht-card:    #ffffff;
    --wwht-border:  #e5e7eb;
    --wwht-radius:  14px;
    --wwht-shadow:  0 4px 18px rgba(15, 23, 42, 0.06);
    --wwht-shadow-lg: 0 12px 40px rgba(79, 70, 229, 0.15);
    --wwht-font:    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--wwht-font);
    color: var(--wwht-text);
    background: var(--wwht-bg);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--wwht-primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--wwht-accent); }

p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { color: #0f172a; line-height: 1.25; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.2rem; }

.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px; height: 1px; overflow: hidden;
}
.wwht-skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--wwht-primary); color: #fff; padding: 8px 16px; z-index: 99999;
}
.wwht-skip-link:focus { left: 8px; top: 8px; color: #fff; }

.wwht-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 22px;
}

/* ============================================================
 * Header
 * ============================================================ */
.wwht-site-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(150%) blur(10px);
    border-bottom: 1px solid var(--wwht-border);
    position: sticky; top: 0; z-index: 100;
}
.wwht-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 22px;
    min-height: 70px;
}
.wwht-brand { flex: 0 0 auto; }
.wwht-brand .custom-logo-link img { max-height: 50px; width: auto; }
.wwht-brand-link {
    display: flex; align-items: center; gap: 12px;
    color: inherit; text-decoration: none;
}
.wwht-brand-mark {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 42px; height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--wwht-primary), var(--wwht-accent));
    color: #fff; font-weight: 700; letter-spacing: 1px; font-size: 14px;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}
.wwht-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.wwht-brand-name { font-weight: 700; font-size: 16px; color: #0f172a; }
.wwht-brand-tag  { font-size: 11px; color: var(--wwht-muted); letter-spacing: .5px; }

.wwht-primary-nav { display: flex; align-items: center; gap: 22px; }
.wwht-menu { list-style: none; padding: 0; margin: 0; display: flex; gap: 4px; align-items: center; }
.wwht-menu li a {
    color: #334155;
    padding: 8px 14px; border-radius: 8px; font-size: 14.5px; font-weight: 500;
    display: inline-block; transition: background .15s, color .15s;
}
.wwht-menu li a:hover, .wwht-menu li.current-menu-item > a { background: #eef2ff; color: var(--wwht-primary); }
.wwht-menu .sub-menu {
    display: none; position: absolute; background: #fff; border: 1px solid var(--wwht-border);
    border-radius: 10px; box-shadow: var(--wwht-shadow); padding: 6px; min-width: 190px;
    list-style: none; margin: 6px 0 0;
}
.wwht-menu li { position: relative; }
.wwht-menu li:hover > .sub-menu { display: block; }

.wwht-cta-btn {
    background: linear-gradient(135deg, var(--wwht-primary), var(--wwht-accent));
    color: #fff !important;
    padding: 9px 20px; border-radius: 9px;
    font-size: 14px; font-weight: 600;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    transition: transform .15s, box-shadow .15s;
}
.wwht-cta-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(79, 70, 229, 0.4); color: #fff !important; }

.wwht-menu-toggle {
    display: none;
    background: transparent; border: 0; cursor: pointer; padding: 8px;
    width: 40px; height: 40px;
    flex-direction: column; justify-content: center; gap: 5px;
}
.wwht-menu-bar { display: block; width: 22px; height: 2px; background: #334155; border-radius: 2px; transition: transform .2s, opacity .2s; }
.wwht-menu-toggle[aria-expanded="true"] .wwht-menu-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.wwht-menu-toggle[aria-expanded="true"] .wwht-menu-bar:nth-child(2) { opacity: 0; }
.wwht-menu-toggle[aria-expanded="true"] .wwht-menu-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
    .wwht-menu-toggle { display: flex; }
    .wwht-primary-nav {
        position: absolute; top: 100%; left: 0; right: 0;
        background: #fff; border-bottom: 1px solid var(--wwht-border);
        flex-direction: column; padding: 16px 22px;
        gap: 10px; align-items: stretch;
        transform: translateY(-12px); opacity: 0; pointer-events: none;
        transition: transform .2s, opacity .2s;
    }
    .wwht-primary-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .wwht-menu { flex-direction: column; align-items: stretch; gap: 0; }
    .wwht-menu li a { display: block; padding: 12px 14px; }
    .wwht-cta-btn { text-align: center; margin-top: 8px; }
}

/* ============================================================
 * Hero
 * ============================================================ */
.wwht-hero {
    background:
        radial-gradient(1200px 400px at 80% -10%, rgba(124, 58, 237, .15), transparent),
        radial-gradient(900px 320px at 10% 110%, rgba(79, 70, 229, .12), transparent),
        linear-gradient(180deg, #ffffff 0%, var(--wwht-bg) 100%);
    padding: 70px 0 60px;
    text-align: center;
    border-bottom: 1px solid var(--wwht-border);
}
.wwht-hero-inner { max-width: 880px; margin: 0 auto; }
.wwht-hero-tag {
    display: inline-block; font-size: 12px; letter-spacing: 3px; font-weight: 600;
    color: var(--wwht-primary); background: #eef2ff; padding: 6px 14px;
    border-radius: 999px; margin-bottom: 18px;
}
.wwht-hero-title {
    font-size: clamp(28px, 5vw, 46px);
    line-height: 1.15; margin-bottom: 14px;
    background: linear-gradient(135deg, #0f172a 0%, var(--wwht-primary) 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.wwht-hero-sub { color: var(--wwht-muted); font-size: 17px; margin-bottom: 28px; }
.wwht-hero-cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.wwht-hero-meta {
    display: flex; justify-content: center; gap: 28px; flex-wrap: wrap;
    color: var(--wwht-muted); font-size: 13.5px;
}

/* Buttons */
.wwht-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 24px; border-radius: 10px;
    font-size: 14.5px; font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
    text-decoration: none;
}
.wwht-btn-primary {
    background: linear-gradient(135deg, var(--wwht-primary), var(--wwht-accent));
    color: #fff; box-shadow: 0 6px 18px rgba(79, 70, 229, 0.3);
}
.wwht-btn-primary:hover { transform: translateY(-1px); color: #fff; box-shadow: 0 10px 24px rgba(79, 70, 229, 0.4); }
.wwht-btn-ghost {
    background: #fff; color: #0f172a; border-color: var(--wwht-border);
}
.wwht-btn-ghost:hover { border-color: var(--wwht-primary); color: var(--wwht-primary); }
.wwht-btn-lg { padding: 15px 32px; font-size: 16px; }

/* ============================================================
 * Sections
 * ============================================================ */
.wwht-features, .wwht-subjects, .wwht-cta-band, .wwht-front-content {
    padding: 70px 0;
}
.wwht-section-h {
    text-align: center; font-size: clamp(22px, 3vw, 30px);
    margin-bottom: 40px;
}

.wwht-feature-grid, .wwht-subject-grid {
    display: grid; gap: 22px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.wwht-feature {
    background: var(--wwht-card);
    border: 1px solid var(--wwht-border);
    border-radius: var(--wwht-radius);
    padding: 28px;
    box-shadow: var(--wwht-shadow);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.wwht-feature:hover { transform: translateY(-4px); box-shadow: var(--wwht-shadow-lg); border-color: #c7d2fe; }
.wwht-feature-num {
    display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 2px;
    color: var(--wwht-primary); background: #eef2ff;
    padding: 4px 10px; border-radius: 6px; margin-bottom: 12px;
}
.wwht-feature h3 { margin-bottom: 8px; }
.wwht-feature p  { color: var(--wwht-muted); margin: 0; font-size: 14.5px; }

.wwht-subjects { background: #ffffff; }
.wwht-subject {
    text-align: center; padding: 30px 22px;
    border-radius: var(--wwht-radius); border: 1px solid var(--wwht-border);
    transition: transform .2s, border-color .2s, background .2s;
}
.wwht-subject:hover { transform: translateY(-3px); border-color: var(--wwht-primary); background: linear-gradient(180deg, #fafaff 0%, #fff 100%); }
.wwht-subject-icon {
    width: 60px; height: 60px; line-height: 60px; margin: 0 auto 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--wwht-primary), var(--wwht-accent));
    color: #fff; font-size: 28px;
    box-shadow: 0 8px 18px rgba(79, 70, 229, 0.25);
}
.wwht-subject h3 { margin-bottom: 6px; }
.wwht-subject p  { color: var(--wwht-muted); font-size: 14px; margin: 0; }

.wwht-cta-band {
    background: linear-gradient(135deg, var(--wwht-primary), var(--wwht-accent));
    color: #fff; text-align: center;
}
.wwht-cta-band h2 { color: #fff; margin-bottom: 6px; font-size: clamp(22px, 3vw, 30px); }
.wwht-cta-band p  { opacity: .9; margin-bottom: 22px; }
.wwht-cta-band .wwht-btn-primary {
    background: #fff; color: var(--wwht-primary); box-shadow: 0 8px 22px rgba(0,0,0,0.15);
}
.wwht-cta-band .wwht-btn-primary:hover { color: var(--wwht-accent); }

/* ============================================================
 * Page / Single
 * ============================================================ */
.wwht-page-grid, .wwht-container > .wwht-page-article,
.wwht-container > .wwht-single,
.wwht-container > .wwht-archive-header,
.wwht-container > .wwht-post-list,
.wwht-container > .wwht-empty,
.wwht-container > .wwht-pagination,
.wwht-container > .wwht-post-nav,
.wwht-container > .wwht-comments {
    padding-top: 40px;
    padding-bottom: 40px;
}

.wwht-page-article, .wwht-single {
    background: var(--wwht-card);
    border: 1px solid var(--wwht-border);
    border-radius: var(--wwht-radius);
    padding: 40px;
    box-shadow: var(--wwht-shadow);
}
.wwht-page-title, .wwht-single-title { margin-bottom: 12px; }
.wwht-page-thumb img, .wwht-single-thumb img { border-radius: 10px; margin-bottom: 22px; }
.wwht-page-content, .wwht-single-content { font-size: 16px; line-height: 1.75; }
.wwht-page-content img, .wwht-single-content img { border-radius: 8px; margin: 1em 0; }
.wwht-page-content a, .wwht-single-content a { text-decoration: underline; }
.wwht-page-content blockquote, .wwht-single-content blockquote {
    border-left: 4px solid var(--wwht-primary);
    background: #eef2ff;
    padding: 16px 22px; margin: 1.4em 0;
    border-radius: 0 10px 10px 0;
    color: #1e293b;
}
.wwht-page-content code, .wwht-single-content code {
    background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-size: .9em;
}
.wwht-page-content pre, .wwht-single-content pre {
    background: #0f172a; color: #e2e8f0; padding: 16px 20px;
    border-radius: 10px; overflow-x: auto; font-size: 14px;
}
.wwht-page-content pre code { background: transparent; padding: 0; color: inherit; }

.wwht-post-meta {
    color: var(--wwht-muted); font-size: 13.5px; margin-bottom: 16px;
    display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
.wwht-dot { color: #cbd5e1; }

.wwht-post-list {
    display: grid; gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.wwht-post-card {
    background: var(--wwht-card);
    border: 1px solid var(--wwht-border);
    border-radius: var(--wwht-radius);
    overflow: hidden;
    box-shadow: var(--wwht-shadow);
    transition: transform .2s, box-shadow .2s;
    display: flex; flex-direction: column;
}
.wwht-post-card:hover { transform: translateY(-3px); box-shadow: var(--wwht-shadow-lg); }
.wwht-post-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.wwht-post-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.wwht-post-title { font-size: 1.15rem; margin-bottom: 8px; }
.wwht-post-title a { color: #0f172a; }
.wwht-post-title a:hover { color: var(--wwht-primary); }
.wwht-post-excerpt { color: #475569; flex: 1; font-size: 14.5px; }
.wwht-read-more { margin-top: 14px; font-weight: 600; font-size: 14px; align-self: flex-start; }

.wwht-archive-header {
    text-align: center; padding: 30px 0 10px;
}
.wwht-archive-desc { color: var(--wwht-muted); margin-top: 6px; }

.wwht-pagination, .wwht-post-nav {
    display: flex; justify-content: center; gap: 10px; margin-top: 30px; flex-wrap: wrap;
}
.wwht-pagination .page-numbers, .wwht-post-nav a {
    display: inline-block; padding: 8px 14px; border-radius: 8px;
    background: #fff; border: 1px solid var(--wwht-border);
    color: #334155; font-size: 14px; font-weight: 500;
}
.wwht-pagination .page-numbers.current, .wwht-pagination .page-numbers:hover, .wwht-post-nav a:hover {
    background: var(--wwht-primary); color: #fff; border-color: var(--wwht-primary);
}

.wwht-empty {
    text-align: center; padding: 80px 22px;
    background: var(--wwht-card); border-radius: var(--wwht-radius); border: 1px solid var(--wwht-border);
}
.wwht-404-num {
    font-size: 96px; font-weight: 800; line-height: 1;
    background: linear-gradient(135deg, var(--wwht-primary), var(--wwht-accent));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

/* ============================================================
 * Comments
 * ============================================================ */
.wwht-comments {
    background: var(--wwht-card);
    border: 1px solid var(--wwht-border);
    border-radius: var(--wwht-radius);
    padding: 32px;
    margin-top: 30px;
}
.wwht-comments-title { margin-bottom: 18px; }
.wwht-comment-list, .wwht-comment-list ol { list-style: none; padding-left: 0; }
.wwht-comment-list .comment, .wwht-comment-list .pingback {
    border-bottom: 1px solid var(--wwht-border); padding: 18px 0;
}
.wwht-comment-list .comment:last-child { border-bottom: 0; }
.wwht-comment-list .children { padding-left: 32px; margin-top: 16px; }
.wwht-comments .comment-form input[type="text"],
.wwht-comments .comment-form input[type="email"],
.wwht-comments .comment-form input[type="url"],
.wwht-comments .comment-form textarea {
    width: 100%; padding: 11px 13px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px;
}
.wwht-comments .comment-form .submit, .wwht-comments .comment-form input[type="submit"] {
    background: linear-gradient(135deg, var(--wwht-primary), var(--wwht-accent));
    color: #fff; border: 0; padding: 11px 22px; border-radius: 8px; font-weight: 600; cursor: pointer;
}

/* ============================================================
 * Search
 * ============================================================ */
.wwht-search-form { display: flex; gap: 8px; max-width: 480px; margin: 18px auto; }
.wwht-search-form input[type="search"] {
    flex: 1; padding: 11px 14px; border: 1px solid #d1d5db; border-radius: 9px; font-size: 14px;
}

/* ============================================================
 * Footer
 * ============================================================ */
.wwht-site-footer {
    background: #0f172a; color: #cbd5e1;
    padding: 50px 0 24px;
    margin-top: 80px;
}
.wwht-footer-widgets {
    display: grid; gap: 32px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-bottom: 36px;
    padding-bottom: 30px;
    border-bottom: 1px solid #1e293b;
}
.wwht-footer-col .widget-title { color: #fff; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px; }
.wwht-footer-col a { color: #cbd5e1; }
.wwht-footer-col a:hover { color: #fff; }
.wwht-footer-col ul { list-style: none; padding: 0; margin: 0; }
.wwht-footer-col li { margin-bottom: 8px; font-size: 14px; }

.wwht-footer-bottom {
    display: flex; flex-wrap: wrap; gap: 18px;
    justify-content: space-between; align-items: center;
    font-size: 13.5px;
}
.wwht-footer-brand strong { color: #fff; }
.wwht-footer-menu { list-style: none; padding: 0; margin: 0; display: flex; gap: 20px; flex-wrap: wrap; }
.wwht-footer-menu a { color: #cbd5e1; }
.wwht-footer-menu a:hover { color: #fff; }
.wwht-footer-copy { color: #94a3b8; }

/* ============================================================
 * Pages running plugin shortcodes
 *  - tighten container around the plugin's own UI
 *  - the test page should be distraction-free
 * ============================================================ */
.wwht-form-page .wwht-container,
.wwht-leaderboard-page .wwht-container { padding-top: 12px; padding-bottom: 30px; }

.wwht-test-page .wwht-site-header { box-shadow: none; }
.wwht-test-page main { padding-bottom: 40px; }

/* ============================================================
 * Responsive
 * ============================================================ */
@media (max-width: 600px) {
    body { font-size: 15.5px; }
    .wwht-page-article, .wwht-single { padding: 26px; }
    .wwht-comments { padding: 22px; }
    .wwht-features, .wwht-subjects, .wwht-cta-band { padding: 50px 0; }
    .wwht-hero { padding: 50px 0 40px; }
    h1 { font-size: 1.75rem; }
    .wwht-footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Plugin scoping safety: remove any duplicate wrap padding */
.wwht-form-page .ww-wrap,
.wwht-leaderboard-page .ww-wrap { margin-top: 12px; margin-bottom: 12px; }
