/* ================= HEADER ================= */
.top-header {
    background: #212529;
    border-bottom: 1px solid #ddd;
    padding: 10px 15px;
}

.top-header img {
    height: 55px;
}

/* ================= TOP BUTTONS ================= */
.top-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 500;
    white-space: nowrap;
    background-color: #9b1c28;
    color: #ffffff;
}

/* MOBILE: ICON ONLY */
@media (max-width: 768px) {
    .top-btn span { display: none; }
    .top-btn i { font-size: 18px; }
    .top-header img { height: 45px; }
}

/* DESKTOP: ICON + TEXT */
@media (min-width: 769px) {
    .top-btn span { display: inline; }
}

/* ================= NAVBAR ================= */
.scrolling-navbar {
    padding: 10px;
    overflow-x: auto;
    white-space: nowrap;
    background: #212529;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    -webkit-overflow-scrolling: touch;
}

.scrolling-navbar::-webkit-scrollbar { display: none; }

.scrolling-navbar .nav-link {
    display: inline-block;
    padding: 12px 16px;
    font-weight: 500;
    color: #fff;
    transition: 0.3s;
}

.scrolling-navbar .nav-link:hover,
.scrolling-navbar .nav-link.active {
    background: #dc3545;
    color: #fff;
    border-radius: 4px;
}

/* ================= SIDEBAR ================= */
#sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    z-index: 1050;
    background: #dc3545;
    overflow-x: hidden;
    transition: 0.4s;
    padding-top: 60px;
}

#sidebar a {
    padding: 12px 20px;
    font-size: 18px;
    color: #fff;
    text-decoration: none;
    display: block;
}

#sidebar a:hover { background: rgba(255,255,255,0.2); }

#sidebar .closebtn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #fff;
}

/* ================= BARS BUTTON ================= */
.bars-btn {
    background: #dc3545;
    color: #fff;
    border: none;
    padding: 8px 12px;
    font-size: 20px;
    border-radius: 6px;
    cursor: pointer;
}

.bars-btn:hover { background: #b81e29; }

/* Focus styles for accessibility */
.btn:focus-visible,
.top-btn:focus-visible {
    outline: 3px solid #ffdd57;
    outline-offset: 3px;
}

.nav-link.active {
    color: #ffffff;
    background-color: #8b0000;
}

/* ================= BACK TO TOP ================= */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 70px;
    background-color: #fff;
    color: #000;
}

/* ================= SOCIAL BUTTONS ================= */
.btn-social {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 18px;
}

@media (max-width: 576px) {
    .btn-social {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}

/* ================= POLL ================= */
.poll-container {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.poll-option {
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.poll-option:hover { background: #e9ecef; }

.poll-option.selected {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.poll-result-bar {
    height: 30px;
    background: #007bff;
    border-radius: 5px;
    margin: 5px 0;
    transition: width 0.5s ease-in-out;
}

.vote-count {
    font-weight: bold;
    color: #495057;
}

/* ================= NOTIFICATION BELL ================= */
.notification-bell {
    display: none;
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 2000;
}

.bell-container {
    position: relative;
    display: inline-block;
}

.bell-icon {
    font-size: 30px;
    color: #ff9800;
    background: white;
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
}

.bell-icon:hover {
    color: #e67e22;
    transform: scale(1.1);
}

.subscription-tooltip {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 13px;
    white-space: nowrap;
    display: none;
    z-index: 3000;
}

.bell-container:hover .subscription-tooltip,
.bell-container:focus-within .subscription-tooltip {
    display: block;
}

@media (max-width: 600px) {
    .notification-bell {
        bottom: 20px;
        left: 20px;
    }
}

/* ================= VIDEO ================= */
.video-thumb {
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out;
}

.video-thumb:hover {
    transform: scale(1.05);
}

#video {
    background-color: rgb(5, 53, 71);
}

/* ================= OWL NAV ================= */
.owl-nav {
    position: absolute;
    top: 40%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.owl-nav button {
    background: none;
    border: none;
    pointer-events: all;
}

/* ================= TRENDING ================= */
.trending-label { width: 100px; }

.trending-carousel {
    width: calc(100% - 100px);
    padding-left: 90px;
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: rgba(0,0,0,0.6);
}

.overlay a {
    color: #fff;
    text-decoration: none;
}
