/* Help Center Custom Styles */

/* Navigation Bar Styling */
.navbar.bg-primary {
    background-color: #4B9CD3 !important; /* Carolina Blue */
}

.navbar-dark .navbar-brand,
.navbar-dark .navbar-nav .nav-link,
.navbar-dark .navbar-toggler-icon {
    color: #ffffff !important;
}

.navbar-dark .navbar-brand:hover,
.navbar-dark .navbar-brand:focus,
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: #f8f9fa !important;
}

.navbar-dark .btn-outline-light {
    border-color: #ffffff !important;
    color: #ffffff !important;
}

.navbar-dark .btn-outline-light:hover,
.navbar-dark .btn-outline-light:focus {
    background-color: #ffffff !important;
    border-color: #ffffff !important;
    color: #4B9CD3 !important;
}

/* General Styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #ffffff !important;
    color: #212529 !important;
}

/* Card Hover Effects */
.hover-shadow {
    transition: all 0.3s ease;
}

.hover-shadow:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Category Cards */
.category-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
    background-color: #ffffff !important;
    color: #212529 !important;
}

.category-card:hover {
    border-color: #007bff;
    box-shadow: 0 4px 15px rgba(0,123,255,0.1);
}

/* Article Cards */
.article-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: #ffffff !important;
    color: #212529 !important;
}

.article-card:hover {
    border-color: #28a745;
    box-shadow: 0 4px 15px rgba(40,167,69,0.1);
}

/* Search Styles */
.search-container {
    position: relative;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff !important;
    color: #212529 !important;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-suggestion {
    padding: 0.75rem;
    border-bottom: 1px solid #f1f1f1;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-suggestion:hover {
    background-color: #f8f9fa;
}

.search-suggestion:last-child {
    border-bottom: none;
}

/* Breadcrumb Styling */
.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #6c757d;
}

/* Article Content Styling */
.article-content {
    font-size: 1.1rem;
    line-height: 1.7;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.article-content h1 {
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
}

.article-content h2 {
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 0.3rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin: 1rem 0;
}

.article-content code {
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
}

.article-content pre {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    border-left: 4px solid #007bff;
    overflow-x: auto;
}

.article-content blockquote {
    border-left: 4px solid #007bff;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #6c757d;
    font-style: italic;
}

/* Video Embeds */
.video-embed {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    margin: 1rem 0;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* Feedback Section */
.feedback-section {
    background-color: #f8f9fa !important;
    color: #212529 !important;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.rating-stars {
    color: #ffc107;
}

.rating-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rating-input input[type="radio"] {
    margin: 0;
}

/* Helpful Buttons */
.helpful-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.helpful-btn {
    border: 1px solid #dee2e6;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.helpful-btn:hover {
    transform: translateY(-2px);
}

.helpful-btn.active.helpful-yes {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

.helpful-btn.active.helpful-no {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

/* Category Page Styling */
.category-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

/* Article List Styling */
.article-list-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    background-color: #ffffff !important;
    color: #212529 !important;
}

.article-list-item:hover {
    border-color: #007bff;
    box-shadow: 0 4px 15px rgba(0,123,255,0.1);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .display-5 {
        font-size: 2rem;
    }
    
    .category-card,
    .article-card {
        margin-bottom: 1rem;
    }
    
    .article-content {
        font-size: 1rem;
    }
}

/* Force Light Mode - Override Dark Mode and ensure accessibility */
html, body {
    background-color: #ffffff !important;
    color: #212529 !important;
}

.container, .container-fluid {
    background-color: transparent !important;
}

/* Ensure all cards and content areas use light theme */
.card, .card-body, .card-header, .card-footer {
    background-color: #ffffff !important;
    color: #212529 !important;
    border-color: #e9ecef !important;
}

/* Override any dark mode styles */
@media (prefers-color-scheme: dark) {
    body, html {
        background-color: #ffffff !important;
        color: #212529 !important;
    }
    
    .card {
        background-color: #ffffff !important;
        color: #212529 !important;
        border-color: #e9ecef !important;
    }
    
    .category-card,
    .article-card,
    .article-list-item {
        background-color: #ffffff !important;
        color: #212529 !important;
        border-color: #e9ecef !important;
    }
    
    .article-content code {
        background-color: #f8f9fa !important;
        color: #212529 !important;
    }
    
    .article-content pre {
        background-color: #f8f9fa !important;
        color: #212529 !important;
    }
    
    .search-suggestions {
        background-color: #ffffff !important;
        color: #212529 !important;
    }
    
    .feedback-section {
        background-color: #f8f9fa !important;
        color: #212529 !important;
    }
}

/* Additional Light Theme Enforcement */
p, div, span, h1, h2, h3, h4, h5, h6, li, td, th {
    color: #212529 !important;
}

/* Ensure links maintain good contrast */
a {
    color: #0d6efd !important;
}

a:hover {
    color: #0a58ca !important;
}

/* Text in cards should be dark */
.card-text, .card-title {
    color: #212529 !important;
}

/* Bootstrap override for text colors */
.text-muted {
    color: #6c757d !important;
}

/* Ensure breadcrumbs are readable */
.breadcrumb-item {
    color: #212529 !important;
}

.breadcrumb-item.active {
    color: #6c757d !important;
}

/* Specific overrides for help center elements */
.help-center-content * {
    color: #212529 !important;
}

/* Print Styles */
@media print {
    .navbar,
    .breadcrumb,
    .feedback-section,
    .helpful-buttons {
        display: none !important;
    }
    
    .article-content {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .article-content img {
        max-width: 100%;
        page-break-inside: avoid;
    }
}