@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;700&display=swap');

/* Reset e Estilos Globais - Tema Cyberpunk Neon */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', sans-serif; /* Nova fonte */
    background-color: #0a0f1e; /* Azul noturno muito escuro */
    color: #c0c5d4; /* Cinza azulado claro para texto */
    line-height: 1.6;
    background-image: linear-gradient(rgba(10, 15, 30, 0.95), rgba(10, 15, 30, 0.95)), url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
}

a {
    text-decoration: none;
    color: #00ffff; /* Ciano Neon para links */
    transition: all 0.2s ease;
    text-shadow: 0 0 2px rgba(0, 255, 255, 0.5);
}

a:hover {
    color: #ff00ff; /* Magenta Neon no hover */
    text-shadow: 0 0 5px #ff00ff;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.container.video-page {
    max-width: 100%;
}

/* Header e Navegação */
.main-header {
    background-color: rgba(10, 15, 30, 0.8); /* Fundo semi-transparente */
    backdrop-filter: blur(10px); /* Efeito de vidro fosco */
    border-bottom: 1px solid #00ffff;
    box-shadow: 0 2px 20px rgba(0, 255, 255, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.main-nav {
    background-color: transparent; /* Já tem header com fundo */
    border-top: 1px solid rgba(0, 255, 255, 0.3);
}

main.container {
    margin-top: 0;
    padding: 30px 20px;
}

.logo-image {
    height: 70px;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 5px #00ffff);
    transition: filter 0.3s ease;
}
.logo a:hover .logo-image {
    filter: drop-shadow(0 0 10px #ff00ff);
}


.search-box {
    flex: 0 0 40%;
}

.search-box form {
    display: flex;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #00ffff;
    background-color: #1a2035;
    color: #c0c5d4;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    font-family: 'Rajdhani', sans-serif;
    transition: all 0.3s ease;
}
.search-box input:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    border-color: #fff;
}


.search-box button {
    background-color: #00ffff;
    color: #0a0f1e;
    border: none;
    padding: 0 15px;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    font-size: 16px;
    transition: all 0.3s ease;
}
.search-box button:hover {
    background-color: #ff00ff;
    box-shadow: 0 0 10px #ff00ff;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-buttons {
    display: flex;
    gap: 10px;
    flex-direction: row;
}

.login-btn,
.register-btn {
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 1px solid;
    white-space: nowrap;
}

.login-btn {
    border-color: #00ffff;
    color: #00ffff;
    background-color: transparent;
}
.login-btn:hover {
    background-color: #00ffff;
    color: #0a0f1e;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.register-btn {
    border-color: #ff00ff;
    color: #0a0f1e;
    background-color: #ff00ff;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}
.register-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.8);
}


.user-menu {
    position: relative;
}

.user-button {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: 4px;
    background-color: #1a2035;
    cursor: pointer;
}

.user-button i {
    color: #00ffff;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #1a2035;
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    border-radius: 4px;
    margin-top: 5px;
    border: 1px solid #00ffff;
}

.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    border-bottom: 1px solid rgba(0,255,255,0.2);
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a i {
    margin-right: 8px;
    color: #00ffff;
}
.dropdown-menu a:hover {
    background-color: #ff00ff;
    color: #fff;
}
.dropdown-menu a:hover i {
    color: #fff;
}

.user-menu:hover .dropdown-menu {
    display: block;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    display: block;
    padding: 10px 15px;
    font-size: 16px;
    color: #c0c5d4;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #ff00ff;
    transition: width 0.3s ease;
}

.nav-menu li a.active,
.nav-menu li a:hover {
    color: #fff;
    background-color: transparent;
}

.nav-menu li a.active::after,
.nav-menu li a:hover::after {
    width: 80%;
}


.category-dropdown:hover .dropdown-content {
    display: grid;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #1a2035;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    grid-template-columns: repeat(2, 1fr);
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #00ffff;
}

.dropdown-content a {
    padding: 8px 10px !important;
    color: #00ffff !important;
    border-radius: 4px;
}

.dropdown-content a:hover {
    background-color: #ff00ff !important;
    color: #fff !important;
}

/* Vídeos Grid */
.filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #00ffff;
    border-radius: 4px;
    background-color: rgba(26, 32, 53, 0.5);
}

.filters h2 {
    font-size: 22px;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 0 0 5px #00ffff;
}

.order-options {
    display: flex;
    gap: 15px;
}

.order-options a {
    padding: 6px 12px;
    background-color: #1a2035;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    border: 1px solid #00ffff;
    color: #00ffff;
}

.order-options a.active,
.order-options a:hover {
    background-color: #00ffff;
    color: #0a0f1e;
    box-shadow: 0 0 10px #00ffff;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.video-card {
    background-color: #1a2035;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.video-card:hover {
    transform: translateY(-5px);
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}
.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.video-card:hover .thumbnail img {
    transform: scale(1.05);
}
.thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(26, 32, 53, 0.7) 0%, transparent 50%);
    transition: opacity 0.3s;
}
.video-card:hover .thumbnail::after {
    opacity: 0;
}


.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
    border: 2px solid #fff;
    box-shadow: 0 0 15px #00ffff;
}

.play-icon i {
    font-size: 24px;
    color: #0a0f1e;
}

.video-card:hover .play-icon {
    opacity: 1;
}

.views {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 3px 8px;
    background-color: rgba(10, 15, 30, 0.8);
    border-radius: 4px;
    font-size: 12px;
    border: 1px solid rgba(0, 255, 255, 0.5);
}

.video-info {
    padding: 12px;
}

.video-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #fff;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 700;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tags a {
    font-size: 12px;
    color: #00ffff;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
}

.pagination a,
.pagination span {
    padding: 8px 15px;
    background-color: #1a2035;
    border-radius: 4px;
    font-weight: bold;
    border: 1px solid #00ffff;
}

.pagination a:hover {
    background-color: #00ffff;
    color: #0a0f1e;
}

.load-more {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

#load-more-btn,
#load-more-search-btn {
    padding: 12px 30px;
    background-color: transparent;
    color: #ff00ff;
    border: 2px solid #ff00ff;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}
#load-more-btn:hover,
#load-more-search-btn:hover {
    background-color: #ff00ff;
    color: #0a0f1e;
    box-shadow: 0 0 25px rgba(255, 0, 255, 0.8);
}

/* Página de Vídeo */
.video-page {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.video-container {
    background-color: #1a2035;
    border-radius: 4px;
    padding: 20px;
    border: 1px solid #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

.video-container h1 {
    font-size: 26px;
    margin-bottom: 15px;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 0 5px #00ffff;
}

.video-player {
    width: 100%;
    margin-bottom: 20px;
    position: relative;
    padding-top: 56.25%;
    background-color: #000;
    border: 1px solid #00ffff;
    border-radius: 4px;
    overflow: hidden;
}

.video-player video,
.video-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    border: none;
}

.video-stats {
    display: flex;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0,255,255,0.3);
    margin-bottom: 15px;
}

.views,
.likes,
.date {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #c0c5d4;
}
.views i,
.date i {
    color: #c0c5d4;
}

.like-form {
    margin: 0;
}

.like-btn {
    background: none;
    border: none;
    color: #c0c5d4;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.like-btn i {
    color: #ff00ff;
}

.video-tags {
    margin-bottom: 20px;
}

.tag-label {
    font-weight: bold;
    margin-right: 10px;
    color: #fff;
}

.tag {
    display: inline-block;
    padding: 5px 10px;
    background-color: rgba(0, 255, 255, 0.1);
    border: 1px solid #00ffff;
    color: #00ffff;
    margin: 0 5px 5px 0;
    border-radius: 20px;
    font-size: 13px;
}
.tag:hover {
    background-color: #00ffff;
    color: #0a0f1e;
}

/* Seção de Comentários */
.comments-section {
    margin-top: 30px;
    border-top: 1px solid rgba(0,255,255,0.3);
    padding-top: 20px;
}

.comments-section h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #fff;
}

.comment-form textarea {
    width: 100%;
    padding: 10px;
    background-color: #0a0f1e;
    border: 1px solid #00ffff;
    border-radius: 4px;
    color: #c0c5d4;
    min-height: 80px;
    margin-bottom: 10px;
    resize: vertical;
}

.comment-form button {
    padding: 8px 20px;
    background-color: #ff00ff;
    color: #0a0f1e;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 10px #ff00ff;
}

.comment {
    background-color: #0a0f1e;
    border: 1px solid rgba(0,255,255,0.3);
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.comment-user {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.comment-date {
    font-size: 12px;
    color: #c0c5d4;
}

.related-videos {
    background-color: #1a2035;
    border-radius: 4px;
    padding: 20px;
}
.related-videos h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #fff;
}

.videos-grid-small {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.video-card-small {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.thumbnail-small {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 4px;
}
.thumbnail-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.video-card-small:hover .thumbnail-small img {
    transform: scale(1.05);
}

.play-icon-small {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.play-icon-small i {
    font-size: 18px;
    color: #0a0f1e;
}

.video-card-small:hover .play-icon-small {
    opacity: 1;
}

.video-info-small h4 {
    font-size: 14px;
    margin-bottom: 3px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.views-small {
    font-size: 12px;
    color: #c0c5d4;
}

/* Footer */
.main-footer {
    background-color: #0a0f1e;
    padding: 40px 0 20px;
    margin-top: 50px;
    border-top: 1px solid #00ffff;
    box-shadow: 0 -5px 20px rgba(0, 255, 255, 0.1);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 16px;
    text-transform: uppercase;
    text-shadow: 0 0 3px #00ffff;
}

.footer-section ul {
    list-style: none;
}
.footer-section ul li {
    margin-bottom: 8px;
}
.footer-section ul li a {
    color: #c0c5d4;
    font-size: 14px;
}

.footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-tags a {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 13px;
    border: 1px solid #00ffff;
    background-color: transparent;
    color: #00ffff;
}
.footer-tags a:hover {
    background-color: #ff00ff;
    border-color: #ff00ff;
    color: #0a0f1e;
}


.footer-bottom {
    border-top: 1px solid rgba(0,255,255,0.3);
    padding-top: 20px;
    text-align: center;
}

.copyright {
    font-size: 14px;
    color: #c0c5d4;
    margin-bottom: 5px;
}

.disclaimer {
    font-size: 12px;
    color: #6c757d;
}

/* Página de Busca */
.search-results-header {
    margin-bottom: 20px;
}
.search-results-header h1 {
    font-size: 24px;
    margin-bottom: 5px;
    color: #fff;
}
.search-results-header p {
    font-size: 14px;
    color: #c0c5d4;
}

.no-results {
    background-color: #1a2035;
    padding: 30px;
    text-align: center;
    border-radius: 4px;
    border: 1px solid #ff00ff;
}
.no-results h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #fff;
}
.no-results p {
    color: #c0c5d4;
}
.no-results a {
    color: #ff00ff;
}

/* Responsividade */
@media (max-width: 1200px) {
    .video-page {
        grid-template-columns: 1fr;
    }
    .videos-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 992px) { /* Ajuste para tablets */
    .header-container {
        flex-wrap: wrap;
        justify-content: center;
    }
    .logo {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
    .search-box {
        order: 3;
        width: 100%;
        margin-top: 10px;
        flex: 1 1 100%;
        min-width: unset;
    }
    .user-actions {
        order: 2;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
        padding: 10px;
    }
    .search-box {
        flex: 0 0 100%;
        width: 100%;
    }
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    .video-stats {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .videos-grid {
        grid-template-columns: 1fr;
    }
    .auth-buttons {
        gap: 5px;
        justify-content: center;
    }
    .login-btn,
    .register-btn {
        padding: 6px 10px;
        font-size: 13px;
    }
    .nav-menu li a {
        padding: 8px 10px;
        font-size: 13px;
    }
}