﻿/* ==========================================================================
   FeedKist Universal Theme - Brand Orange (#ff6700)
   Universal override for all Bootstrap Primary elements, forms, and controls
   ========================================================================== */

:root {
    --primary: #ff6700;
    --orange: #ff6700;
    --brand-orange: #ff6700;
    --brand-orange-hover: #e55c00;
}

/* 0. Universal Text Selection Highlight - Brand Orange (#ff6700) */
::selection {
    background-color: #ff6700 !important;
    color: #ffffff !important;
}

::-moz-selection {
    background-color: #ff6700 !important;
    color: #ffffff !important;
}

input::selection,
textarea::selection {
    background-color: #ff6700 !important;
    color: #ffffff !important;
}

input::-moz-selection,
textarea::-moz-selection {
    background-color: #ff6700 !important;
    color: #ffffff !important;
}

/* Native checkboxes, radios, and range inputs */
input[type="checkbox"],
input[type="radio"],
input[type="range"] {
    accent-color: #ff6700 !important;
}

/* 1. Universal Primary Color Utilities */
.text-primary,
a.text-primary {
    color: #ff6700 !important;
}

.bg-primary {
    background-color: #ff6700 !important;
    color: #ffffff !important;
}

.border-primary {
    border-color: #ff6700 !important;
}

.badge-primary {
    background-color: #ff6700 !important;
    color: #ffffff !important;
}

/* 2. Universal Primary Buttons */
.btn-primary {
    background-color: #ff6700 !important;
    border-color: #ff6700 !important;
    color: #ffffff !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.open > .dropdown-toggle.btn-primary {
    background-color: #e55c00 !important;
    border-color: #e55c00 !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 103, 0, 0.25) !important;
}

.btn-outline-primary {
    color: #ff6700 !important;
    border-color: #ff6700 !important;
    background-color: transparent !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active {
    background-color: #ff6700 !important;
    border-color: #ff6700 !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 103, 0, 0.2) !important;
}

/* 3. Bootstrap 4 Custom Checkbox & Radio - Brand Orange */
.custom-control-input:checked ~ .custom-control-label::before {
    background-color: #ff6700 !important;
    border-color: #ff6700 !important;
}

.custom-checkbox .custom-control-input:checked ~ .custom-control-label::before {
    background-color: #ff6700 !important;
    border-color: #ff6700 !important;
}

.custom-control-input:focus ~ .custom-control-label::before {
    box-shadow: 0 0 0 0.2rem rgba(255, 103, 0, 0.25) !important;
}

.custom-control-input:active ~ .custom-control-label::before {
    background-color: #ffa366 !important;
    border-color: #ffa366 !important;
}

/* 4. Form Controls & Focus Ring */
.form-control:focus {
    border-color: #ff6700 !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 103, 0, 0.15) !important;
}

/* 5. Pagination active item */
.page-item.active .page-link {
    background-color: #ff6700 !important;
    border-color: #ff6700 !important;
    color: #ffffff !important;
}

.page-link {
    color: #ff6700 !important;
}

.page-link:hover {
    color: #e55c00 !important;
}

/* 6. Nav Pills Global Theme - Brand Orange (#ff6700) */
.nav-pills .nav-link {
    border-radius: 20px;
    font-size: 0.88rem;
    padding: 6px 18px;
    color: #495057;
    transition: all 0.2s ease-in-out;
}

.nav-pills .nav-link:hover {
    color: #ff6700;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    background-color: #ff6700 !important;
    border-color: #ff6700 !important;
    color: #ffffff !important;
}

.nav-pills .nav-link.active .badge {
    background-color: #ffffff !important;
    color: #ff6700 !important;
}

/* 6. Brand URL & Legacy Classes */
.brand-url {
    color: #ff6700 !important;
}

.button-brand-fill {
    background-color: #ff6700;
    color: #ffffff;
}

.dropdown-menu a.button-brand-fill {
    background-color: #ff6700 !important;
    color: #ffffff !important;
}

a.button-brand-fill:hover {
    background-color: #ffffff !important;
    color: #ff6700 !important;
    border-color: #ff6700;
}

a.button-brand-border {
    background-color: #ffffff !important;
    color: #ff6700 !important;
    border-color: #ff6700;
}

a.button-brand-border:hover {
    background-color: #ff6700 !important;
    color: #ffffff !important;
    border-color: #ff6700;
}

/* 7. General Styles */
.profile-image {
    max-width: 150px;
    border-radius: .25rem;
}

.embed-responsive .card-img-top {
    object-fit: cover;
}

.navbar-toggler,
.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler-icon:focus {
    outline: none;
    border: none !important;
}

.menu-link {
    color: #000000 !important;
}

.menu-link:hover {
    color: #ff6700 !important;
}

.select-items {
    outline: none;
    color: #ff6700 !important;
}

.select-items:focus {
    border-color: #ff6700 !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 103, 0, 0.15) !important;
}

.crop-title {
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    min-height: 2.6rem;
    color: #1a1a1a;
}

.crop-title:hover {
    color: #ff6700 !important;
}

/* Edge-to-edge responsive card grid for wide monitors (like YouTube) */
@media (min-width: 1400px) {
    .col-xl-custom {
        flex: 0 0 20%;
        max-width: 20%;
    }
}
@media (min-width: 1920px) {
    .col-xl-custom {
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
    }
}

.crop-description {
    -webkit-line-clamp: 7;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.card-img-top-single-item {
    max-width: auto;
    max-height: 60vh;
    object-fit: contain;
}

/* Modern FeedKist Brand Buttons */
.btn-brand-outline {
    background-color: #ffffff;
    color: #ff6700 !important;
    border: 1px solid #ff6700;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 13px;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease-in-out;
}

.btn-brand-outline:hover, .btn-brand-outline:focus {
    background-color: #ff6700 !important;
    color: #ffffff !important;
    border-color: #ff6700;
    box-shadow: 0 2px 6px rgba(255, 103, 0, 0.25);
}

.btn-brand-fill {
    background-color: #ff6700 !important;
    color: #ffffff !important;
    border: 1px solid #ff6700;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 13px;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 6px rgba(255, 103, 0, 0.2);
}

.btn-brand-fill:hover, .btn-brand-fill:focus {
    background-color: #e55c00 !important;
    color: #ffffff !important;
    border-color: #e55c00;
}

/* YouTube-style Borderless Action Buttons */
.btn-icon-action {
    background: transparent;
    border: none;
    color: #606060;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    line-height: 1;
    transition: all 0.2s ease-in-out;
    padding: 0;
    cursor: pointer;
    text-decoration: none !important;
}

.btn-icon-action:hover {
    background-color: rgba(0, 0, 0, 0.06);
    color: #ff6700;
}

.btn-icon-action:focus, .btn-icon-action:active {
    outline: none !important;
    box-shadow: none !important;
}

.btn-icon-action.active {
    color: #ff6700 !important;
}

.btn-icon-action.active:hover {
    background-color: #fff4ed;
}

.btn-icon-action i {
    pointer-events: none;
}

/* ==========================================================================
   FeedKist Offcanvas Side Drawer (YouTube Style)
   ========================================================================== */
.feedkist-offcanvas-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 1045;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feedkist-offcanvas-backdrop.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.feedkist-offcanvas {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: #ffffff;
    z-index: 1050;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 25px rgba(0, 0, 0, 0.15);
}

.feedkist-offcanvas.show {
    transform: translateX(0);
    visibility: visible;
}

.feedkist-offcanvas-header {
    flex-shrink: 0;
    background-color: #ffffff;
}

.feedkist-offcanvas-body {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.feedkist-offcanvas .menu-link {
    transition: all 0.15s ease-in-out;
    color: #333333;
    font-size: 0.92rem;
    font-weight: 600;
}

.feedkist-offcanvas .menu-link:hover {
    background-color: #fff4ed;
    color: #ff6700 !important;
}

.feedkist-offcanvas .menu-link:hover i {
    color: #ff6700 !important;
}

/* Prevent body scrolling when drawer is open */
body.offcanvas-open {
    overflow: hidden !important;
}
