/* ===================================
   VAGAS PAGE STYLES - HAIKYUU!!
   =================================== */

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

:root {
    /* === CORES HAIKYUU === */
    --hq-orange: #ff6b35;
    --hq-dark-orange: #e84a1b;
    --hq-black: #1a1a1a;
    --hq-dark-gray: #2a2a2a;
    --hq-gray: #3a3a3a;
    --hq-light-gray: #f5f5f5;
    --hq-white: #ffffff;
    --hq-gradient-start: #ff6b35;
    --hq-gradient-end: #ff8c42;
    
    /* === TIER GRADIENTS === */
    --tier-spp: linear-gradient(135deg, #ffd700, #ff8c00);
    --tier-sp: linear-gradient(135deg, #ff6b35, #ff4500);
    --tier-s: linear-gradient(135deg, #ff1744, #f50057);
    --tier-ap: linear-gradient(135deg, #9c27b0, #7b1fa2);
    --tier-a: linear-gradient(135deg, #3f51b5, #283593);
    --tier-bp: linear-gradient(135deg, #00bcd4, #0097a7);
    
    /* === FONTES === */
    --font-display: 'Bangers', cursive;
    --font-body: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* === SOMBRAS === */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.3);
    
    /* === BORDER RADIUS === */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    
    /* === TRANSIÇÕES === */
    --transition-base: all 0.3s ease;
    --transition-fast: all 0.2s ease;
}

body {
    font-family: var(--font-body);
    background: var(--hq-light-gray);
    color: var(--hq-black);
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   HERO HEADER
   =================================== */
.hero-header {
    position: relative;
    background: linear-gradient(135deg, var(--hq-gradient-start) 0%, var(--hq-gradient-end) 100%);
    padding: 60px 20px 40px;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.05) 30%, rgba(255, 255, 255, 0.05) 70%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(0, 0, 0, 0.1) 30%, rgba(0, 0, 0, 0.1) 70%, transparent 70%);
    background-size: 60px 60px;
    opacity: 0.3;
    pointer-events: none;
}

.hero-logo {
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
}

.hero-logo img {
    width: 100%;
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--hq-white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 20px 0;
    text-shadow:
        3px 3px 0 var(--hq-black),
        -1px -1px 0 var(--hq-black),
        1px -1px 0 var(--hq-black),
        -1px 1px 0 var(--hq-black),
        1px 1px 0 var(--hq-black),
        4px 4px 8px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--hq-white);
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* ===================================
   BREADCRUMB
   =================================== */
.breadcrumb {
    background: white;
    padding: 15px 0;
    border-bottom: 2px solid var(--hq-orange);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.breadcrumb a {
    color: var(--hq-orange);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #e84a1b;
}

/* ===================================
   ADMIN LINK
   =================================== */
.admin-link-container {
    text-align: center;
    margin: 40px 0 30px;
}

.admin-btn {
    display: inline-block;
    background: linear-gradient(135deg, #4a4a4a 0%, #2d2d2d 100%);
    color: var(--hq-white);
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    border: 2px solid var(--hq-orange);
}

.admin-btn:hover {
    background: linear-gradient(135deg, var(--hq-orange) 0%, #ff8c42 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* ===================================
   STATS SUMMARY
   =================================== */
.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0 50px;
}

.stat-card {
    background: var(--hq-white);
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 2px solid #e0e0e0;
    transition: var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--hq-orange);
}

.stat-card.occupied {
    border-color: #e74c3c;
}

.stat-card.occupied .stat-number {
    color: #e74c3c;
}

.stat-card.available {
    border-color: #2ecc71;
}

.stat-card.available .stat-number {
    color: #2ecc71;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--hq-orange);
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 1rem;
    color: #4a4a4a;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* ===================================
   TEAMS GRID
   =================================== */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.team-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--hq-orange);
}

.team-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--hq-orange);
}

.team-header h2 {
    font-family: 'Bangers', cursive;
    font-size: 2.5rem;
    color: var(--hq-orange);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.team-count {
    font-size: 1.5rem;
    color: #1a1a1a;
}

.team-count .filled {
    color: #2ecc71;
    font-weight: 700;
}

.team-count .separator {
    margin: 0 8px;
    color: var(--hq-light-gray);
}

.team-count .total {
    color: #4a4a4a;
}

/* ===================================
   POSITIONS GRID
   =================================== */
.positions-grid {
    display: grid;
    gap: 20px;
}

.position-slot {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
    position: relative;
    overflow: hidden;
}

.position-slot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--hq-orange), #ff8c42);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.position-slot:hover::before {
    opacity: 1;
}

.position-slot:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.3);
    border-color: var(--hq-orange);
}

.position-slot.slot-filled {
    border-color: #2ecc71;
}

.position-slot.slot-filled::before {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
    opacity: 1;
}

.position-slot.slot-rotation {
    border-color: #3498db;
}

.position-slot.slot-rotation::before {
    background: linear-gradient(90deg, #3498db, #2980b9);
}

.position-slot.slot-rotation.slot-filled {
    border-color: #9b59b6;
}

.position-slot.slot-rotation.slot-filled::before {
    background: linear-gradient(90deg, #9b59b6, #8e44ad);
}

.position-name {
    font-family: 'Bangers', cursive;
    font-size: 1.3rem;
    color: var(--hq-orange);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.slot-rotation .position-name {
    color: #3498db;
}

.slot-status {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid #e74c3c;
}


/* ===================================
   FOOTER
   =================================== */
footer {
    background: white;
    padding: 30px 20px;
    text-align: center;
    border-top: 3px solid var(--hq-orange);
    margin-top: 60px;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}

footer p {
    color: #4a4a4a;
    font-size: 0.9rem;
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1200px) {
    .teams-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .team-header h2 {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .teams-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 2rem;
    }

    .hero-logo img {
        max-width: 250px;
    }

    .admin-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .team-header h2 {
        font-size: 1.8rem;
    }
}

/* ===================================
   VAGAS SECTION - ESTILO GUIA-PERSONAGENS
   =================================== */
.vagas-section {
    margin: 60px 0;
    position: relative;
}

.vagas-section::before {
    content: '';
    display: block;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--hq-orange), transparent);
    margin-bottom: 40px;
    border-radius: 2px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--hq-orange);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 35px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Position Groups */
.position-group {
    margin-bottom: 3rem;
}

.position-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--hq-orange);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.position-title i {
    font-size: 1.5rem;
}

/* Characters Grid (igual ao guia-personagens) */
.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 2rem;
}

/* Character Card (igual ao guia-personagens) */
.character-card {
    background: var(--hq-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
    position: relative;
}

.character-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* Character Image */
.character-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.character-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Character Header */
.character-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    padding: 2.25rem 1.75rem 1.75rem;
    position: relative;
}

.character-tier {
    position: absolute;
    top: 1rem;
    right: 0.75rem;
    z-index: 2;
}

.tier-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-weight: 900;
    font-size: 1rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tier-badge.spp { background: linear-gradient(135deg, #ffd700, #ff8c00); }
.tier-badge.sp { background: linear-gradient(135deg, #ff6b35, #ff4500); }
.tier-badge.s { background: linear-gradient(135deg, #ff1744, #f50057); }
.tier-badge.ap { background: linear-gradient(135deg, #9c27b0, #7b1fa2); }
.tier-badge.a { background: linear-gradient(135deg, #3f51b5, #283593); }
.tier-badge.bp { background: linear-gradient(135deg, #00bcd4, #0097a7); }

.character-name {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--hq-white);
    margin: 0 0 0.5rem;
    letter-spacing: 0.05em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.character-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.character-school {
    color: var(--hq-orange);
    font-weight: 600;
}

/* Character Body */
.character-body {
    padding: 1.5rem;
}

.player-assignment {
    background: rgba(46, 204, 113, 0.1);
    border-left: 4px solid #2ecc71;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.player-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.player-nick {
    font-family: var(--font-display);
    font-size: 2.4rem;
    color: #2ecc71;
    letter-spacing: 0.05em;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    font-weight: 400;
    line-height: 1.2;
}

.assignment-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.team-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.team-badge:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.team-badge.team-a {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.team-badge.team-a::before {
    content: '🔵';
    font-size: 1.1rem;
}

.team-badge.team-b {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.team-badge.team-b::before {
    content: '🟣';
    font-size: 1.1rem;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--hq-orange), #ff4500);
    color: white;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.role-badge:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.role-badge::before {
    content: '🔄';
    font-size: 1.1rem;
}

.character-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 1.3rem;
    color: #4a4a4a;
    margin-bottom: 10px;
}

/* Teams Distribution */
.teams-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.team-container {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--hq-orange);
}

.team-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--hq-orange);
    margin-bottom: 20px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--hq-orange);
}

.team-members {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.team-member {
    background: rgba(0, 0, 0, 0.05);
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #2ecc71;
}

.team-member.rotation {
    border-left-color: var(--hq-orange);
}

.member-char {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--hq-black);
    margin-bottom: 8px;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.position-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: linear-gradient(135deg, var(--hq-orange), #ff4500);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.member-player {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: #2ecc71;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.rotation-badge {
    display: inline-block;
    background: var(--hq-orange);
    color: white;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 6px;
}

@media (max-width: 768px) {
    .teams-grid {
        grid-template-columns: 1fr;
    }
    
    .position-cards {
        grid-template-columns: 1fr;
    }
}