@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700;900&display=swap');

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Container */
.modal-container {
    width: 95%;
    max-width: 1200px;
    max-height: 95vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
    border: 2px solid #00ffff;
    border-radius: 15px;
    box-shadow:
        0 0 50px rgba(0,255,255,0.5),
        inset 0 0 30px rgba(0,255,255,0.1);
    overflow: hidden;
    transform: scale(0.8) translateY(50px);
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

/* Modal Header */
.modal-header {
    background: rgba(0,255,255,0.1);
    padding: 20px 30px;
    border-bottom: 1px solid rgba(0,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ffff, transparent);
    animation: scan 3s linear infinite;
}

@keyframes scan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.modal-title {
    color: #00ffff;
    font-size: 1.8em;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0,255,255,0.8);
    margin: 0;
}

.modal-close {
    background: none;
    border: 2px solid #00ffff;
    color: #00ffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.modal-close:hover {
    background: #00ffff;
    color: #0f0f23;
    box-shadow: 0 0 20px rgba(0,255,255,0.6);
    transform: rotate(90deg);
}

/* Modal Content */
.modal-content {
    padding: 0;
    max-height: calc(95vh - 120px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #00ffff rgba(0,255,255,0.1);
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(0,255,255,0.1);
}

.modal-content::-webkit-scrollbar-thumb {
    background: #00ffff;
    border-radius: 4px;
}

/* Indicador de scroll */
.scroll-indicator {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0,255,255,0.2);
    border: 1px solid #00ffff;
    border-radius: 20px;
    padding: 8px 15px;
    color: #00ffff;
    font-size: 12px;
    font-family: 'Poppins', sans-serif;
    animation: pulse-scroll 2s infinite;
    pointer-events: none;
    z-index: 1001;
}

@keyframes pulse-scroll {
    0%, 100% {
        opacity: 0.6;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

.scroll-indicator.hidden {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* Character Display */
.character-section {
    padding: 30px;
    text-align: center;
    background: rgba(0,255,255,0.05);
    border-bottom: 1px solid rgba(0,255,255,0.2);
}

.character-avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 3px solid #00ffff;
    margin: 0 auto 20px;
    box-shadow: 
        0 0 30px rgba(0,255,255,0.5),
        inset 0 0 20px rgba(0,255,255,0.1);
    overflow: hidden;
    position: relative;
}

.character-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.character-name {
    color: #ffffff;
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(255,255,255,0.8);
}

.character-description {
    color: rgba(255,255,255,0.8);
    font-size: 1em;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Media Tabs */
.media-tabs {
    display: flex;
    background: rgba(0,0,0,0.5);
    border-bottom: 1px solid rgba(0,255,255,0.3);
}

.tab-button {
    flex: 1;
    padding: 15px 20px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    position: relative;
}

.tab-button:hover {
    color: #00ffff;
    background: rgba(0,255,255,0.1);
}

.tab-button.active {
    color: #00ffff;
    border-bottom-color: #00ffff;
    background: rgba(0,255,255,0.1);
    box-shadow: 0 0 20px rgba(0,255,255,0.3);
}

.tab-button.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #00ffff;
    box-shadow: 0 0 10px rgba(0,255,255,0.8);
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 30px;
    min-height: 300px;
}

.tab-content.active {
    display: block;
}

/* Audio Section */
.audio-player {
    background: rgba(0,255,255,0.1);
    border: 1px solid rgba(0,255,255,0.3);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.play-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #00ffff;
    border: none;
    color: #0f0f23;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.play-button:hover {
    background: #ffffff;
    box-shadow: 0 0 20px rgba(0,255,255,0.6);
    transform: scale(1.1);
}

.audio-progress {
    flex: 1;
    height: 6px;
    background: rgba(0,255,255,0.2);
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
}

.audio-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00ffff, #ffffff);
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(0,255,255,0.8);
}

.audio-time {
    color: #00ffff;
    font-size: 12px;
    min-width: 80px;
    text-align: center;
}

.audio-list {
    list-style: none;
}

.audio-item {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(0,255,255,0.2);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.audio-item:hover {
    background: rgba(0,255,255,0.1);
    border-color: #00ffff;
    transform: translateX(5px);
}

.audio-item.active {
    background: rgba(0,255,255,0.2);
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0,255,255,0.4);
}

.audio-icon {
    width: 40px;
    height: 40px;
    background: #00ffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f0f23;
    font-size: 16px;
}

.audio-info h4 {
    color: #ffffff;
    margin: 0 0 5px 0;
    font-size: 14px;
}

.audio-info p {
    color: rgba(255,255,255,0.6);
    margin: 0;
    font-size: 12px;
}

/* Text Content */
.text-content {
    color: rgba(255,255,255,0.9);
    line-height: 1.8;
    font-size: 16px;
}

.text-content h3 {
    color: #00ffff;
    margin-bottom: 15px;
    font-size: 1.3em;
    text-shadow: 0 0 10px rgba(0,255,255,0.8);
}

.text-content p {
    margin-bottom: 15px;
}

.text-content ul, .text-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.text-content li {
    margin-bottom: 8px;
}

/* Video Section */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(0,255,255,0.3);
    box-shadow: 0 0 20px rgba(0,255,255,0.3);
    margin-bottom: 20px;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(0,255,255,0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    border-color: #00ffff;
    box-shadow: 0 0 25px rgba(0,255,255,0.5);
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #ffffff;
    padding: 15px;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #00ffff;
}

.gallery-overlay p {
    margin: 0;
    font-size: 12px;
    color: rgba(255,255,255,0.8);
}

/* Footer Separator */
.footer-separator {
    display: flex;
    align-items: center;
    padding: 30px 40px 20px 40px;
    margin-top: 20px;
}

.separator-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00ffff, transparent);
    opacity: 0.6;
}

.separator-text {
    color: #00ffff;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 700;
    margin: 0 20px;
    text-shadow: 0 0 10px rgba(0,255,255,0.8);
    white-space: nowrap;
}

/* Responsive para separador */
@media (max-width: 768px) {
    .footer-separator {
        padding: 20px 25px 15px 25px;
    }

    .separator-text {
        font-size: 12px;
        margin: 0 15px;
    }

    .scroll-indicator {
        bottom: 15px;
        right: 15px;
        padding: 6px 12px;
        font-size: 11px;
    }
}
