/* General styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

a {
    text-decoration: none;
    color: #0066cc;
}

/* Header */
header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

header h1 {
    text-align: center;
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 1.5rem;
}

nav ul li a {
    color: #555;
    font-weight: 500;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

nav ul li a:hover {
    background-color: #f0f0f0;
    color: #333;
}

/* Main content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Filters */
.filters {
    background-color: #fff;
    padding: 1.2rem;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.filters form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.filters select, .filters button {
    padding: 0.6rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    background-color: #fff;
}

.filters select {
    flex: 1;
    min-width: 150px;
}

.filters button {
    background-color: #0066cc;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

.filters button:hover {
    background-color: #0056b3;
}

/* Deals grid */
.deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.deal-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.deal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.store-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
}

.store-badge.komplett {
    background-color: #e53935;
    color: white;
}

.store-badge.proshop {
    background-color: #1e88e5;
    color: white;
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff5722;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.deal-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    overflow: hidden;
}

.deal-image img {
    max-width: 100%;
    max-height: 170px;
    object-fit: contain;
}

.no-image {
    color: #999;
    font-size: 0.8rem;
}

.deal-info {
    padding: 1rem;
}

.deal-title {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    height: 2.8rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.deal-price {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.original-price {
    color: #777;
    text-decoration: line-through;
    font-size: 0.8rem;
}

.sale-price {
    color: #e53935;
    font-size: 1.1rem;
    font-weight: 600;
}

.view-deal-btn {
    display: block;
    width: 100%;
    padding: 0.6rem;
    text-align: center;
    background-color: #4caf50;
    color: white;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.view-deal-btn:hover {
    background-color: #43a047;
}

/* No deals message */
.no-deals {
    background-color: #fff;
    padding: 2rem;
    text-align: center;
    border-radius: 6px;
    color: #777;
    font-size: 1.1rem;
}

/* Last update */
.last-update {
    text-align: right;
    color: #777;
    font-size: 0.8rem;
    margin-top: 1rem;
}

/* Chart container */
.chart-container {
    background-color: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    margin-top: 2rem;
    height: 400px;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
    color: #777;
    font-size: 0.9rem;
    background-color: #fff;
    border-top: 1px solid #eee;
}

/* Responsive design */
@media (max-width: 768px) {
    .filters form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .deals-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .deals-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-container {
        height: 300px;
    }
} 