/* Motor.com.de - Professional German Automotive Magazine Style */

:root {
    --primary: #e60000;
    --primary-dark: #cc0000;
    --secondary: #1a1a1a;
    --accent: #f4f4f4;
    --text-primary: #2d2d2d;
    --text-secondary: #666666;
    --text-light: #999999;
    --border: #e0e0e0;
    --success: #52c41a;
    --warning: #faad14;
    --danger: #f5222d;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.16);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    background: #ffffff;
    line-height: 1.6;
}

/* Typography */
h1 { font-size: 2.5rem; font-weight: 700; line-height: 1.2; }
h2 { font-size: 2rem; font-weight: 600; line-height: 1.3; }
h3 { font-size: 1.5rem; font-weight: 600; line-height: 1.4; }
h4 { font-size: 1.25rem; font-weight: 500; line-height: 1.4; }

/* Container */
.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 60px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Add padding to body to account for fixed header */
body {
    padding-top: 60px;
}

/* Header scroll effect */
.header.scrolled {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-main {
    padding: 0.5rem 0;
}

.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

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

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

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

.main-nav a:hover {
    color: var(--primary);
}

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

.main-nav a:hover:after {
    width: 100%;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    background: white;
    min-width: 160px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 4px;
    padding: 0.25rem 0;
    z-index: 1000;
}

.dropdown-content a {
    display: block;
    padding: 0.4rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
    font-size: 0.875rem;
}

.dropdown-content a:hover {
    background: var(--accent);
    color: var(--primary);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a:after {
    display: none;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #fff;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-search {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
}

/* Search Form */
.search-form {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

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

.form-group label {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: rgba(255,255,255,0.8);
}

.form-group select,
.form-group input {
    padding: 0.75rem;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 8px;
    font-size: 1rem;
}

.btn-search {
    grid-column: 1 / -1;
    padding: 1rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

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

/* Vehicle Cards Grid */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
    padding: 3rem 0;
}

.vehicle-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.vehicle-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(230,0,0,0.15);
}

.vehicle-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e60000 0%, #ff4444 50%, #e60000 100%);
    transform: scaleX(0);
    transition: transform 0.4s;
}

.vehicle-card:hover::before {
    transform: scaleX(1);
}

.vehicle-image-container {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.vehicle-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    background: linear-gradient(45deg, #f0f0f0 25%, #f8f8f8 25%, #f8f8f8 50%, #f0f0f0 50%, #f0f0f0 75%, #f8f8f8 75%, #f8f8f8);
    background-size: 20px 20px;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 0 0; }
    100% { background-position: 20px 20px; }
}

.vehicle-card:hover .vehicle-image {
    transform: scale(1.1);
}

.vehicle-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary);
    color: #fff;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
}

.vehicle-rating {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(26,26,26,0.9);
    color: #fff;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rating-value {
    font-size: 1.25rem;
    font-weight: 700;
}

.rating-max {
    font-size: 0.875rem;
    opacity: 0.8;
}

.vehicle-content {
    padding: 1.5rem;
}

.vehicle-title {
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.vehicle-subtitle {
    color: var(--text-secondary);
    font-size: 0.975rem;
    margin-bottom: 1rem;
}

.vehicle-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.vehicle-specs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.spec-icon {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

/* Pros and Cons */
.vehicle-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.pros, .cons {
    font-size: 0.875rem;
}

.pros-title, .cons-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.pros-title {
    color: var(--success);
}

.cons-title {
    color: var(--danger);
}

.pros ul, .cons ul {
    list-style: none;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.pros li, .cons li {
    padding: 0.25rem 0;
}

/* User Rating Section */
.user-ratings {
    background: var(--accent);
    padding: 1rem;
    border-radius: 8px;
}

.user-rating-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.user-rating-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.user-rating-score {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    color: #faad14;
}

.star.empty {
    color: #d9d9d9;
}

.user-rating-count {
    font-size: 0.75rem;
    color: var(--text-light);
}

.warning-box {
    background: #fff7e6;
    border-left: 3px solid var(--warning);
    padding: 0.5rem;
    margin-top: 0.5rem;
    border-radius: 4px;
}

.warning-text {
    font-size: 0.75rem;
    color: #ad6800;
}

/* Magazine Section */
.magazine-section {
    background: var(--accent);
    padding: 4rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
}

.section-subtitle {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.view-all-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.article-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: 1.25rem;
}

.article-category {
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.article-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.article-excerpt {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Footer */
.footer {
    background: var(--secondary);
    color: #fff;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    line-height: 2;
    font-size: 0.875rem;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content { grid-template-columns: 1fr; }
    .search-form { grid-template-columns: 1fr; }
    .vehicle-grid { grid-template-columns: 1fr; }
    .main-nav { display: none; }
    .footer-content { grid-template-columns: 1fr; }
}