/*
 * LiveGo IPTV Custom Theme Styles
 * Overrides the default blog theme to match LiveGo IPTV branding
 */

/* Dark Background Theme */
body {
    background: #0F172A !important;
    color: #ffffff !important;
}

/* Header Styles */
.header {
    background: #1A252F !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.header .name a {
    color: #ffffff !important;
}

.header .desc {
    color: #cbd5e1 !important;
}

.header .navbar-nav > li > a {
    color: #cbd5e1 !important;
}

.header .navbar-nav > li > a:hover {
    color: #4A90E2 !important;
}

/* Logo Fixes - High Priority */
body .header .logo,
html .header .logo {
    width: auto !important;
    height: auto !important;
    border-radius: 0px !important;
    overflow: visible !important;
    margin-right: 20px !important;
    -webkit-border-radius: 0px !important;
    -moz-border-radius: 0px !important;
}

body .header .logo-image,
html .header .logo-image {
    width: auto !important;
    height: 50px !important;
    max-width: 200px !important;
    border-radius: 0px !important;
    -webkit-border-radius: 0px !important;
    -moz-border-radius: 0px !important;
}

/* Navigation and Button Layout Fixes */
.header .main-nav {
    display: flex !important;
    align-items: center !important;
}

.header .navbar-nav {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
}

.header .navbar-nav > li {
    display: flex !important;
    align-items: center !important;
}

/* ULTRA HIGH PRIORITY - Button and Navigation Fixes */
body .header .navbar-nav > li .btn-cta-primary,
html .header .navbar-nav > li .btn-cta-primary,
.header .navbar-nav .btn-cta-primary,
.navbar-nav .btn-cta-primary,
a.btn-cta-primary,
.btn-cta-primary {
    background: #4A90E2 !important;
    background-color: #4A90E2 !important;
    border-color: #4A90E2 !important;
    color: #ffffff !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    margin-left: 10px !important;
    margin-top: 0px !important;
    margin-bottom: 0px !important;
    display: inline-block !important;
    line-height: 1.4 !important;
    vertical-align: middle !important;
    float: none !important;
    position: relative !important;
    top: 0px !important;
    transform: translateY(0px) !important;
    text-decoration: none !important;
}

/* Force text color for all button states */
.btn-cta-primary,
.btn-cta-primary:link,
.btn-cta-primary:visited,
.btn-cta-primary:active,
a.btn-cta-primary,
a.btn-cta-primary:link,
a.btn-cta-primary:visited,
a.btn-cta-primary:active {
    color: #ffffff !important;
}

body .header .navbar-nav > li .btn-cta-primary:hover,
html .header .navbar-nav > li .btn-cta-primary:hover,
.btn-cta-primary:hover,
a.btn-cta-primary:hover {
    background: #357ABD !important;
    border-color: #357ABD !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Content Sections */
.sections-wrapper {
    background: #0F172A !important;
}

.section {
    background: #141E2D !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
}

.section-inner {
    color: #ffffff !important;
}

.section h1, .section h2, .section h3, .section h4, .section h5, .section h6 {
    color: #ffffff !important;
}

.section .title a {
    color: #ffffff !important;
}

.section .title a:hover {
    color: #4A90E2 !important;
}

.section .meta {
    color: #94a3b8 !important;
}

.section .meta a {
    color: #4A90E2 !important;
}

.section .desc {
    color: #cbd5e1 !important;
}

/* Sidebar Styles */
.aside {
    background: #141E2D !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
}

.aside .heading {
    color: #ffffff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.aside .content {
    color: #cbd5e1 !important;
}

.aside .content a {
    color: #4A90E2 !important;
}

.aside .content a:hover {
    color: #ffffff !important;
}

.aside .item .title a {
    color: #ffffff !important;
}

.aside .item .title a:hover {
    color: #4A90E2 !important;
}

.aside .more-link {
    color: #4A90E2 !important;
}

/* Navigation Tabs */
.nav-tabs {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.nav-tabs > li > a {
    color: #cbd5e1 !important;
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    color: #ffffff !important;
    background: #4A90E2 !important;
    border: 1px solid #4A90E2 !important;
}

.nav-tabs > li > a:hover {
    background: rgba(74, 144, 226, 0.1) !important;
    border: 1px solid rgba(74, 144, 226, 0.3) !important;
}

/* Tag Cloud */
.tagcloud a {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 6px !important;
    padding: 4px 8px !important;
    margin: 2px !important;
    display: inline-block !important;
    text-decoration: none !important;
}

.tagcloud a:hover {
    background: rgba(74, 144, 226, 0.2) !important;
    color: #4A90E2 !important;
    border-color: rgba(74, 144, 226, 0.3) !important;
}

/* Archive and Category Lists */
.archive ul, .category-list ul {
    list-style: none !important;
    padding: 0 !important;
}

.archive ul li, .category-list ul li {
    padding: 5px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.archive ul li a, .category-list ul li a {
    color: #cbd5e1 !important;
    text-decoration: none !important;
}

.archive ul li a:hover, .category-list ul li a:hover {
    color: #4A90E2 !important;
}

/* Footer Styles */
.footer {
    background: #1A252F !important;
    color: #ffffff !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.footer h4 {
    color: #ffffff !important;
    margin-bottom: 1rem !important;
}

.footer a {
    color: #4A90E2 !important;
    text-decoration: none !important;
}

.footer a:hover {
    color: #ffffff !important;
}

.footer .list-unstyled {
    padding: 0 !important;
    margin: 0 !important;
}

.footer .list-unstyled li {
    padding: 5px 0 !important;
}

/* Search Box */
.searchbox {
    background: #141E2D !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.searchbox .form-control {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

.searchbox .form-control:focus {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: #4A90E2 !important;
    color: #ffffff !important;
}

.searchbox .btn-submit {
    background: #4A90E2 !important;
    border-color: #4A90E2 !important;
    color: #ffffff !important;
}

/* Pagination */
.pagination a {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #cbd5e1 !important;
}

.pagination a:hover {
    background: #4A90E2 !important;
    border-color: #4A90E2 !important;
    color: #ffffff !important;
}

.pagination .current {
    background: #4A90E2 !important;
    border-color: #4A90E2 !important;
    color: #ffffff !important;
}

/* Social Sharing */
.share a {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    margin: 0 5px !important;
    text-decoration: none !important;
}

.share a:hover {
    background: #4A90E2 !important;
    color: #ffffff !important;
    border-color: #4A90E2 !important;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .navbar-collapse {
        background: #1A252F !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        margin-top: 10px !important;
        border-radius: 6px !important;
    }

    .navbar-nav {
        margin: 0 !important;
        flex-direction: column !important;
    }

    .navbar-nav > li {
        width: 100% !important;
        flex-direction: column !important;
    }

    .navbar-nav > li > a {
        color: #cbd5e1 !important;
        padding: 15px 20px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        width: 100% !important;
        text-align: left !important;
    }

    .navbar-nav > li:last-child > a {
        border-bottom: none !important;
    }

    .btn-cta-primary {
        margin: 10px 20px !important;
        display: block !important;
        text-align: center !important;
    }

    /* Logo adjustments for mobile */
    .header .logo-image {
        height: 40px !important;
    }
}

/* Form Elements */
input, textarea, select {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

input:focus, textarea:focus, select:focus {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: #4A90E2 !important;
    color: #ffffff !important;
}

/* Code Blocks */
pre, code {
    background: rgba(0, 0, 0, 0.3) !important;
    color: #50E3C2 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Blockquotes */
blockquote {
    border-left: 4px solid #4A90E2 !important;
    background: rgba(255, 255, 255, 0.05) !important;
    color: #cbd5e1 !important;
}

/* Tables */
table {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
}

table th {
    background: rgba(74, 144, 226, 0.2) !important;
    color: #ffffff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Ensure text readability */
.text-muted {
    color: #94a3b8 !important;
}

/* Featured content styling */
.featured img {
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.featured-quote blockquote {
    background: rgba(74, 144, 226, 0.1) !important;
    border: 1px solid rgba(74, 144, 226, 0.2) !important;
    border-radius: 8px !important;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .footer .col-md-3 {
        margin-bottom: 2rem !important;
    }
}

/* Additional specific overrides for white backgrounds */
.post.section,
.recent-posts.aside.section,
.archive.aside.section,
.category-list.aside.section,
.support.aside.section {
    background: #141E2D !important;
}

/* Override any remaining white or light backgrounds */
.content-wrapper,
.primary,
.secondary,
.container .section,
.item,
.tab-content,
.tab-pane {
    background: transparent !important;
}

/* Ensure cards and content blocks use the dark background */
.card,
.panel,
.well,
.jumbotron {
    background: #141E2D !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

/* Override Bootstrap's default white backgrounds */
.panel-default,
.panel-default > .panel-heading {
    background: #141E2D !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

/* Make sure all text is visible */
.text-dark,
.text-primary {
    color: #ffffff !important;
}

/* MOST IMPORTANT - Override any white backgrounds */
* {
    --bs-body-bg: #141E2D !important;
}

/* Ultra high priority background overrides */
body .section,
html .section,
body .aside,
html .aside,
body .post.section,
html .post.section,
.section.post,
.aside.section {
    background: #141E2D !important;
    background-color: #141E2D !important;
}

/* Force override for ALL possible white background combinations */
.bg-white,
.bg-light,
[style*="background: white"],
[style*="background: #fff"],
[style*="background-color: white"],
[style*="background-color: #fff"],
[style*="background-color: #ffffff"],
[style*="background:#fff"],
[style*="background:#ffffff"] {
    background: #141E2D !important;
    background-color: #141E2D !important;
}

/* Override Bootstrap container backgrounds */
.container .section,
.container-fluid .section,
.row .section {
    background: #141E2D !important;
    background-color: #141E2D !important;
}

/* Content area specific overrides */
.section .item {
    background: transparent !important;
}

.section .section-inner {
    background: transparent !important;
}

/* Pagination styling */
.pagination {
    background: transparent !important;
}

.pagination a,
.pagination span {
    background: #141E2D !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.pagination a:hover,
.pagination .current {
    background: #4A90E2 !important;
    color: #ffffff !important;
    border-color: #4A90E2 !important;
}