/* Top Searched Styles */

.top-searched-container {
    position: relative;
    display: flex;
    align-items: center;
}

.top-searched-tags {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    /*padding: 10px 0;*/
    scroll-behavior: smooth;
    flex: 1;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.top-searched-tags::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.top-searched-tag {
    display: inline-block;
    background: #333;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all 0.3s ease;
    border: 1px solid #444;
    flex-shrink: 0;
}

.top-searched-tag:hover {
    background: #555;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.top-searched-section .title {
    color: #fff;
    font-weight: bold;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-searched-section .title i {
    color: #007bff;
}

/* Scroll Arrow Styles */
.scroll-arrow {
    background: #333;
    border: 1px solid #444;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    flex-shrink: 0;
}

.scroll-arrow:hover {
    background: #555;
    transform: scale(1.1);
}

.scroll-arrow:active {
    transform: scale(0.95);
}

.scroll-left {
    margin-right: 10px;
}

.scroll-right {
    margin-left: 10px;
}

.scroll-arrow i {
    font-size: 16px;
}

@media (max-width: 768px) {
    .top-searched-tags {
        gap: 6px;
    }
    
    .top-searched-tag {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .scroll-arrow {
        width: 35px;
        height: 35px;
    }
    
    .scroll-arrow i {
        font-size: 14px;
    }
    
    .scroll-left {
        margin-right: 8px;
    }
    
    .scroll-right {
        margin-left: 8px;
    }
}

/* Top searched tags styling - now wraps instead of scrolling */

/* Ensure top searched tags wrap properly on all screen sizes */
.top-searched-container .uk-flex {
    flex-wrap: wrap !important;
    justify-content: center !important;
}

@media (min-width: 768px) {
    .top-searched-container .uk-flex {
        justify-content: flex-start !important;
    }
}

/* Category Styles */
.category-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.category-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.category-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.category-content {
    padding: 20px;
    text-align: center;
}

.category-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: #333;
}

.category-description {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .category-content {
        padding: 15px;
    }
    
    .category-name {
        font-size: 1.1rem;
    }
}

/* Pending Comments Styling */
.pending-comment {
    opacity: 0.7;
    border-left: 3px solid #f39c12;
    padding-left: 10px;
}

.pending-comment .uk-comment-body {
    background-color: rgba(243, 156, 18, 0.1);
    padding: 10px;
    border-radius: 5px;
    margin-top: 5px;
}

.uk-badge-warning {
    background-color: #f39c12;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
}

/* Reply Styling */
.reply-form {
    margin-top: 15px;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    border-left: 3px solid #007bff;
}

.replies {
    border-left: 2px solid #e0e0e0;
    padding-left: 20px;
    margin-left: 20px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 5px;
    padding: 10px 0 10px 20px;
}

.reply-link {
    color: #007bff;
    cursor: pointer;
    text-decoration: none;
}

.reply-link:hover {
    text-decoration: underline;
}

/* Additional reply styling for better visibility */
.replies .uk-comment {
    margin-left: 10px;
    border-left: 3px solid #007bff;
    padding-left: 15px;
    background-color: rgba(0, 123, 255, 0.05);
    border-radius: 3px;
}

.replies .uk-comment-avatar {
    width: 40px !important;
    height: 40px !important;
}



/* YouTube-style duration overlay */
.video-duration-overlay {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    line-height: 1.2;
    z-index: 10;
    font-family: Arial, sans-serif;
}

/* HD badge overlay in top right */
.hd-badge-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    line-height: 1.2;
    z-index: 10;
    font-family: Arial, sans-serif;
}

/* Signin/Signup Modal Styles */
.uk-modal-dialog-small {
    width: 400px;
    max-width: calc(100% - 20px);
}

@media (max-width: 480px) {
    .uk-modal-dialog-small {
        width: auto;
        margin: 10px auto;
    }
}

/* Modal form styling */
.uk-modal-dialog-small .uk-form-row {
    margin-bottom: 15px;
}

.uk-modal-dialog-small .uk-form-icon {
    position: relative;
}

.uk-modal-dialog-small .uk-form-icon input {
    padding-right: 40px;
}

.uk-modal-dialog-small .uk-form-icon i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

/* Error message styling */
.uk-alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.uk-alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}

/* Tags Page Styling - Reduced Size */
.tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.tag-wrapper {
    width: fit-content;
    min-width: 120px;
    max-width: 100%;
}

.tag-item {
    padding: 10px !important;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.tag-title {
    font-size: 14px !important;
    line-height: 1.4 !important;
    margin-bottom: 2px !important;
    word-wrap: break-word;
}

.tag-meta {
    font-size: 12px !important;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}

.tags-grid .tag-item .uk-text-small {
    font-size: 11px !important;
    margin-top: 5px;
}

@media (max-width: 768px) {
    .tags-grid {
        gap: 10px;
    }
    
    .tag-wrapper {
        min-width: 100px;
    }
    
    .tag-item {
        padding: 8px !important;
    }
    
    .tag-title {
        font-size: 13px !important;
    }
    
    .tag-meta {
        font-size: 11px !important;
    }
}
