/*
Theme Name: KPL Live
Theme URI: https://kpllive.com
Author: KPL Live Team
Author URI: https://kpllive.com
Description: A modern WordPress theme for KPL Live - Real-World Mileage, Not Just Company Claims. Features dark/light mode, Tailwind CSS styling, and vehicle mileage data presentation.
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kpl-live
Tags: custom-theme, responsive, dark-mode, automotive, mileage
*/

/* WordPress Required Styles */
.alignleft {
    float: left;
    margin-right: 1.5em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
}

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    margin-bottom: 1.5em;
    max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption .wp-caption-text {
    margin: 0.8075em 0;
}

.wp-caption-text {
    text-align: center;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

.gallery-caption {
    display: block;
}

.bypostauthor {
    display: block;
}

/* Vehicle Mileage Block Styles */
.wp-block-kpl-live-vehicle-mileage {
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.kpl-mileage-block-header {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    padding: 16px;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kpl-mileage-block-header strong {
    font-size: 16px;
    font-weight: 600;
}

.kpl-mileage-icon {
    font-size: 20px;
}

.kpl-mileage-block-content {
    padding: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.kpl-mileage-field {
    margin-bottom: 20px;
}

.kpl-mileage-field:last-child {
    margin-bottom: 0;
}

.kpl-mileage-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.kpl-mileage-bar-container {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.kpl-mileage-bar {
    height: 100%;
    background: linear-gradient(90deg, #f97316 0%, #ea580c 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.kpl-mileage-bar-combined {
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
}

.kpl-mileage-value {
    display: flex;
    justify-content: flex-end;
    font-size: 12px;
    color: #64748b;
}

.kpl-value {
    font-size: 18px;
    font-weight: bold;
    color: #f97316;
}

.kpl-value-combined {
    color: #22c55e;
}

/* Dark mode support for mileage block */
.dark .kpl-mileage-block-content {
    background: #1e293b;
    border-color: #334155;
}

.dark .kpl-mileage-field label {
    color: #e2e8f0;
}

.dark .kpl-mileage-bar-container {
    background: #334155;
}

/* WordPress Navigation */
.main-navigation {
    clear: both;
    display: block;
    float: left;
    width: 100%;
}

.main-navigation ul {
    display: none;
    list-style: none;
    margin: 0;
    padding-left: 0;
}

.main-navigation ul ul {
    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
    float: left;
    position: absolute;
    top: 100%;
    left: -999em;
    z-index: 99999;
}

.main-navigation ul ul ul {
    left: -999em;
    top: 0;
}

.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
    left: 100%;
}

.main-navigation ul ul a {
    width: 200px;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
    left: auto;
}

.main-navigation li {
    float: left;
    position: relative;
}

.main-navigation a {
    display: block;
    text-decoration: none;
}

/* Small menu. */
.menu-toggle,
.main-navigation.toggled ul {
    display: block;
}

@media screen and (min-width: 37.5em) {
    .menu-toggle {
        display: none;
    }
    .main-navigation ul {
        display: block;
    }
}

.site-main .comment-navigation,
.site-main .posts-navigation,
.site-main .post-navigation {
    margin: 0 0 1.5em;
    overflow: hidden;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
    float: left;
    width: 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
    float: right;
    text-align: right;
    width: 50%;
}

/* Custom Theme Styles */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar - Dark */
.dark ::-webkit-scrollbar {
    width: 8px;
}

.dark ::-webkit-scrollbar-track {
    background: #0f172a;
}

.dark ::-webkit-scrollbar-thumb {
    background: #f97316;
    border-radius: 4px;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: #ea580c;
}

/* Custom scrollbar - Light */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #f97316;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ea580c;
}

/* Hero gradient animation */
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-gradient-dark {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

.hero-gradient-light {
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

/* Card hover effects */
.feature-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(249, 115, 22, 0.2);
}

/* Button pulse animation */
@keyframes pulse-orange {
    0%, 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(249, 115, 22, 0); }
}

.btn-pulse {
    animation: pulse-orange 2s infinite;
}

/* Floating animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.float-animation {
    animation: float 4s ease-in-out infinite;
}

/* Search bar focus effect */
.search-bar:focus-within {
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.3);
}

/* Mobile menu transition */
.mobile-menu {
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

/* Review card styling - Dark */
.dark .review-card {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
}

/* Review card styling - Light */
.review-card {
    background: linear-gradient(145deg, #ffffff 0%, #f1f5f9 100%);
}

/* Star rating */
.star-filled {
    color: #f97316;
}

/* Image overlay gradient */
.image-overlay {
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, transparent 50%);
}

/* Calculator input styling */
.calc-input {
    transition: all 0.2s;
}

.calc-input:focus {
    border-color: #f97316;
    outline: none;
}

/* Theme toggle animation */
.theme-toggle {
    transition: transform 0.3s ease;
}

.theme-toggle:hover {
    transform: rotate(15deg);
}

/* Light mode specific styles */
.light-mode-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f8fafc 100%);
}

/* WordPress Content Styles */
.entry-content p {
    margin-bottom: 1.5em;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin-top: 1.5em;
    margin-bottom: 0.75em;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.entry-content blockquote {
    border-left: 4px solid #f97316;
    padding-left: 1em;
    margin-left: 0;
    font-style: italic;
}

.entry-content img {
    max-width: 100%;
    height: auto;
}

/* Post Navigation */
.post-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.dark .post-navigation {
    border-top-color: #334155;
}

/* Comments */
.comments-area {
    margin-top: 3rem;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    margin-bottom: 2rem;
}

.comment-meta {
    margin-bottom: 1rem;
}

.comment-author .avatar {
    border-radius: 50%;
    margin-right: 0.5rem;
}

/* Widgets */
.widget {
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget li {
    margin-bottom: 0.5rem;
}

/* Pagination */
.pagination {
    margin-top: 3rem;
    text-align: center;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 0.5rem;
    background-color: #f1f5f9;
    color: #0f172a;
    text-decoration: none;
}

.dark .pagination a,
.dark .pagination span {
    background-color: #1e293b;
    color: #f8fafc;
}

.pagination a:hover {
    background-color: #f97316;
    color: white;
}

.pagination .current {
    background-color: #f97316;
    color: white;
}
