@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Varela+Round&family=Nunito:wght@900&family=Jua&family=Chango&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #141414;
    --card-bg: #1e1e1e;
    --card-hover: #272727;
    --text: #e3e3e3;
    --text-secondary: #909090;
    --text-muted: #666;
    --text-faint: #666;
    --accent: #9b8bf5;
    --search-bg: #1e1e1e;
    --search-border: rgba(255,255,255,0.07);
    --search-border-focus: rgba(255,255,255,0.13);
    --search-shadow: 0 1px 2px rgba(0,0,0,0.3), 0 4px 18px rgba(0,0,0,0.4);
    --search-shadow-focus: 0 1px 4px rgba(0,0,0,0.4), 0 8px 30px rgba(0,0,0,0.5);
    --kbd-bg: #2a2a2a;
    --kbd-border: #333;
    --divider: #333;
    --footer-border: rgba(255,255,255,0.08);
    --pagination-border: #333;
    --pagination-hover-bg: #1e1e1e;
    --pagination-hover-border: #333;
    --pagination-hover-text: #aaa;
    --logo-shadow: 0px 2px 4px rgba(0,0,0,.5);
    --logo-shadow-hover: 0px 3px 8px rgba(0,0,0,.7);
    --logo-filter: grayscale(100%) opacity(0.25);
    --logo-filter-hover: grayscale(100%) opacity(0.5);
    --job-title-color: #c8c8c8;
    --job-location-color: var(--text-muted);
    --star-color: var(--text-muted);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

/* TOP CONTROLS */

#top-controls {
    position: fixed;
    top: 20px;
    right: 22px;
    z-index: 1000;
    display: flex;
    align-items: center;
}

#badge-switcher {
    display: flex;
    background: rgba(255,255,255,0.07);
    border-radius: 6px;
    padding: 3px;
    gap: 2px;
}

.badge-dot {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.badge-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 7px;
}

#icon-switcher {
    display: flex;
    background: rgba(255,255,255,0.07);
    border-radius: 6px;
    padding: 3px;
    gap: 2px;
    margin-right: 6px;
}

.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 4px;
    padding: 5px 8px;
    cursor: pointer;
    color: #666;
    transition: background 0.15s, color 0.15s;
}

.icon-btn:hover { color: #bbb; background: rgba(255,255,255,0.07); }
.icon-btn.active { background: #2a2a2a; color: #ddd; box-shadow: 0 1px 3px rgba(0,0,0,0.4); }

#font-switcher {
    display: flex;
    background: rgba(255,255,255,0.07);
    border-radius: 6px;
    padding: 3px;
    gap: 2px;
}

.font-btn {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: #666;
    background: none;
    border: none;
    border-radius: 4px;
    padding: 4px 7px;
    cursor: pointer;
    letter-spacing: 0.01em;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.font-btn:hover {
    color: #bbb;
    background: rgba(255,255,255,0.07);
}

.font-btn.active {
    background: #2a2a2a;
    color: #ddd;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* HERO SECTION WITH SMOOTH TRANSITION (NO BLUR) */

#hero {
    position: relative;
    height: 440px;
    background-color: var(--bg);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: background-color 0.2s;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('bgbg.jpg');
    background-size: cover;
    background-position: 35% 30%;
    -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 800' preserveAspectRatio='none'><defs><filter id='b' x='-20%25' y='-20%25' width='140%25' height='160%25'><feGaussianBlur stdDeviation='120'/></filter></defs><path d='M-250,-300 L1250,-300 L1000,340 C950,753 50,753 0,340 Z' fill='white' filter='url(%23b)'/></svg>");
    -webkit-mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 800' preserveAspectRatio='none'><defs><filter id='b' x='-20%25' y='-20%25' width='140%25' height='160%25'><feGaussianBlur stdDeviation='120'/></filter></defs><path d='M-250,-300 L1250,-300 L1000,340 C950,753 50,753 0,340 Z' fill='white' filter='url(%23b)'/></svg>");
    mask-size: 100% 100%;
    mask-repeat: no-repeat;
    z-index: 1;
}

.hero-fade {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 58% 68% at 50% 38%, transparent 0%, transparent 28%, rgba(20,20,20,0.58) 63%, rgba(20,20,20,0.93) 100%),
        linear-gradient(to right, rgba(20,20,20,0.3) 0%, transparent 18%, transparent 82%, rgba(20,20,20,0.3) 100%),
        linear-gradient(to bottom, transparent 38%, rgba(20,20,20,0.38) 58%, rgba(20,20,20,0.88) 80%, #141414 94%),
        radial-gradient(ellipse 50% 42% at 50% 100%, rgba(20,20,20,0.9) 0%, transparent 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 520px;
    text-align: center;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-top: -70px;
}

#logo {
    margin-bottom: 10px;
}

.logo-text {
    font-family: 'Varela Round', sans-serif;
    font-weight: 400;
    font-size: 90px;
    color: #e3e3e3;
    letter-spacing: -1px;
    line-height: 1;
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}


#search-container {
    width: 100%;
}

.search-box {
    background: var(--search-bg);
    border-radius: 20px;
    border: 1px solid var(--search-border);
    box-shadow: var(--search-shadow);
    display: flex;
    align-items: center;
    padding: 12px 20px 12px 24px;
    margin-bottom: 14px;
    transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.search-box:focus-within {
    border-color: var(--search-border-focus);
    box-shadow: var(--search-shadow-focus);
}

.search-icon {
    display: flex;
    align-items: center;
    margin-right: 16px;
    flex-shrink: 0;
    color: #999;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 19px;
    color: var(--text);
    padding: 10px 0;
    font-family: 'Inter', sans-serif;
    background: transparent;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-kbd {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: var(--text-muted);
    background: var(--kbd-bg);
    border: 1px solid var(--kbd-border);
    border-radius: 6px;
    padding: 3px 7px;
    flex-shrink: 0;
    letter-spacing: 0;
    line-height: 1.4;
    transition: opacity 0.2s;
}

.search-box:focus-within .search-kbd {
    opacity: 0;
}

.location-divider {
    width: 1px;
    height: 28px;
    background-color: rgba(0, 0, 0, 0.08);
    margin: 0 20px;
}

.location-select {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    font-size: 15px;
    opacity: 0.8;
    transition: opacity 0.15s;
}

.location-select:hover {
    opacity: 1;
}

.location-select span {
    margin-right: 10px;
}

.hero-subtext {
    color: var(--text-secondary);
    font-size: 14px;
    font-family: 'Varela Round', sans-serif;
}

/* MAIN CONTAINER */

#main-container {
    max-width: 1160px;
    margin: -145px auto 0;
    padding: 0 30px;
    position: relative;
    z-index: 2;
}

.content-layout {
    display: flex;
    gap: 40px;
    padding-top: 72px;
}

.jobs-column {
    flex: 3.5;
    position: relative;
}

.jobs-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: -30px;
    right: -10px;
    height: 90px;
    background: linear-gradient(to bottom, #141414 0%, transparent 100%);
    pointer-events: none;
    z-index: 10;
}

.sidebar {
    flex: 1;
    padding-top: 16px;
}

.stats-bar {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 400;
    margin-bottom: 16px;
    padding-left: 8px;
    position: relative;
    z-index: 11;
}

.stat-count {
    font-weight: 600;
    color: var(--text-secondary);
}

.search-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-left: 4px;
}

.feed-back {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
    transition: color 0.15s;
}

.feed-back:hover {
    color: var(--text);
}

/* JOB GRID */

.job-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.job-card {
    background: var(--card-bg);
    border: 1px solid rgba(0,0,0,.02);
    border-radius: 14px;
    padding: 12px 16px;
    position: relative;
    display: flex;
    align-items: center;
    transition: background-color 0.15s;
}

.job-card {
    border-color: rgba(255,255,255,.03);
}

.job-card:hover {
    background-color: var(--card-hover);
}

.job-logo-wrapper {
    position: absolute;
    top: 12px;
    left: -24px;
    width: 42px;
    height: 42px;
    background: transparent;
    padding: 0px;
    border-radius: 18px;
    box-shadow: var(--logo-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.job-logo-wrapper:hover {
    box-shadow: var(--logo-shadow-hover);
    transform: scale(1.06);
}

.job-logo {
    width: 78%;
    height: 78%;
    object-fit: contain;
    border-radius: 14px;
}

.job-info {
    flex: 1;
    margin-left: 20px; /* Reduced from 35px */
}

.job-card-header {
    display: block;
    margin-bottom: 4px;
}

.job-company {
    display: inline-block;
    font-family: 'Varela Round', sans-serif;
    font-size: 16px;
    font-weight: bold;
    color: var(--text-secondary);
    text-transform: capitalize;
}

.job-location {
    display: inline-block;
    color: var(--job-location-color);
    font-weight: 400;
    font-size: 12px;
    text-transform: uppercase;
    margin-left: 5px;
}

.job-location::before {
    content: "- ";
}

.job-title {
    font-size: 17px;
    font-weight: 400;
    color: var(--job-title-color);
    letter-spacing: -0.2px;
}

.job-new {
    display: block;
    font-size: 11px;
    color: #6fcf7a;
    font-weight: 500;
    margin-top: 1px;
    letter-spacing: 0.01em;
}

.job-star {
    margin-left: 15px;
    margin-right: 6px;
    cursor: pointer;
    opacity: 0.45;
    transition: opacity 0.2s, transform 0.2s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    align-self: center;
}

.job-star svg {
    transition: fill 0.2s, stroke 0.2s;
}

.job-star:hover {
    opacity: 0.6;
    transform: scale(1.12);
}

.job-star.starred {
    opacity: 1;
}

.job-star.starred .star-icon {
    fill: #f5a623;
    stroke: #f5a623;
}

.job-star.starred .sparkle-icon {
    fill: #f5a623;
}

/* Icon switcher visibility — default: star */
.sparkle-icon { display: none; }
body.icon-sparkle .sparkle-icon { display: block; }
body.icon-sparkle .star-icon { display: none; }

.job-star.pop {
    animation: starPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes starPop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.4); }
    100% { transform: scale(1); }
}

/* LIVE BAR */

.live-bar {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%) translateY(16px);
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: rgba(28, 28, 28, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: none;
    border-radius: 32px;
    padding: 8px 18px 8px 14px;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.45s cubic-bezier(0.34, 1.4, 0.64, 1);
    white-space: nowrap;
}

.live-bar.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: all;
}

.live-bar:hover {
    background: rgba(36, 36, 36, 0.95);
    border-color: rgba(255,255,255,0.13);
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.35; transform: scale(0.75); }
}

@keyframes freshHighlight {
    0%   { background: rgba(111, 207, 122, 0.1); }
    100% { background: var(--card-bg); }
}

.job-card-fresh {
    animation: freshHighlight 2s ease forwards;
}

.live-bar-logos {
    display: flex;
    gap: 0;
}

.live-bar-logo {
    width: 42px;
    height: 42px;
    border-radius: 18px;
    background: #2a2a2a;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: -16px;
}

.live-bar-logo:last-child {
    margin-right: 0;
}

.live-bar-logo img {
    width: 78%;
    height: 78%;
    object-fit: contain;
    border-radius: 14px;
}

.live-bar-text {
    font-size: 12.5px;
    font-weight: 600;
    color: #c0c0c0;
    margin-left: 16px;
    letter-spacing: 0.01em;
}

/* SIDEBAR */

.stared-box {
    padding: 0 0 20px 0;
    margin-bottom: 20px;
    min-height: 56px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.starred-header {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-faint);
    margin-bottom: 12px;
}

.starred-empty {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--text-muted);
    font-size: 12.5px;
    padding: 2px 0;
    opacity: 0.6;
}

.starred-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.starred-company {
    position: relative;
    cursor: pointer;
}

.starred-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--card-bg);
    box-shadow: var(--logo-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    position: relative;
    transition: transform 0.15s, box-shadow 0.15s;
}

.starred-icon-wrap img {
    width: 78%;
    height: 78%;
    object-fit: contain;
    border-radius: 8px;
}

.starred-company:hover .starred-icon-wrap {
    transform: scale(1.08);
    box-shadow: var(--logo-shadow-hover);
}

.starred-company.active .starred-icon-wrap {
    box-shadow: 0 0 0 2px var(--accent);
}

.starred-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ff3b30;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    min-width: 17px;
    height: 17px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--bg);
    letter-spacing: 0;
    line-height: 1;
}

.starred-jobs {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.starred-job-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.starred-job-link {
    font-size: 12px;
    color: var(--text-secondary);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s;
    line-height: 1.8;
}

.starred-job-link:hover {
    color: var(--text);
}

.starred-job-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.15s;
}

.starred-job-remove:hover {
    color: var(--text);
}

.sidebar-text {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 22px;
}

.sidebar-text strong {
    color: var(--text);
}

.sidebar-divider {
    border: none;
    border-top: 1.5px dotted var(--divider);
    margin: 22px 0;
}

.sidebar-logos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 12px;
    padding: 8px 0;
}

.sidebar-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-logo-item img {
    max-width: 90px;
    max-height: 36px;
    object-fit: contain;
    filter: var(--logo-filter);
    transition: filter 0.2s;
}

.sidebar-logo-item img:hover {
    filter: var(--logo-filter-hover);
}

/* PAGINATION */

.pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.pagination a {
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid var(--pagination-border);
    color: var(--text-muted);
    font-weight: 500;
    font-size: 14px;
    transition: color 0.15s, background-color 0.15s, border-color 0.15s;
}

.pagination a:hover {
    color: var(--pagination-hover-text);
    border-color: var(--pagination-hover-border);
    background-color: var(--pagination-hover-bg);
}

.pagination a.active {
    background-color: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* FOOTER */

.footer-rich {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1160px;
    margin: 48px auto 32px;
    padding: 20px 30px 0;
    border-top: 1px solid var(--footer-border);
}

.footer-brand-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
}

.footer-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.footer-meta span {
    margin: 0 8px;
    opacity: 0.4;
}

.footer-credit {
    font-size: 12px;
    color: var(--text-muted);
}

.footer-credit a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s;
}

.footer-credit a:hover {
    color: var(--text);
}

/* MOBILE RESPONSIVE */

@media (max-width: 1100px) {
    .content-layout {
        flex-direction: column;
    }
    .job-grid {
        grid-template-columns: 1fr;
    }
    #main-container {
        padding: 0 30px;
    }
}
