/* ==========================================
   Work Network Page Specific Styles
   Template CSS for community/network work pages
   ========================================== */

/* Network Hero */
.network-hero {
    position: relative;
    padding: 140px 0 80px;
    overflow: hidden;
}

.network-hero-background {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Hero Background Image */
.hero-bg-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    filter: blur(2px);
}

/* Different images for desktop and mobile */
.hero-bg-image .bg-desktop {
    display: block;
}

.hero-bg-image .bg-mobile {
    display: none;
}

/* Hero overlay for better text readability */
.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 11, 0.6) 0%,
        rgba(10, 10, 11, 0.75) 40%,
        rgba(10, 10, 11, 0.9) 100%
    );
    z-index: 1;
}

/* Ensure content is above overlay */
.network-hero .container {
    position: relative;
    z-index: 2;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 32px;
    transition: var(--transition-fast);
}

.back-link:hover {
    color: var(--accent-primary);
    transform: translateX(-4px);
}

.network-hero-content {
    max-width: 800px;
}

.network-type {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.network-hero .network-name {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 24px;
}

.network-role {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.network-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 32px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.meta-item i {
    color: var(--accent-primary);
}

/* Platform badge colors */
.meta-item.twitch i {
    color: #9146ff;
}

.meta-item.discord i {
    color: #5865f2;
}

.meta-item.youtube i {
    color: #ff0000;
}

.meta-item.twitter i {
    color: #1da1f2;
}

.network-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Platform-specific button colors */
.btn-twitch {
    background: #9146ff;
    color: #fff;
}

.btn-twitch:hover {
    background: #7c3aed;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(145, 70, 255, 0.4);
}

.btn-discord {
    background: #5865f2;
    color: #fff;
}

.btn-discord:hover {
    background: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.4);
}

.btn-youtube {
    background: #ff0000;
    color: #fff;
}

.btn-youtube:hover {
    background: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
}

/* Section Styles */
.network-section {
    padding: 80px 0;
}

.network-section:nth-child(even) {
    background: var(--bg-secondary);
}

.section-title-alt {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 20px;
}

.section-description {
    text-align: center;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 48px;
    font-size: 1.05rem;
}

/* ==========================================
   About Project/Community Section
   ========================================== */
.about-section {
    background: var(--bg-primary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
    transition: var(--transition-normal);
}

.about-card:hover {
    border-color: var(--accent-primary);
}

.about-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 14px;
    font-size: 1.5rem;
    color: #3b82f6;
    grid-row: 1;
    grid-column: 1;
    align-self: start;
}

.about-icon.accent {
    background: rgba(201, 162, 39, 0.1);
    color: var(--accent-primary);
}

.about-icon.twitch {
    background: rgba(145, 70, 255, 0.1);
    color: #9146ff;
}

.about-icon.discord {
    background: rgba(88, 101, 242, 0.1);
    color: #5865f2;
}

.about-icon.youtube {
    background: rgba(255, 0, 0, 0.1);
    color: #ff0000;
}

.about-icon.green {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.about-icon.purple {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
}

.about-icon.orange {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
}

.about-icon.pink {
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
}

.about-content {
    grid-row: 1;
    grid-column: 2;
}

.about-content h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 16px;
    margin-top: 0;
}

.about-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* Stats in about card */
.about-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.about-stat {
    text-align: center;
}

.about-stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    display: block;
}

.about-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================
   Roles/Work Section
   ========================================== */
.roles-section {
    background: var(--bg-secondary);
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.role-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    transition: var(--transition-normal);
}

.role-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
}

.role-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.role-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 162, 39, 0.1);
    border-radius: 14px;
    font-size: 1.4rem;
    color: var(--accent-primary);
}

.role-icon.twitch {
    background: rgba(145, 70, 255, 0.1);
    color: #9146ff;
}

.role-icon.discord {
    background: rgba(88, 101, 242, 0.1);
    color: #5865f2;
}

.role-icon.moderation {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.role-icon.community {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.role-icon.content {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.role-icon.communication {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
}

.role-info h4 {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.role-platform {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.role-platform i {
    font-size: 0.9rem;
}

.role-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.role-tasks {
    list-style: none;
    padding: 0;
    margin: 0;
}

.role-tasks li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.role-tasks li:last-child {
    margin-bottom: 0;
}

.role-tasks li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

/* Role duration badge */
.role-duration {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 16px;
}

.role-duration i {
    color: var(--accent-primary);
}

/* ==========================================
   Skills Section
   ========================================== */
.skills-section {
    background: var(--bg-primary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px;
    text-align: center;
    transition: var(--transition-normal);
}

.skill-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
}

.skill-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 162, 39, 0.1);
    border-radius: 14px;
    font-size: 1.5rem;
    color: var(--accent-primary);
}

.skill-card h4 {
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.skill-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================
   Timeline Section (for career progression)
   ========================================== */
.timeline-section {
    background: var(--bg-secondary);
}

.progression-timeline {
    position: relative;
    padding-left: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.progression-timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--border-color);
}

.progression-item {
    position: relative;
    padding-bottom: 32px;
}

.progression-item:last-child {
    padding-bottom: 0;
}

.progression-marker {
    position: absolute;
    left: -32px;
    top: 6px;
    width: 14px;
    height: 14px;
    background: var(--accent-primary);
    border-radius: 50%;
    border: 3px solid var(--bg-secondary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.progression-marker.current {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.3);
}

.progression-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px 24px;
    transition: var(--transition-normal);
}

.progression-content:hover {
    border-color: var(--accent-primary);
    transform: translateX(8px);
}

.progression-date {
    font-size: 0.85rem;
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: 4px;
}

.progression-title {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.progression-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================
   Navigation Network
   ========================================== */
.nav-network-section {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.nav-network {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: center;
}

.nav-network-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: var(--transition-normal);
}

.nav-network-item:hover {
    border-color: var(--accent-primary);
}

.nav-network-item.prev {
    text-align: left;
}

.nav-network-item.next {
    text-align: right;
}

.nav-network-item.all {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

.nav-network-item.all:hover {
    color: var(--accent-primary);
}

.nav-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.nav-label i {
    color: var(--accent-primary);
}

.nav-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 1024px) {
    .roles-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .network-hero {
        padding: 120px 0 60px;
    }
    
    /* Switch to mobile background image */
    .hero-bg-image .bg-desktop {
        display: none;
    }
    
    .hero-bg-image .bg-mobile {
        display: block;
    }
    
    .about-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-icon {
        grid-row: auto;
        grid-column: auto;
        margin: 0 auto;
    }
    
    .about-content {
        grid-row: auto;
        grid-column: auto;
    }
    
    .about-stats {
        justify-content: center;
    }
    
    .role-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .role-description {
        text-align: center;
    }
    
    .role-tasks li {
        text-align: left;
    }
    
    .role-duration {
        display: flex;
        justify-content: center;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-network {
        grid-template-columns: 1fr;
    }
    
    .nav-network-item.prev,
    .nav-network-item.next {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .network-links {
        flex-direction: column;
    }
    
    .network-meta {
        flex-direction: column;
        gap: 12px;
    }
}
