/* Prison Landing Page Styles */
* {
    box-sizing: border-box;
}

body {
    background: #0a0a0a;
    color: #e5e5e5;
    overflow-x: hidden;
}

/* Prison Hero Section */
.prison-hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    overflow: hidden;
}

.prison-bars-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: repeating-linear-gradient(
        90deg,
        transparent 0px,
        transparent 60px,
        rgba(191, 167, 122, 0.3) 60px,
        rgba(191, 167, 122, 0.3) 68px
    );
    z-index: 1;
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.hero-icon {
    font-size: 4rem;
    color: #bfa77a;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(191, 167, 122, 0.5));
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    color: #bfa77a;
    text-shadow: 
        2px 2px 4px rgba(0,0,0,0.8),
        0 0 20px rgba(191, 167, 122, 0.3);
    margin: 0 0 20px 0;
    letter-spacing: 3px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #cccccc;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.stat-counter {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #bfa77a;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 900;
    color: #bfa77a;
    text-shadow: 0 0 10px rgba(191, 167, 122, 0.5);
}

.stat-label {
    font-size: 1rem;
    color: #cccccc;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Prison Timeline */
.prison-timeline {
    position: relative;
    min-height: 100vh;
    padding: 50px 0;
    /* Background removed - transparent */
}

.timeline-path {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #bfa77a 0%, #8a7458 50%, #bfa77a 100%);
    box-shadow: 0 0 20px rgba(191, 167, 122, 0.3);
}

.path-svg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.prisoners-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 2;
}

/* Prison Cards Container - No background, transparent */
#prison-cards-container {
    /* No background styles - transparent container */
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #d4af37, rgba(212, 175, 55, 0.3));
    transform: translateX(-50%);
    z-index: 1;
}

/* NOVO LAYOUT LIMPO - Cards de Prisão */
.prisoner-card {
    position: relative;
    margin-bottom: 60px;
    width: 45%;
    opacity: 0;
    animation: prisonerFadeIn 0.8s ease-out forwards;
    display: flex;
    flex-direction: column;
}

.prisoner-card.left {
    margin-right: auto;
    margin-left: 0;
    align-items: flex-start;
}

.prisoner-card.right {
    margin-left: auto;
    margin-right: 0;
    align-items: flex-end;
}

@keyframes prisonerFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Container Principal do Card */
.prisoner-content {
    background: linear-gradient(145deg, rgba(20, 8, 8, 0.95), rgba(40, 20, 20, 0.95));
    border: 2px solid #d4af37;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    width: 100%;
    height: 190px;
    display: grid;
    grid-template-rows: auto 1fr auto;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
    margin-top: 50px;
}

/* Avatar Card - Posicionado sobre o card principal */
.prisoner-avatar-card {
    position: absolute;
    top: -70px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
    border: 2px solid rgba(212, 175, 55, 0.4);
    border-radius: 10px;
    padding: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 180px;
    z-index: 10;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.prisoner-avatar-card:hover {
    border-color: #d4af37;
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.25), rgba(212, 175, 55, 0.1));
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.prisoner-avatar-card .prisoner-image {
    width: 150px;
    height: 80px;
    border-radius: 6px;
    border: 2px solid #d4af37;
    background: rgba(0, 0, 0, 0.8);
    object-fit: cover;
}

.prisoner-avatar-card .prisoner-fallback {
    width: 150px;
    height: 80px;
    border-radius: 6px;
    border: 2px solid #d4af37;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4af37;
    font-size: 20px;
}

.prisoner-avatar-card .prisoner-avatar-name {
    margin-top: 8px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 176px;
}

.prisoner-avatar-card .prisoner-avatar-name .prisoner-link {
    color: #d4af37;
    text-decoration: none;
    transition: color 0.3s ease;
}

.prisoner-avatar-card:hover .prisoner-avatar-name .prisoner-link {
    color: #f4cf5a;
    text-shadow: 0 0 5px rgba(244, 207, 90, 0.5);
}



/* Detalhes do Crime - Área principal flexível */
.prisoner-details {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.crime-label {
    display: flex;
    align-items: center;
    padding: 15px;
    background: linear-gradient(90deg, rgba(139, 0, 0, 0.3), rgba(220, 20, 60, 0.2));
    border-left: 4px solid #dc143c;
    border-radius: 5px;
    flex: 1;
    margin-bottom: 10px;
}

.crime-icon {
    margin-right: 8px;
    font-size: 1.1rem;
    color: #dc143c;
}

.crime-text {
    color: #e5d4a1;
    font-weight: 500;
    flex: 1;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

/* Informações da Sentença e Data - Mesma linha */
.sentence-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.sentence-badge {
    background: linear-gradient(45deg, #d4af37, #f4cf5a);
    color: #000;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.prison-date {
    display: flex;
    align-items: center;
    color: #a0a0a0;
    font-size: 0.9rem;
}

.date-icon {
    margin-right: 8px;
    color: #d4af37;
}

/* Timeline Connector */
.timeline-connector {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.prisoner-card.left .timeline-connector {
    right: -25px;
}

.prisoner-card.right .timeline-connector {
    left: -25px;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(45deg, #d4af37, #f4cf5a);
    border: 3px solid rgba(20, 8, 8, 0.95);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

/* Loading Section */
.loading-section {
    text-align: center;
    padding: 50px 0;
}

.loading-animation {
    display: inline-block;
}

.prison-door {
    width: 60px;
    height: 80px;
    background: linear-gradient(145deg, #333, #222);
    border: 2px solid #bfa77a;
    border-radius: 5px;
    position: relative;
    margin: 0 auto 20px;
    animation: doorShake 1s ease-in-out infinite;
}

.door-bars {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 60px;
}

.door-bars .bar {
    position: absolute;
    width: 3px;
    height: 100%;
    background: #bfa77a;
    animation: barGlow 1.5s ease-in-out infinite alternate;
}

.door-bars .bar:nth-child(1) { left: 5px; animation-delay: 0s; }
.door-bars .bar:nth-child(2) { left: 15px; animation-delay: 0.3s; }
.door-bars .bar:nth-child(3) { left: 25px; animation-delay: 0.6s; }

@keyframes doorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

@keyframes barGlow {
    0% { opacity: 0.5; box-shadow: 0 0 5px rgba(191, 167, 122, 0.3); }
    100% { opacity: 1; box-shadow: 0 0 15px rgba(191, 167, 122, 0.6); }
}

/* End Section */
.end-section {
    text-align: center;
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(191, 167, 122, 0.1), transparent);
    border-radius: 20px;
    margin: 50px 0;
}

.end-content {
    max-width: 400px;
    margin: 0 auto;
}

.end-icon {
    font-size: 3rem;
    color: #bfa77a;
    margin-bottom: 20px;
}

.end-content h3 {
    color: #bfa77a;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.end-content p {
    color: #cccccc;
    font-size: 1rem;
}

/* Empty State */
.empty-prison {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 50px 0;
}

.empty-cell {
    position: relative;
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(145deg, rgba(40, 40, 40, 0.9), rgba(20, 20, 20, 0.9));
    border: 3px solid #bfa77a;
    border-radius: 15px;
    max-width: 500px;
}

.cell-bars {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: repeating-linear-gradient(
        90deg,
        transparent 0px,
        transparent 40px,
        rgba(191, 167, 122, 0.3) 40px,
        rgba(191, 167, 122, 0.3) 46px
    );
    border-radius: 12px;
}

.empty-content {
    position: relative;
    z-index: 1;
}

.empty-content i {
    font-size: 4rem;
    color: #bfa77a;
    margin-bottom: 20px;
}

.empty-content h3 {
    color: #bfa77a;
    font-size: 2rem;
    margin-bottom: 15px;
}

.empty-content p {
    color: #cccccc;
    font-size: 1.1rem;
}

/* Prison Information Section */
.prison-info-section {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    padding: 80px 0;
    border-top: 1px solid rgba(191, 167, 122, 0.3);
}

.info-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.info-header {
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.info-header i {
    font-size: 2rem;
    color: #bfa77a;
}

.info-header h3 {
    color: #bfa77a;
    font-size: 2rem;
    margin: 0;
    font-weight: 700;
}

.info-content {
    text-align: center;
}

.info-content p {
    color: #cccccc;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 25px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(191, 167, 122, 0.3);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: #bfa77a;
}

.info-icon {
    font-size: 2rem;
    color: #bfa77a;
    min-width: 50px;
}

.info-text {
    flex: 1;
}

.info-text strong {
    display: block;
    color: #bfa77a;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.info-text span {
    color: #cccccc;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .prisoner-card:nth-child(odd),
    .prisoner-card:nth-child(even) {
        margin-left: 0;
        margin-right: 0;
    }
    
    .timeline-path {
        left: 20px;
        transform: none;
    }
    
    .prisoners-container {
        padding: 0 60px 0 40px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .prisoner-content {
        padding: 20px;
    }
    
    .prisoners-container {
        padding: 0 20px;
    }
}

/* Background map only on main element */
main {
    position: relative;
    min-height: 100vh;
}

main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/static/img/prision-bg-3.png');
    background-size: 190% 100%;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.4);
    z-index: -1;
}

/* Prison Main Container */
.prison-container {
    min-height: 100vh;
    padding: 20px;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

/* Prison Timeline */
.prison-timeline {
    position: relative;
    padding: 40px 0;
}








/* Loading Animation */
#loading-animation {
    text-align: center;
    padding: 40px;
    color: #d4af37;
}

.prison-door {
    position: relative;
    width: 60px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 8px;
    border: 2px solid #d4af37;
}

.door-bars {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.door-bars .bar {
    width: 3px;
    height: 50px;
    background: #d4af37;
    border-radius: 2px;
    animation: doorShake 1.5s infinite ease-in-out;
}

.door-bars .bar:nth-child(2) { animation-delay: 0.2s; }
.door-bars .bar:nth-child(3) { animation-delay: 0.4s; }
.door-bars .bar:nth-child(4) { animation-delay: 0.6s; }

@keyframes doorShake {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1) rotateZ(1deg); }
}

.door-lock {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
}

.loading-text {
    margin: 0;
    font-size: 1.1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* No More Records */
#no-more-records {
    text-align: center;
    padding: 40px;
    color: #d4af37;
}

.end-message {
    background: linear-gradient(145deg, rgba(20, 8, 8, 0.95), rgba(40, 20, 20, 0.95));
    border: 2px solid #d4af37;
    border-radius: 15px;
    padding: 30px;
    max-width: 400px;
    margin: 0 auto;
}

.end-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
}

/* About the Prison System */
.prison-about {
    margin-bottom: 40px;
    padding: 40px 0;
}

.about-content {
    background: linear-gradient(145deg, rgba(20, 8, 8, 0.95), rgba(40, 20, 20, 0.95));
    border: 2px solid #d4af37;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.about-title {
    color: #d4af37;
    font-size: 2.2rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.about-description {
    color: #e5d4a1;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Prison Statistics */
.prison-stats {
    margin: 30px 0;
}

.stat-card {
    background: 
        linear-gradient(45deg, rgba(212, 175, 55, 0.1), rgba(244, 207, 90, 0.05)),
        url('/static/img/hunter-prision-2.gif');
    background-size: auto, 120px;
    background-position: center, right bottom;
    background-repeat: no-repeat, no-repeat;
    border: 2px solid #d4af37;
    border-radius: 15px;
    padding: 25px;
    display: inline-block;
    min-width: 200px;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.2);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(20, 8, 8, 0.3) 0%, 
        transparent 60%, 
        rgba(20, 8, 8, 0.4) 100%);
    pointer-events: none;
    border-radius: 13px;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #d4af37;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    animation: countUp 2s ease-out;
    position: relative;
    z-index: 1;
}

@keyframes countUp {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

.stat-label {
    color: #d4af37;
    font-size: 1.1rem;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.stat-card:hover .stat-label {
    color: #f4cf5a;
    text-shadow: 0 0 5px rgba(244, 207, 90, 0.5);
}

/* Justice Quote */
.justice-quote {
    margin-top: 30px;
    padding: 20px;
    background: rgba(212, 175, 55, 0.1);
    border-left: 4px solid #d4af37;
    border-radius: 8px;
    font-style: italic;
}

.quote-icon {
    font-size: 1.5rem;
    margin-right: 10px;
    color: #d4af37;
}

.justice-quote p {
    color: #e5d4a1;
    font-size: 1.1rem;
    margin: 0;
    display: inline;
}

/* Responsive Design */
@media (max-width: 770px) {
    .prison-container {
        padding: 10px;
        overflow-x: hidden;
    }
    
    .prison-timeline {
        padding: 20px 0;
        position: relative;
        width: 100%;
    }
    
    /* RESET COMPLETO - Remover todos os posicionamentos desktop */
    .prisoner-card,
    .prisoner-card.left,
    .prisoner-card.right {
        width: 100% !important;
        max-width: 90% !important;
        margin: 0 auto 50px auto !important;
        position: relative !important;
        left: auto !important;
        right: auto !important;
        margin-left: auto !important;
        margin-right: auto !important;
        transform: none !important;
        align-items: center !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .prisoner-content {
        width: 100% !important;
        margin: 50px 0 0 0 !important;
        height: 190px !important;
        padding: 20px !important;
        box-sizing: border-box !important;
        position: relative !important;
    }
    
    /* Avatar centralizado em mobile */
    .prisoner-avatar-card {
        left: 50% !important;
        transform: translateX(-50%) !important;
        top: -70px !important;
        position: absolute !important;
        z-index: 10 !important;
        width: 180px !important;
    }
    
    .prisoner-avatar-card:hover {
        transform: translateX(-50%) translateY(-2px) !important;
    }
    
    /* Timeline mobile - linha à esquerda */
    .timeline-line {
        left: 20px !important;
        transform: none !important;
        width: 2px !important;
    }
    
    /* Conectores mobile */
    .timeline-connector {
        left: 12px !important;
        right: auto !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }
    
    .prisoner-card.left .timeline-connector,
    .prisoner-card.right .timeline-connector {
        left: 12px !important;
        right: auto !important;
    }
    
    .timeline-dot {
        margin-left: 0 !important;
    }
    
    .about-content {
        padding: 25px;
    }
    
    .about-title {
        font-size: 1.8rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
} 