/*
Theme Name: Tarimdestek Pro
Theme URI: https://example.com/minimal-tractor-pro
Description: Minimalist traktör özellikleri ve karşılaştırma teması
Version: 1.0.0
Author: tarimdestek.net
License: GPL v2 or later
Text Domain: minimal-tractor-pro
*/

/* Minimalist Traktör Pro Teması */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600;700&display=swap');

:root {
    --primary: #1a1a1a;
    --primary-light: #2d2d2d;
    --secondary: #ffffff;
    --accent: #ff6b35;
    --accent-light: #ff8c42;
    --accent-dark: #e55a2b;
    
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #eeeeee;
    --gray-300: #e0e0e0;
    --gray-400: #bdbdbd;
    --gray-500: #9e9e9e;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;
    
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-full: 9999px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--gray-50);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-fluid {
    width: 100%;
    padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--primary);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 600; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }
h5 { font-size: 1.125rem; font-weight: 600; }
h6 { font-size: 1rem; font-weight: 600; }

p {
    margin-bottom: 1rem;
    color: var(--gray-700);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-dark);
}

/* Header */
header {
    background: var(--secondary);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo:hover {
    color: var(--accent);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 1.2rem;
    font-weight: 700;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    transition: var(--transition);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a:hover,
nav a.active {
    color: var(--accent);
}

.cta-button {
    background: var(--accent);
    color: var(--secondary);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cta-button:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: var(--secondary);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    background: var(--secondary);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero .subtitle {
    font-size: 1.125rem;
    color: var(--gray-700);
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

/* Sections */
section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* Search Bar */
.search-bar {
    background: linear-gradient(135deg, var(--gray-50), var(--white));
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 3rem;
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.search-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
}

.search-form {
    display: flex;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.search-group {
    display: flex;
    gap: 0.75rem;
    flex: 1;
    max-width: 700px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 1rem 1.25rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary);
    background: var(--white);
    transition: var(--transition);
    outline: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.search-input::placeholder {
    color: var(--gray-500);
    font-weight: 400;
}

.search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.search-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: var(--secondary);
    border: none;
    border-radius: var(--radius-xl);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.search-btn:hover {
    background: linear-gradient(135deg, var(--accent-dark), var(--accent));
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
}

.search-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.search-btn svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
}

/* Search icon animation */
.search-btn:hover svg {
    transform: rotate(15deg);
    transition: transform 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .search-bar {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .search-group {
        flex-direction: column;
        max-width: none;
        gap: 1rem;
    }
    
    .search-input {
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }
    
    .search-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        justify-content: center;
    }
    
    .search-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* Sidebar Widgets */
.widget {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--gray-200);
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent);
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--gray-100);
    transition: var(--transition);
    width: 336px;
    height: 42.59px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li:hover {
    background: var(--gray-50);
    padding-left: 0.5rem;
}

.widget ul li a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
}

.widget ul li a:hover {
    color: var(--accent);
}

/* Main Content */
main {
    padding-top: 100px !important; /* Header yüksekliği kadar boşluk */
    min-height: 100vh;
}

/* Header Styles - EN GÜÇLÜ KURALLAR */
header {
    background: var(--white) !important;
    box-shadow: var(--shadow-sm) !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    width: 100% !important;
    transform: none !important;
    transition: none !important;
}

.header-content {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 1rem 0 !important;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.5rem;
    transition: var(--transition);
}

.logo:hover {
    color: var(--accent);
}

.logo-icon {
    font-size: 2rem;
    margin-right: 0.5rem;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
    align-items: center;
}

.main-nav ul li a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: var(--accent);
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
    width: 100%;
}

.cta-button {
    background: var(--accent);
    color: var(--secondary) !important;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.cta-button:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background: var(--gray-100);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 1rem;
    }
}

@media (max-width: 992px) {
    /* Tablet Layout */
    .tractor-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .col-lg-8, .col-lg-4 {
        width: 100%;
        margin-bottom: 2rem;
    }
    
    .widget ul li {
        width: 100%;
        height: auto;
        padding: 0.5rem 0;
    }
    
    .tractor-image {
        height: 180px;
    }
    
    .tractor-card {
        min-height: 500px;
    }
}

@media (max-width: 768px) {
    /* Mobile Landscape */
    .tractor-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1rem;
    }
    
    .search-bar {
        padding: 1.5rem;
    }
    
    .search-input {
        font-size: 1rem;
        padding: 0.75rem;
    }
    
    .search-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .tractor-card {
        min-height: 450px;
    }
    
    .tractor-content {
        padding: 1rem;
    }
    
    .tractor-title {
        font-size: 1.1rem;
    }
    
    .tractor-specs {
        font-size: 0.85rem;
    }
    
    .btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
    
    .widget {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .widget-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    /* Mobile Portrait */
    .container {
        padding: 0 0.75rem;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .search-bar {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-input {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .search-btn {
        width: 100%;
        justify-content: center;
    }
    
    .tractor-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .tractor-card {
        min-height: 400px;
    }
    
    .tractor-image {
        height: 160px;
    }
    
    .tractor-content {
        padding: 0.75rem;
    }
    
    .tractor-title {
        font-size: 1rem;
        line-height: 1.2;
    }
    
    .tractor-spacer {
        height: 1rem;
    }
    
    .tractor-specs {
        font-size: 0.8rem;
    }
    
    .spec-item {
        flex-direction: column;
        gap: 0.25rem;
        margin-bottom: 0.5rem;
    }
    
    .spec-label, .spec-value {
        width: 100%;
    }
    
    .tractor-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn {
        width: 100%;
        font-size: 0.8rem;
        padding: 0.75rem;
        justify-content: center;
    }
    
    .widget {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .widget-title {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .widget ul li {
        padding: 0.4rem 0;
    }
    
    .widget ul li a {
        font-size: 0.8rem;
    }
    
    .recent-comparison {
        padding: 0.5rem;
    }
    
    .comparison-title {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    /* Small Mobile */
    .page-header h1 {
        font-size: 1.3rem;
    }
    
    .tractor-card {
        min-height: 350px;
    }
    
    .tractor-image {
        height: 140px;
    }
    
    .tractor-content {
        padding: 0.5rem;
    }
    
    .tractor-title {
        font-size: 0.9rem;
    }
    
    .btn {
        font-size: 0.75rem;
        padding: 0.6rem;
    }
    
    .widget {
        padding: 0.5rem;
    }
    
    .widget-title {
        font-size: 0.9rem;
    }
}

/* Mobile Menu */
@media (max-width: 768px) {
    header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 9999 !important;
        width: 100% !important;
        transform: none !important;
        transition: none !important;
    }
    
    main {
        padding-top: 80px !important; /* Mobil header yüksekliği */
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow-md);
        z-index: 999;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 0.5rem;
    }
    
    .main-nav ul li {
        margin: 0;
        padding: 0;
        border-bottom: 1px solid var(--gray-100);
    }
    
    .main-nav ul li:last-child {
        border-bottom: none;
    }
    
    .main-nav ul li a {
        display: flex;
        align-items: center;
        padding: 1rem;
        font-size: 0.9rem;
        font-weight: 500;
        border-radius: var(--radius-md);
        margin: 0.25rem 0;
        transition: var(--transition);
    }
    
    .main-nav ul li a:hover {
        background: var(--gray-50);
        color: var(--accent);
    }
    
    .main-nav ul li a.active {
        background: var(--accent);
        color: var(--secondary);
    }
    
    .main-nav ul li a::before {
        margin-right: 0.75rem;
        font-size: 1.1rem;
        width: 20px;
        text-align: center;
    }
    
    .main-nav ul li:nth-child(1) a::before { content: "🏠"; }
    .main-nav ul li:nth-child(2) a::before { content: "🚜"; }
    .main-nav ul li:nth-child(3) a::before { content: "⚖️"; }
    .main-nav ul li:nth-child(4) a::before { content: "ℹ️"; }
    .main-nav ul li:nth-child(5) a::before { content: "⚙️"; }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .comparison-bar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .comparison-info {
        text-align: center;
    }
    
    .comparison-actions {
        width: 100%;
        justify-content: center;
    }
    
    .header-content {
        padding: 0.75rem 0;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .logo-icon {
        font-size: 1.5rem;
    }
}

/* Touch Devices */
@media (hover: none) and (pointer: coarse) {
    .tractor-card:hover {
        transform: none;
    }
    
    .widget ul li:hover {
        background: none;
        padding-left: 0;
    }
    
    .recent-comparison:hover {
        transform: none;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .tractor-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --primary: #1a1a1a;
        --secondary: #ffffff;
        --accent: #ff6b35;
        --accent-dark: #e55a2b;
        --gray-50: #2a2a2a;
        --gray-100: #3a3a3a;
        --gray-200: #4a4a4a;
        --gray-300: #5a5a5a;
        --gray-400: #6a6a6a;
        --gray-500: #8a8a8a;
        --gray-600: #9a9a9a;
        --gray-700: #bababa;
        --gray-800: #dadada;
        --gray-900: #fafafa;
        --white: #1a1a1a;
        --black: #ffffff;
    }
}

/* Print Styles */
@media print {
    .main-nav,
    .search-bar,
    .comparison-bar,
    .widget,
    .tractor-actions,
    .pagination {
        display: none !important;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .tractor-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .tractor-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Comparison Page Styles */
.comparison-container {
    margin-top: 2rem;
}

.comparison-table-wrapper {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.comparison-table th,
.comparison-table td {
    border: 1px solid var(--gray-200);
    padding: 1rem;
    text-align: left;
    vertical-align: top;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--primary);
    width: 200px;
}

.tractor-column {
    text-align: center;
    padding: 1.5rem 1rem;
    min-width: 150px;
}

.tractor-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.tractor-header-image {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
}

.tractor-icon {
    font-size: 3rem;
    color: var(--gray-400);
    margin-bottom: 0.5rem;
}

.tractor-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--primary);
    line-height: 1.3;
}

.tractor-category {
    font-size: 0.85rem;
    color: var(--gray-500);
    background: var(--gray-100);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
}

.section-row {
    background: var(--accent);
}

.section-header {
    color: var(--secondary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    padding: 1rem !important;
}

.spec-value {
    font-weight: 500;
    color: var(--primary);
}

.spec-empty {
    color: var(--gray-400);
    font-style: italic;
}

/* Mobile Comparison Styles */
@media (max-width: 768px) {
    .comparison-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .comparison-table {
        min-width: 600px;
    }
    
    .tractor-column {
        min-width: 120px;
        padding: 1rem 0.5rem;
    }
    
    .tractor-header-image {
        width: 60px;
        height: 45px;
    }
    
    .tractor-header h4 {
        font-size: 0.9rem;
    }
    
    .tractor-category {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
    }
    
    .comparison-table th:first-child,
    .comparison-table td:first-child {
        width: 150px;
        font-size: 0.85rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .section-header {
        font-size: 0.8rem;
        padding: 0.75rem 0.5rem !important;
    }
}

@media (max-width: 576px) {
    .comparison-table {
        min-width: 500px;
    }
    
    .tractor-column {
        min-width: 100px;
        padding: 0.75rem 0.25rem;
    }
    
    .tractor-header-image {
        width: 50px;
        height: 40px;
    }
    
    .tractor-header h4 {
        font-size: 0.8rem;
        line-height: 1.2;
    }
    
    .tractor-icon {
        font-size: 2rem;
    }
    
    .comparison-table th:first-child,
    .comparison-table td:first-child {
        width: 120px;
        font-size: 0.8rem;
        padding: 0.5rem 0.25rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem 0.25rem;
        font-size: 0.8rem;
    }
    
    .section-header {
        font-size: 0.75rem;
        padding: 0.5rem 0.25rem !important;
    }
    
    .spec-value {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .comparison-table {
        min-width: 400px;
    }
    
    .tractor-column {
        min-width: 80px;
        padding: 0.5rem 0.25rem;
    }
    
    .tractor-header-image {
        width: 40px;
        height: 30px;
    }
    
    .tractor-header h4 {
        font-size: 0.7rem;
    }
    
    .tractor-category {
        font-size: 0.65rem;
        padding: 0.1rem 0.3rem;
    }
    
    .comparison-table th:first-child,
    .comparison-table td:first-child {
        width: 100px;
        font-size: 0.75rem;
        padding: 0.4rem 0.2rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.4rem 0.2rem;
        font-size: 0.75rem;
    }
    
    .section-header {
        font-size: 0.7rem;
        padding: 0.4rem 0.2rem !important;
    }
    
    .spec-value {
        font-size: 0.75rem;
    }
}

/* Recent Comparisons Widget */
.recent-comparisons-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-comparison {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.recent-comparison:hover {
    background: var(--gray-100);
    border-color: var(--accent);
    transform: translateY(-1px);
}

.comparison-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.comparison-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.comparison-link:hover {
    text-decoration: none;
}

.comparison-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.3;
}

.comparison-date {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* Filter Bar */
.filter-bar {
    background: var(--secondary);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-sm);
}

.filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-700);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.filter-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    background: var(--secondary);
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.filter-actions {
    display: flex;
    gap: 0.75rem;
    align-items: end;
}

/* Tractor Grid */
.tractor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.tractor-card {
    background: var(--white);
    box-shadow: var(--shadow-md);
    overflow: visible;
    transition: var(--transition);
    height: auto;
    min-height: 600px;
    display: flex;
    flex-direction: column;
}

.tractor-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.tractor-image {
    background: var(--gray-100);
    position: relative;
    overflow: hidden;
    height: 200px;
    flex-shrink: 0;
    width: 100%;
}

.tractor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
    max-width: none !important;
    max-height: none !important;
    min-width: 0 !important;
    min-height: 0 !important;
}

.tractor-image span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 3rem;
    color: var(--gray-400);
    position: relative;
    z-index: 2;
}

.tractor-image img.img-fluid {
    max-width: 100%;
    height: auto;
}

.tractor-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent);
    color: var(--secondary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tractor-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.tractor-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.tractor-title a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.tractor-title a:hover {
    color: var(--accent-dark);
}

.tractor-spacer {
    height: 1.5rem;
    flex-shrink: 0;
}

.tractor-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tractor-brand {
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

.tractor-year {
    color: var(--gray-500);
    font-size: 0.875rem;
    white-space: nowrap;
}

.tractor-specs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex: 1;
    overflow: visible;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.8rem;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    min-height: 44px;
    transition: all 0.2s ease;
    overflow: visible;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.spec-item:hover {
    background: var(--gray-100);
    border-color: var(--gray-300);
}

.spec-label {
    font-size: 0.75rem;
    color: var(--gray-600);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex: 0 0 auto;
    margin-right: 0.5rem;
    white-space: nowrap;
    overflow: visible;
}

.spec-value {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 600;
    flex: 1;
    text-align: right;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow: visible;
    line-height: 1.2;
}

.tractor-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: var(--secondary);
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.btn-secondary:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
    color: var(--primary);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--secondary);
}

.btn-success {
    background: var(--gray-800);
    color: var(--secondary);
}

.btn-success:hover {
    background: var(--primary);
}

/* Compare Bar */
.compare-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--secondary);
    border-top: 1px solid var(--gray-200);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.compare-bar.active {
    transform: translateY(0);
}

.compare-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.compare-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.compare-count {
    background: var(--accent);
    color: var(--secondary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.875rem;
    min-width: 2.5rem;
    text-align: center;
}

/* Tractor Specs Form */
.tractor-specs-form {
    background: var(--gray-50);
    padding: 2rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
}

.spec-row {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    background: var(--secondary);
    padding: 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.spec-row:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.spec-label {
    flex: 0 0 250px;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.875rem;
    margin-right: 1rem;
}

.spec-input {
    flex: 1;
}

.spec-input input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    transition: var(--transition);
}

.spec-input input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.spec-unit {
    flex: 0 0 80px;
    text-align: right;
    color: var(--gray-600);
    font-size: 0.75rem;
    margin-left: 1rem;
    font-weight: 500;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--secondary);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    margin-bottom: 3rem;
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--gray-400);
    margin-bottom: 2rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
}

.empty-state p {
    color: var(--gray-600);
    margin-bottom: 2rem;
}

/* Footer */
footer {
    background: var(--primary);
    color: var(--gray-400);
    text-align: center;
    padding: 3rem 0;
    margin-top: 6rem;
    border-top: 1px solid var(--gray-200);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .header-content {
        padding: 1rem 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 70px;
        left: -100%;
        right: 0;
        background: var(--secondary);
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
        padding: 2rem;
    }
    
    nav.active {
        left: 0;
    }
    
    nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .filter-form {
        grid-template-columns: 1fr;
    }
    
    .filter-actions {
        justify-content: center;
    }
    
    .tractor-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tractor-specs {
        grid-template-columns: 1fr;
    }
    
    .compare-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .spec-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .spec-label {
        flex: 1;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .spec-input {
        width: 100%;
    }
    
    .spec-unit {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 4rem 0;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .tractor-content {
        padding: 1.5rem;
    }
    
    .tractor-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.d-flex { display: flex; }
.d-block { display: block; }
.d-none { display: none; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.5rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.5rem; }
