/* Traffic4SEO Custom Styles for LaRecipe Documentation */

/* Primary Color - Orange #f97316 */

/* Navigation Menu Links (Download, Docs) */
.nav-menu-link {
    color: #2d3748 !important;
    text-decoration: none !important;
}

.nav-menu-link:hover {
    color: #f97316 !important;
    text-decoration: none !important;
}

.nav-menu-link:hover .nav-underline {
    transform: scaleX(1) !important;
}

.dark .nav-menu-link {
    color: #e5e7eb !important;
}

.dark .nav-menu-link:hover {
    color: #f97316 !important;
}

/* Hide navigation menu on mobile */
@media (max-width: 768px) {
    .nav-menu-link {
        display: none !important;
    }
}

/* Links */
a {
    color: #f97316 !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #ea580c !important; /* Darker orange on hover */
    text-decoration: underline;
}

/* Sidebar Links */
.sidebar a {
    color: #374151 !important; /* Gray for sidebar in light mode */
}

.dark .sidebar a {
    color: #d1d5db !important; /* Light gray for sidebar in dark mode */
}

.sidebar a.active,
.sidebar a:hover {
    color: #f97316 !important; /* Orange for active/hover */
}

/* Navigation Links */
nav a {
    color: #374151 !important;
}

nav a:hover,
nav a.active {
    color: #f97316 !important;
}

.dark nav a {
    color: #d1d5db !important;
}

.dark nav a:hover,
.dark nav a.active {
    color: #f97316 !important;
}

/* Documentation Content Links */
.documentation-content a,
.markdown-body a,
article a,
.content a {
    color: #f97316 !important;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.documentation-content a:hover,
.markdown-body a:hover,
article a:hover,
.content a:hover {
    color: #ea580c !important;
    border-bottom-color: #ea580c;
}

/* Buttons */
.btn-primary,
.larecipe-button-primary,
button.btn-primary,
a.btn-primary {
    background-color: #f97316 !important;
    border-color: #f97316 !important;
    color: white !important;
}

.btn-primary:hover,
.larecipe-button-primary:hover,
button.btn-primary:hover,
a.btn-primary:hover {
    background-color: #ea580c !important;
    border-color: #ea580c !important;
    color: white !important;
}

/* Links inside buttons should be white */
.btn-primary a,
.larecipe-button-primary a,
button a,
.larecipe-button a {
    color: white !important;
    text-decoration: none !important;
}

.btn-primary a:hover,
.larecipe-button-primary a:hover,
button a:hover,
.larecipe-button a:hover {
    color: white !important;
    text-decoration: none !important;
}

/* Badges */
.badge-primary,
.larecipe-badge-primary {
    background-color: #f97316 !important;
    color: white !important;
}

/* Alerts with primary color */
.alert-primary {
    background-color: #fff7ed !important; /* Light orange background */
    border-color: #f97316 !important;
    color: #9a3412 !important; /* Dark orange text */
}

.dark .alert-primary {
    background-color: rgba(249, 115, 22, 0.1) !important;
    border-color: #f97316 !important;
    color: #fb923c !important;
}

/* Progress Bar */
.progress-bar,
.larecipe-progress {
    background-color: #f97316 !important;
}

/* Code blocks */
code {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 2px 6px;
    border-radius: 4px;
    color: #ef4444;
    font-size: 0.9em;
}

.dark code {
    background-color: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
    color: #fca5a5;
}

pre code {
    background-color: transparent;
    border: none;
    padding: 0;
    color: inherit;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: #111827;
}

.dark h1,
.dark h2,
.dark h3,
.dark h4,
.dark h5,
.dark h6 {
    color: #f9fafb;
}

/* Anchor links in headings */
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
    color: inherit !important;
}

h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover {
    color: #f97316 !important;
}

/* Tables */
table {
    border-collapse: collapse;
    width: 100%;
    margin: 1rem 0;
}

table th {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 0.75rem;
    font-weight: 600;
    text-align: left;
}

.dark table th {
    background-color: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

table td {
    border: 1px solid #e5e7eb;
    padding: 0.75rem;
}

.dark table td {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Search Box */
.search-box,
.search-input {
    border-color: #e5e7eb !important;
    background-color: white !important;
}

.dark .search-box,
.dark .search-input {
    border-color: rgba(255, 255, 255, 0.1) !important;
    background-color: rgba(0, 0, 0, 0.3) !important;
    color: #f9fafb !important;
}

.search-box:focus,
.search-input:focus {
    border-color: #f97316 !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1) !important;
}

/* Blockquotes */
blockquote {
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
}


.dark blockquote {
    color: #9ca3af;
}

/* Horizontal Rule */
hr {
    border-color: #e5e7eb;
    margin: 2rem 0;
}

.dark hr {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Lists */
ul, ol {
    padding-left: 1.5rem;
}

li {
    margin: 0.5rem 0;
}

/* Strong/Bold with primary color accent */
strong {
    font-weight: 600;
    color: inherit;
}

/* LaRecipe custom components */
.larecipe-alert {
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.larecipe-button {
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.dark ::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #f97316;
}

.dark ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: #f97316;
}

/* Selection */
::selection {
    background-color: rgba(249, 115, 22, 0.2);
    color: inherit;
}

/* Focus outline */
*:focus {
    outline-color: #f97316 !important;
}

/* Dark mode text colors */
.dark {
    color: #e5e7eb;
}

.dark .text-muted {
    color: #9ca3af !important;
}

/* Checkbox Styling */
/* Hide default checkbox */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    vertical-align: middle;
    margin-right: 8px;
}

input[type="checkbox"]:hover {
    border-color: #10b981;
}

/* Checked state - Green background with white checkmark */
input[type="checkbox"]:checked {
    background-color: #10b981; /* Green background */
    border-color: #10b981;
}

/* White checkmark */
input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Dark mode */
.dark input[type="checkbox"] {
    background-color: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.dark input[type="checkbox"]:hover {
    border-color: #10b981;
}

.dark input[type="checkbox"]:checked {
    background-color: #10b981;
    border-color: #10b981;
}

/* Back to Top Button */
#backtotop > a::after {
    color: white !important;
}

.toolbar-item > a {
    color: white !important;
}
