@import url('https://fonts.googleapis.com/css2?family=Open+Sans&display=swap');

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f0ff;
    color: #333;
    overflow-x: hidden;
}

a {
    color: #329CC9;
    text-decoration: none;
}

a:hover {
    color: #b98ed7;
    text-decoration: none; 
}
.nav-tabs {
    border-bottom: none !important;
}

.nav-tabs .nav-link.active {
    border-radius: 8px !important;
}

.nav-tabs .nav-link {
    border-radius: 8px !important;
}

.container {
    max-width: 80%;
    margin: 0 auto; 
    margin-top: 3vh;
    margin-right: 21vh;
}

.row {
    justify-content: center; }

.feed-container {
    width: 70%; 
    max-width: 800px; 
    margin: 0 auto; 
    margin-left: 15%; 
    margin-right: 15%; 
}

/* Tarjeta de video */
.card {
    background-color: #fff;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 0 1.5vh rgba(0,0,0,0.1);
    overflow: hidden;
    border: none;
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    width: 100%;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.user-name {
    font-weight: 600;
    color: #333;
}

.upload-date {
    font-size: 0.8rem;
    color: #999;
}

.card-body {
    padding: 12px 16px;
    width: 100%;
}

.card-body video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.card-body .rounded-circle {
    width: 40px;
    height: 40px;
    object-fit: cover; /* Mantiene el ratio de la imagen */
    border-radius: 50%; /* Asegura que siga siendo circular */
}

.card .description {
    margin-left: 0; /* Elimina cualquier margen izquierdo */
    padding-left: 0; /* Elimina cualquier padding izquierdo */
    text-align: left; /* Asegura que el texto esté alineado a la izquierda */
}

.video-container video {
    width: 100%;
    border-radius: 8px;
    outline: none;
    max-height: 300px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    font-size: 1rem;
    padding: 10px 16px;
    border-top: 1px solid #eee;
}

.actions {
    display: flex;
    gap: 10px;
    align-items: center;
    color: #666;
    font-size: 0.9rem;
}

.actions .action-icon {
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.2s;
}

.action {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: color 0.2s;
}

.action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 2px solid #ccc;
    border-radius: 50%;
    font-size: 0.8rem;
}

.like-icon {
    border-color: #b98ed7;
    color: #b98ed7;
    background-color: transparent !important;
}

.comment-icon {
    border-color: #7db9ce;
    color: #7db9ce;
}

.views-icon {
    border-color: #cea87d;
    color: #cea87d;
}

.share-icon {
    border-color: #8fc080;
    color: #8fc080;
}

.comment-section {
    margin-top: 10px;
    border-top: 1px solid #ddd;
    padding: 10px 16px;
}

.comment-input {
    width: 100%;
    min-height: 60px;
    padding: 8px;
    font-size: 0.9rem;
    margin-bottom: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.comment-submit {
    background-color: #329CC9;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.comment-submit:hover {
    background-color: #26789c;
}

.card-title {
    margin-bottom: 16px;
    font-weight: 600;
}

.sidebar-right .card {
    margin-bottom: 20px;
}

.sidebar-right .card-body {
    padding: 16px;
}

.nav-tabs .nav-link {
    color: black;
    background: white;
    transition: background 0.3s ease, color 0.3s ease;
    padding: 5px 10px;
    font-size: 14px;
    flex: 0 1 auto;
    border: none;
}

.nav-tem{
    width: 50px;
}

.nav-tabs .nav-link.active {
    color: white !important;
    background: linear-gradient(90deg, #329CC9, #C06fc8);
    font-weight: bold;
}

#myTab2{
    width: 80%;
    margin: 0 auto;
    margin-left: 7%;
    border-radius: 5px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px;
}

#myTab2Content{
    margin: 0 auto; /* Centra el contenido */
}

.row-cols-1 .col, .row-cols-md-2 .col, .row-cols-lg-3 .col {
    display: flex;
    flex-direction: column;
}

/* DARK MODE */

body.dark-mode {
    background-color: #0F0B14;
    color: #e0e0e0;
}

body.dark-mode .card {
    background-color: #252028;
    color: #f0f0f0;
    box-shadow: 0 2px 8px rgba(255,255,255,0.05);
}

body.dark-mode .card-header,
body.dark-mode .card-footer,
body.dark-mode .comment-section {
    background-color: #1B161E;
    border-color: #333;
}

body.dark-mode .user-name,
body.dark-mode .upload-date,
body.dark-mode .description,
body.dark-mode .card-title,
body.dark-mode .sidebar-right .card-body,
body.dark-mode .actions,
body.dark-mode .numLikesLink,
body.dark-mode .numCommentsLink {
    color: #fff !important;
}

body.dark-mode .action-icon {
    border-color: #777;
    color: #ddd;
}

body.dark-mode .comment-input {
    background-color: #252028;
    color: #f0f0f0;
    border: 1px solid #555;
}

body.dark-mode .comment-submit {
    background-color: #329CC9;
    color: #fff;
}

body.dark-mode .comment-submit:hover {
    background-color: #b98ed7;
}

body.dark-mode .video-container video {
    border: 1px solid #444;
}
body.dark-mode a,
body.dark-mode a:visited {
    color: #329CC9;
    text-decoration: none;
}

body.dark-mode a:hover {
    color: #b98ed7;
    text-decoration: none;
}

body.dark-mode .like-icon {
    border-color: #b98ed7 !important;
    color: #b98ed7 !important;
}

body.dark-mode .comment-icon {
    border-color: #7db9ce !important;
    color: #7db9ce !important;
}

body.dark-mode .views-icon {
    border-color: #cea87d !important;
    color: #cea87d !important;
}

body.dark-mode .share-icon {
    border-color: #8fc080 !important;
    color: #8fc080 !important;
}

body.dark-mode .dropdown a i {
    color: #fff !important;
}

body.dark-mode .dropdown-menu li .dropdown-item:hover {
    background-color: #3a2f41 !important;
    color: #fff !important;
}

body.dark-mode .video-container video {
    border: 1px solid #444;
}

body.dark-mode .nav-tabs .nav-link {
    background: #252028 !important;
    color: #ccc;
    border: none;
}

body.dark-mode .nav-tabs .nav-link.active {
    background: linear-gradient(90deg, #329CC9, #C06fc8) !important;
    color: white !important;
    font-weight: bold;
    border-radius: 8px !important;
}

body.dark-mode #myTab2 {
    background-color: transparent;
    border-color: transparent;
}

body.dark-mode .sidebar-right .card-body {
    color: #f0f0f0;
}

/* RESPONSIVE */

@media screen and (max-width: 1260px) {
    .feed-container {
        margin-left: 25% !important;
        margin-right: 10%;
        width: 100%;
        margin: 0 auto; /* Centra el contenido */
    }
}

@media screen and (max-width: 999px) {
    .feed-container {
        margin-left: 10px !important;
        margin-right: 22%;
        width: 66%;
        margin: 0 auto; /* Centra el contenido */
    }
}

@media screen and (max-width: 768px) {
    .sidebar-right {
        display: none !important;
    }

    .feed-container {
        margin: 0 auto;
        width: 100%;
        padding: 0;
        margin-left: 13%;
    }

    .video-container video {
        width: 98%;
        margin: 0 auto;
        height: 90vh;
    }
}