@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: hsl(20, 100%, 50%);
    --azul: #0160b9;
    --primary-rgb: 255, 85, 0;
    --bg-deep: #050507;
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --border-subtle: rgba(255, 255, 255, 0.1);
    --glass: blur(12px);
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    outline: none;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    line-height: 1.5;
    background-image: radial-gradient(circle at 15% 50%, rgba(255, 85, 0, 0.08), transparent 25%);
    background-attachment: fixed;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #444;
}

/* Utilities */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: 99px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: 0.3s ease;
    border: none;
    cursor: pointer;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--azul);
    color: white;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.6);
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
}

/* Modal Base */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #111;
    width: 90%;
    max-width: 450px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    padding: 2rem;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.form-group {
    margin-bottom: 1rem;
}

.form-input {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 0.8rem;
    border-radius: var(--radius-sm);
    color: white;
    font-size: 0.9rem;
}

.form-input:focus {
    border-color: var(--primary);
}

.form-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

/* --- Portal Redesign 2026 --- */
.container-wide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.glow-sphere {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.15) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
    filter: blur(60px);
}

/* Portal Nav */
.portal-nav {
    position: fixed;
    top: 1.5rem;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portal-nav.scrolled {
    top: 0;
}

.portal-nav.scrolled .nav-inner {
    border-radius: 0;
    background: rgba(5, 5, 7, 0.9);
    border-left: none;
    border-right: none;
    border-top: none;
    padding: 1rem 2rem;
}

.nav-inner {
    background: rgba(15, 15, 20, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 99px;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: 0.4s;
}

.portal-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.logo-box {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
}

.portal-logo small {
    display: block;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    color: #0160b9;
    margin-top: -2px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-item-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: #888;
    transition: 0.3s;
}

.nav-item-link:hover {
    color: white;
}

/* Portal Hero */
.portal-hero {
    padding: 10rem 0 6rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.badge-exclusive {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--azul);
    color: #ffffff;
    border: 1px solid rgb(var(--primary-rgb), 0.2);
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.portal-hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.portal-hero h1 span {
    background: linear-gradient(135deg, var(--azul) 0%, #0084ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.portal-hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

.h-stat {
    display: flex;
    flex-direction: column;
}

.h-stat strong {
    font-size: 1.8rem;
    font-family: 'Space Grotesk', sans-serif;
    color: white;
}

.h-stat span {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.h-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

/* Job Grid */
.board-header {
    margin-bottom: 2.5rem;
}

.board-filter-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.job-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.portal-job-card {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 1.75rem;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.portal-job-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(var(--primary-rgb), 0.3);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(var(--primary-rgb), 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: 0.4s;
}

.portal-job-card:hover .card-glow {
    opacity: 1;
}

.card-content {
    position: relative;
    z-index: 1;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.job-category {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 0.1em;
}

.job-type-badge {
    font-size: 0.65rem;
    padding: 0.3rem 0.6rem;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    color: #ccc;
}

.job-card-title {
    font-size: 1.25rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.job-card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.job-card-meta span {
    font-size: 0.85rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.job-card-meta i {
    width: 14px;
    opacity: 0.6;
}

.card-footer {
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.25rem;
}

.btn-apply-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-apply-text i {
    transition: 0.3s;
}

.portal-job-card:hover .btn-apply-text i {
    transform: translateX(5px);
    color: var(--primary);
}

/* Premium Talent Banner */
.premium-talent-banner {
    margin-top: 5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(var(--primary-rgb), 0.05));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 32px;
    padding: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.banner-content {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.primary-icon {
    font-size: 2.5rem;
    color: var(--primary);
    filter: drop-shadow(0 0 10px rgba(var(--primary-rgb), 0.5));
}

.banner-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.banner-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 400px;
}

.empty-board {
    text-align: center;
    padding: 6rem 2rem;
    background: rgba(255, 255, 255, 0.01);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 32px;
}

.icon-circle {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #444;
    margin: 0 auto 1.5rem;
}

/* Portal Footer */
.portal-footer {
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0.6;
}

.f-brand {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.f-links {
    display: flex;
    gap: 2rem;
    font-size: 0.8rem;
}

/* Animations */
.animate-reveal {
    opacity: 0;
    transform: translateY(30px);
    animation: reveal 0.8s forwards cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animations */
.animate-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-in {
    opacity: 0;
    transition: opacity 1s ease;
}

.animate-fade-in.visible {
    opacity: 1;
}

@media (max-width: 768px) {
    .portal-nav {
        top: 1rem;
    }

    .hero-stats {
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .h-divider {
        display: none;
    }

    .premium-talent-banner {
        flex-direction: column;
        padding: 2rem;
        text-align: center;
    }

    .banner-content {
        flex-direction: column;
    }

    .footer-inner {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

/* --- Admin Panel Specific Styles --- */
.admin-body {
    background: #0f0f12;
    /* Slightly darker for admin */
}

/* Admin Job Card */
.admin-job-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s ease;
}

.admin-job-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.admin-job-card.inactive {
    opacity: 0.6;
    border-color: rgba(255, 0, 0, 0.1);
}

.job-header h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.job-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.job-meta i {
    margin-right: 0.4rem;
    color: var(--primary);
}

/* Admin Actions */
.job-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.btn-icon:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.btn-delete:hover {
    color: #ef4444;
    /* Red for delete */
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.1);
}

.btn-active {
    color: #22c55e;
    /* Green for active */
    border-color: rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.1);
}

.btn-inactive {
    color: #6b7280;
}

/* Stats Dashboard */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Tabs */
.admin-tabs {
    display: flex;
    gap: 2rem;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    cursor: pointer;
    padding: 0.5rem 0;
    position: relative;
    transition: 0.3s;
}

.tab-btn.active {
    color: white;
    font-weight: 500;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -0.6rem;
    /* Adjust to align with border-bottom */
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    box-shadow: 0 -2px 10px var(--primary);
}