/*!
Theme Name: Marketplace for Cars
Theme URI: https://onegycars.com/theme
Author: OneGyShop
Author URI: https://onegycars.com
Description: A modern, dark-focused WordPress theme for automotive marketplaces with integrated vehicle listings, dealer profiles, and advanced search functionality.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: marketplace-for-cars
Domain Path: /languages

This theme is designed to work seamlessly with the OneGyCars Marketplace plugin.
*/

:root {
  /* Primary Orange Theme (Plugin Colors) */
  --primary-color: #FC490B;
  --primary-dark: #E63A00;
  --primary-light: #FF7A3D;
  
  /* Dark & Neutral */
  --dark-bg: #0D0E13;
  --text-dark: #0D0E13;
  --text-light: #ffffff;
  --text-muted: #999999;
  --bg-light: #ffffff;
  --bg-lighter: #f8f9fa;
  --bg-medium: #f1f3f5;
  --border-color: #e8e8e8;
  
  /* Accent Colors */
  --accent: #20c997;
  --accent-light: #51cf66;
  --muted: #6c757d;
  --muted-light: #9e9e9e;
  --warning: #ffc107;
  --danger: #dc3545;
  --success: #28a745;
  --info: #0dcaf0;
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-lighter);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.dark-mode {
  --text-dark: #ffffff;
  --text-light: #0D0E13;
  --bg-light: #1f2937;
  --bg-lighter: #0D0E13;
  --bg-medium: #1f2937;
  --border-color: #374151;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 0.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.3px;
  color: #0D0E13;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.75rem;
  margin-bottom: 0.8rem;
}

h4 {
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}

p {
  margin-bottom: 1rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  font-weight: 600;
  text-align: center;
  border-radius: 6px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: white;
  text-decoration: none;
}

.btn-outline {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.125rem;
}

/* Header & Navigation */
.site-header {
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.site-logo a {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
  text-decoration: none;
}

.site-logo a:hover {
  color: var(--primary-dark);
}

.main-navigation {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.main-navigation a {
  color: var(--text-dark);
  font-weight: 500;
  transition: var(--transition);
}

.main-navigation a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.main-navigation .current-menu-item > a {
  color: var(--primary-color);
}

.header-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.dark-mode-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
  transition: var(--transition);
}

.dark-mode-toggle:hover {
  color: var(--primary-color);
}

/* Main Content */
.site-main {
  min-height: calc(100vh - 200px);
}

.page-section {
  padding: 4rem 0;
  background-color: var(--bg-dark);
}

.page-section.light {
  background-color: var(--bg-light);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #FC490B 0%, #E63A00 100%);
  color: white;
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

/* Sidebar */
.sidebar {
  background-color: var(--bg-light);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.widget {
  margin-bottom: 2rem;
}

.widget:last-child {
  margin-bottom: 0;
}

.widget-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
}

/* Footer */
.site-footer {
  background-color: var(--bg-lighter, #0a0e27);
  color: var(--text-dark);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-widget {
  padding: 0 1rem;
}

.footer-widget h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.footer-widget ul {
  list-style: none;
}

.footer-widget li {
  margin-bottom: 0.5rem;
}

.footer-widget a {
  color: var(--text-dark);
  transition: var(--transition);
}

.footer-widget a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  text-align: center;
  color: var(--muted);
}

/* Forms */
input[type='text'],
input[type='email'],
input[type='number'],
input[type='search'],
textarea,
select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  background-color: var(--bg-dark);
  color: var(--text-dark);
  transition: var(--transition);
  margin-bottom: 1rem;
}

input[type='text']:focus,
input[type='email']:focus,
input[type='number']:focus,
input[type='search']:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .main-navigation {
    flex-direction: column;
    gap: 0.5rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero {
    padding: 3rem 0;
  }

  .hero h1 {
    font-size: 2rem;
  }
}

/* ===== BRAND LOGOS CAROUSEL ===== */
.ogc-brands-section {
  padding: 60px 20px;
  background: linear-gradient(135deg, rgba(252, 73, 11, 0.03), rgba(214, 61, 9, 0.03));
}

.ogc-brands-header {
  text-align: center;
  margin-bottom: 50px;
}

.ogc-brands-title {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.ogc-brands-subtitle {
  font-size: 16px;
  color: #666666;
  margin: 0;
  font-weight: 400;
}

.ogc-logos-carousel {
  position: relative;
  overflow: hidden;
  margin: 40px 0;
}

.ogc-carousel-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(252, 73, 11, 0.05), rgba(214, 61, 9, 0.05));
  border-radius: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.ogc-logo-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 8px;
  padding: 15px;
  min-width: 150px;
  height: 120px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.ogc-logo-item:hover {
  box-shadow: 0 4px 16px rgba(252, 73, 11, 0.2);
  transform: translateY(-4px);
}

.ogc-logo-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Hide scrollbar for a cleaner look */
.ogc-carousel-wrapper::-webkit-scrollbar {
  height: 6px;
}

.ogc-carousel-wrapper::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 3px;
}

.ogc-carousel-wrapper::-webkit-scrollbar-thumb {
  background: rgba(252, 73, 11, 0.3);
  border-radius: 3px;
}

.ogc-carousel-wrapper::-webkit-scrollbar-thumb:hover {
  background: rgba(252, 73, 11, 0.6);
}

@media (max-width: 768px) {
  .ogc-brands-section {
    padding: 40px 15px;
  }

  .ogc-brands-title {
    font-size: 24px;
  }

  .ogc-brands-subtitle {
    font-size: 14px;
  }

  .ogc-carousel-wrapper {
    gap: 12px;
    padding: 15px;
  }

  .ogc-logo-item {
    min-width: 120px;
    height: 100px;
    padding: 10px;
  }
}
