/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: #000;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 100px 0 50px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="stars" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="white" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23stars)"/></svg>');
    animation: twinkle 3s ease-in-out infinite alternate;
}

@keyframes twinkle {
    0% { opacity: 0.3; }
    100% { opacity: 0.8; }
}

.hero-content {
    flex: 1;
    padding: 0 50px;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-btn {
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.4);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    position: relative;
}

.hero-img {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Content Sections */
.content-section {
    padding: 80px 0;
    background: #111;
}

.content-section:nth-child(even) {
    background: #0a0a0a;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    text-align: center;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Stories Grid */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.story-card {
    background: #1a1a1a;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.story-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.story-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.story-card:hover .story-image img {
    transform: scale(1.1);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.story-card:hover .play-overlay {
    opacity: 1;
}

.play-button {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.3);
}

.play-button:hover {
    transform: scale(1.1);
}

.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    transition: width 0.3s ease;
}

.story-info {
    padding: 20px;
}

.story-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #FFD700;
}

.story-description {
    color: #ccc;
    margin-bottom: 15px;
    line-height: 1.5;
}

.story-duration {
    background: #333;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    color: #4ECDC4;
    font-weight: 600;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    margin: 5% auto;
    width: 90%;
    max-width: 800px;
    background: #1a1a1a;
    border-radius: 15px;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #FF6B6B;
}

.video-container {
    position: relative;
    width: 100%;
    height: 450px;
}

#story-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-info {
    padding: 20px;
}

.video-info h3 {
    font-size: 1.5rem;
    color: #FFD700;
    margin-bottom: 10px;
}

.video-info p {
    color: #ccc;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #000;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid #333;
}

.footer p {
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 120px 0 50px;
    }
    
    .hero-content {
        padding: 0 20px;
        margin-bottom: 40px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .nav-menu ul {
        gap: 15px;
    }
    
    .nav-link {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .stories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .video-container {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .nav-menu ul {
        flex-wrap: wrap;
        gap: 10px;
    }
}


/* Estilos para histórias assistidas */
.story-card.watched .story-image::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: linear-gradient(45deg, #4ECDC4, #44A08D);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
}

.checkmark {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: linear-gradient(45deg, #4ECDC4, #44A08D);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
    z-index: 5;
}

/* Sugestão de próxima história */
.next-story-suggestion {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #1a1a1a;
    border-radius: 15px;
    padding: 20px;
    max-width: 350px;
    z-index: 3000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.suggestion-content h3 {
    color: #FFD700;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.suggestion-content h4 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 1rem;
}

.suggestion-content p {
    color: #ccc;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.suggestion-buttons {
    display: flex;
    gap: 10px;
}

.play-next-btn {
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    border: none;
    padding: 10px 15px;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.play-next-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.close-suggestion-btn {
    background: #333;
    border: none;
    padding: 10px 15px;
    border-radius: 25px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-suggestion-btn:hover {
    background: #555;
}

/* Erro de vídeo */
.video-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.8);
    padding: 30px;
    border-radius: 15px;
    z-index: 10;
}

.video-error h3 {
    color: #FF6B6B;
    margin-bottom: 15px;
}

.video-error button {
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.video-error button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

/* Notificações */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(45deg, #4ECDC4, #44A08D);
    color: white;
    padding: 15px 25px;
    border-radius: 25px;
    font-weight: 600;
    z-index: 4000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.notification.show {
    transform: translateX(0);
}

/* Melhorias no player de vídeo */
#story-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

#story-video::-webkit-media-controls {
    display: none !important;
}

#story-video::-webkit-media-controls-enclosure {
    display: none !important;
}

/* Controles customizados do vídeo */
.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-container:hover .video-controls {
    opacity: 1;
}

.progress-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    margin-bottom: 15px;
    cursor: pointer;
}

.progress-bar-video {
    height: 100%;
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    border-radius: 3px;
    transition: width 0.1s ease;
}

.control-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.control-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.time-display {
    color: white;
    font-size: 0.9rem;
    margin-left: auto;
}

/* Responsividade para dispositivos móveis */
@media (max-width: 768px) {
    .next-story-suggestion {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .suggestion-buttons {
        flex-direction: column;
    }
    
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        transform: translateY(-100px);
    }
    
    .notification.show {
        transform: translateY(0);
    }
    
    .video-controls {
        padding: 15px;
    }
    
    .control-buttons {
        gap: 10px;
    }
    
    .control-btn {
        font-size: 1rem;
        padding: 6px;
    }
}


/* Filtros por livros bíblicos */
.book-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.book-filter {
    background: #333;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.book-filter:hover {
    background: #555;
    transform: translateY(-2px);
}

.book-filter.active {
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

/* Seções de livros */
.book-section {
    margin-bottom: 50px;
}

.book-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #4ECDC4;
    text-align: left;
    padding-left: 20px;
    border-left: 4px solid #4ECDC4;
}

/* Indicador do livro bíblico nos cards */
.story-book {
    background: #4ECDC4;
    color: #000;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 10px;
    display: inline-block;
}

/* Animações para filtros */
.book-section {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.book-section.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    height: 0;
    overflow: hidden;
    margin: 0;
}

/* Responsividade para filtros */
@media (max-width: 768px) {
    .book-filters {
        gap: 10px;
    }
    
    .book-filter {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .book-title {
        font-size: 1.5rem;
        padding-left: 15px;
    }
    
    .story-book {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
}

@media (max-width: 480px) {
    .book-filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .book-filter {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

