/* ==========================================================================
   DEPARTMENT TEAM PAGES STYLE
   Custom themed designs for Leadership, Tech, and Content pages.
   ========================================================================== */

.dept-page-wrapper {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    padding-bottom: 100px;
    background-color: #050212;
    color: #ffffff;
}

/* Background mesh */
.dept-page-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.008) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.008) 1px, transparent 1px);
    background-size: 50px 50px;
}

.dept-orbs .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.15;
    mix-blend-mode: screen;
}

.orb-primary {
    width: 600px;
    height: 600px;
    top: -150px;
    left: -150px;
}

.orb-secondary {
    width: 500px;
    height: 500px;
    bottom: 50px;
    right: -100px;
}

/* Theme Colors */
/* 1. Leadership: Gold/Purple Accent */
.leadership-theme {
    --dept-theme-color: #fbbf24;
    --dept-gradient: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    --dept-shadow-color: rgba(251, 191, 36, 0.2);
}
.leadership-theme .orb-primary {
    background: radial-gradient(circle, #fbbf24 0%, transparent 80%);
}
.leadership-theme .orb-secondary {
    background: radial-gradient(circle, #8b5cf6 0%, transparent 80%);
}

/* 2. Tech: Cyber Neon Cyan Accent */
.tech-theme {
    --dept-theme-color: #06b6d4;
    --dept-gradient: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    --dept-shadow-color: rgba(6, 182, 212, 0.2);
}
.tech-theme .orb-primary {
    background: radial-gradient(circle, #06b6d4 0%, transparent 80%);
}
.tech-theme .orb-secondary {
    background: radial-gradient(circle, #3b82f6 0%, transparent 80%);
}

/* 3. Content: Creative Violet Accent */
.content-theme {
    --dept-theme-color: #ec4899;
    --dept-gradient: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    --dept-shadow-color: rgba(236, 72, 153, 0.2);
}
.content-theme .orb-primary {
    background: radial-gradient(circle, #ec4899 0%, transparent 80%);
}
.content-theme .orb-secondary {
    background: radial-gradient(circle, #a855f7 0%, transparent 80%);
}

/* Back Button */
.btn-back-hub {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-bottom: 30px;
}

.btn-back-hub:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--dept-theme-color);
    color: var(--dept-theme-color);
    transform: translateX(-4px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Hero Section */
.dept-hero {
    position: relative;
    z-index: 2;
    padding: 80px 0 40px;
}

.dept-hero-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 32px;
    padding: 50px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.dept-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.dept-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--dept-theme-color);
    margin: 0 auto 24px;
    box-shadow: 0 0 25px var(--dept-shadow-color);
    animation: iconFloat 4s infinite alternate ease-in-out;
}

@keyframes iconFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-8px); }
}

.dept-tag {
    font-size: 12px;
    font-weight: 800;
    color: var(--dept-theme-color);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.dept-hero-content h1 {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 800;
    margin: 12px 0 18px;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #ffffff 60%, var(--dept-theme-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dept-hero-content p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.dept-divider {
    width: 60px;
    height: 4px;
    background: var(--dept-gradient);
    margin: 30px auto 0;
    border-radius: var(--radius-full);
    box-shadow: 0 0 10px var(--dept-shadow-color);
}

/* Listings section */
.dept-listing {
    position: relative;
    z-index: 2;
    padding: 20px 0 60px;
}

.listing-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
}

/* Customize inner list card details */
.{{ dept_slug }}-theme .team-member:hover {
    border-color: var(--dept-theme-color) !important;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.45),
        0 0 35px var(--dept-shadow-color) !important;
}

.{{ dept_slug }}-theme .team-member:hover::before {
    background: var(--dept-gradient) !important;
}

.{{ dept_slug }}-theme .team-member-role {
    color: var(--dept-theme-color) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    background: rgba(255, 255, 255, 0.03) !important;
}

.{{ dept_slug }}-theme .team-member:hover .team-member-role {
    background: var(--dept-gradient) !important;
    color: #ffffff !important;
    border-color: transparent !important;
}

.{{ dept_slug }}-theme .team-member-hover-action {
    color: var(--dept-theme-color) !important;
}

.{{ dept_slug }}-theme .social-icon:hover {
    background: var(--dept-gradient) !important;
    border-color: transparent !important;
    box-shadow: 0 8px 18px var(--dept-shadow-color) !important;
}

/* Light Theme Support */
body.light-theme .dept-page-wrapper {
    background-color: #ffffff;
    color: #0f172a;
}

body.light-theme .grid-overlay {
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.008) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.008) 1px, transparent 1px);
}

body.light-theme .dept-hero-card {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

body.light-theme .btn-back-hub {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    color: #4b5563;
}

body.light-theme .btn-back-hub:hover {
    color: var(--dept-theme-color);
}

body.light-theme .dept-hero-content h1 {
    background: linear-gradient(135deg, #0f172a 60%, var(--dept-theme-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-theme .dept-icon-wrapper {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dept-hero-card {
        padding: 30px 20px;
    }
    
    .listing-controls {
        flex-direction: column;
        align-items: stretch;
    }
}
