/*
Theme Name: AutoInkoop24
Theme URI: https://autoinkoop24.be
Author: AutoInkoop24
Version: 1.0
Description: Custom theme for AutoInkoop24 - Professional auto dealer website
License: GNU General Public License v2 or later
*/

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary-color: #1c75bc;
    --black: #000000;
    --white: #ffffff;
    --gray: #666666;
    --light-gray: #f5f5f5;
    --dark-blue: #0d4d7d;
}

body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; line-height: 1.6; color: var(--black); background: var(--white); }
a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
a:hover { color: var(--primary-color); }
img { max-width: 100%; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: var(--dark-blue); padding: 15px 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(28, 117, 188, 0.2); }
.header-content { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 50px; }
.main-nav ul { list-style: none; display: flex; gap: 30px; }
.main-nav a { color: var(--white); font-weight: 500; transition: color 0.3s; }
.main-nav a:hover, .main-nav a.active { color:  #0291ff }
.menu-toggle { display: none; background: none; border: none; color: var(--white); font-size: 24px; cursor: pointer; }

/* Hero */
.hero { background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('images/hero-bg.jpg') center/cover no-repeat; min-height: 500px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white); }
.hero-content { position: relative; z-index: 1; padding: 20px; }
.hero h1 { font-size: 48px; margin-bottom: 20px; }
.hero p { font-size: 20px; margin-bottom: 20px; }

/* Buttons */
.btn { display: inline-block; padding: 12px 30px; border-radius: 25px; font-weight: 600; transition: all 0.3s; cursor: pointer; border: none; font-size: 16px; }
.btn-primary { background: var(--primary-color); color: var(--white); box-shadow: 0 4px 15px rgba(28, 117, 188, 0.3); }
.btn-primary:hover { background: #0291ff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(28, 117, 188, 0.4); color: var(--white)}
.btn-secondary { background: var(--white); color: var(--dark-blue); border: 2px solid var(--primary-color); }
.btn-secondary:hover { background: var(--primary-color); color: var(--white); }
.btn-whatsapp { background: #25D366; color: var(--white); margin-right: 15px; }
.btn-whatsapp:hover { background: #1ea952; }
.btn-small { padding: 8px 16px; font-size: 14px; }
.btn-danger { background: #dc3545; color: var(--white); }
.btn-danger:hover { background: #c82333; }

/* Sections */
.section { padding: 60px 0; }
.section-dark { background: linear-gradient(135deg, var(--dark-blue), var(--primary-color)); color: var(--white); }
.section-title { text-align: center; font-size: 36px; margin-bottom: 15px; color: var(--dark-blue); }
.section-dark .section-title { color: var(--white); }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 20px; }
.feature-card { text-align: center; padding: 30px; background: var(--white); border-radius: 15px; box-shadow: 0 3px 15px rgba(28, 117, 188, 0.1); transition: all 0.3s; }
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 5px 25px rgba(28, 117, 188, 0.2); }
.feature-icon { width: 80px; height: 80px; background: linear-gradient(135deg, var(--primary-color), var(--dark-blue)); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 40px; box-shadow: 0 4px 15px rgba(28, 117, 188, 0.3); }
.feature-card h3 { font-size: 22px; margin-bottom: 15px; color: var(--dark-blue); }

/* Cars Grid */
.cars-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 30px; margin-top: 20px; }
.car-card { background: var(--white); border-radius: 15px; overflow: hidden; box-shadow: 0 3px 15px rgba(0,0,0,0.08); transition: transform 0.3s; position: relative; border: 1px solid rgba(28, 117, 188, 0.1); }
.car-card:hover { transform: translateY(-8px); box-shadow: 0 8px 25px rgba(28, 117, 188, 0.2); }
.car-image { width: 100%; height: 250px; object-fit: cover; }
.car-badge { position: absolute; top: 15px; right: 15px; background: var(--primary-color); color: var(--white); padding: 8px 15px; border-radius: 25px; font-weight: bold; z-index: 10; box-shadow: 0 2px 10px rgba(28, 117, 188, 0.4); }
.car-content { padding: 20px; }
.car-title { font-size: 24px; margin-bottom: 10px; color: var(--black); }
.car-price { color: var(--primary-color); font-size: 28px; font-weight: bold; margin-bottom: 15px; }
.car-specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 15px; }
.car-spec { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--gray); }

/* Forms */
.form-section { background: var(--light-gray); padding: 40px; border-radius: 15px; max-width: 800px; margin: 0 auto; box-shadow: 0 3px 20px rgba(28, 117, 188, 0.1); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--dark-blue); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px; border: 2px solid #ddd; border-radius: 8px; font-size: 16px; transition: border-color 0.3s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary-color); outline: none; }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

/* Filters */
.filters-section { background: var(--light-gray); padding: 30px; border-radius: 15px; margin-bottom: 40px; border: 2px solid rgba(28, 117, 188, 0.1); box-shadow: 0 3px 20px rgba(28, 117, 188, 0.08); }
.filters-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }

/* Footer */
.site-footer { background: var(--dark-blue); color: var(--white); padding: 60px 0 20px; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-section h3 { color: #0291ff; margin-bottom: 20px; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 10px; }
.footer-section a:hover { color: var(--primary-color); }
.footer-bottom { border-top: 1px solid rgba(28, 117, 188, 0.3); padding-top: 20px; text-align: center; }

/* Car Detail */
.car-detail-content { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; margin-bottom: 40px; }
.car-gallery { display: grid; gap: 15px; }
.main-car-image { width: 100%; height: 400px; object-fit: cover; border-radius: 15px; box-shadow: 0 5px 25px rgba(28, 117, 188, 0.15); }
.thumbnail-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
.thumbnail-images img { width: 100%; height: 80px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 3px solid transparent; transition: all 0.3s; }
.thumbnail-images img:hover, .thumbnail-images img.active { border-color: var(--primary-color); transform: scale(1.05); }
.car-info { background: var(--light-gray); padding: 30px; border-radius: 15px; box-shadow: 0 3px 20px rgba(28, 117, 188, 0.1); }
.car-specs-detail { display: grid; gap: 15px; margin: 20px 0; }
.spec-item { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #ddd; }

/* File Upload */
.file-upload-area { border: 3px dashed var(--primary-color); border-radius: 15px; padding: 40px; text-align: center; cursor: pointer; transition: all 0.3s; background: var(--white); }
.file-upload-area:hover { border-color: var(--dark-blue); background: rgba(28, 117, 188, 0.05); transform: scale(1.02); }

/* Alerts */
.alert { padding: 15px 20px; border-radius: 10px; margin-bottom: 20px; border-left: 5px solid; }
.alert-success { background: #d4edda; color: #155724; border-color: #28a745; }
.alert-error { background: #f8d7da; color: #721c24; border-color: #dc3545; }

/* Admin */
.admin-panel { padding: 40px; max-width: 1400px; margin: 0 auto; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.admin-cars-list { background: var(--white); border-radius: 10px; overflow: hidden; margin-top: 20px; }
.admin-car-item { display: grid; grid-template-columns: 150px 1fr auto; gap: 20px; padding: 20px; border-bottom: 1px solid #eee; align-items: center; }
.admin-car-image { width: 150px; height: 100px; object-fit: cover; border-radius: 5px; }
.admin-car-info h3 { margin-bottom: 10px; }
.admin-car-actions { display: flex; gap: 10px; flex-direction: column; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 15px; }
.pagination a, .pagination span { padding: 10px 15px; background: var(--light-gray); border-radius: 8px; border: 1px solid rgba(28, 117, 188, 0.2); }
.pagination a:hover { background: var(--primary-color); color: var(--white); }
.pagination .current { background: var(--primary-color); color: var(--white); font-weight: bold; }

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--dark-blue); padding: 20px; }
    .main-nav.active { display: block; }
    .main-nav ul { flex-direction: column; gap: 15px; }
    .hero h1 { font-size: 32px; }
    .hero p { font-size: 16px; }
    .form-row, .filters-grid { grid-template-columns: 1fr; }
    .cars-grid { grid-template-columns: 1fr; }
    .car-detail-content { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }
    .admin-car-item { grid-template-columns: 1fr; }
    .admin-car-actions { flex-direction: row; }
}