/*
Theme Name: Sparteufel Deals
Description: Minimalist deals display theme for sparteufelonline.de
Version: 1.0
Author: TornadoDeals Team
*/

/* Reset & Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f5f5f7; color: #333; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* Top Banner */
.sp-affiliate-bar { background: #232f3e; color: #fff; text-align: center; padding: 8px 15px; font-size: 12px; }
.sp-affiliate-bar a { color: #ff9900; font-weight: 700; }

/* Header */
.sp-header { background: #fff; border-bottom: 3px solid #e63946; padding: 15px 0; text-align: center; }
.sp-header h1 { font-size: 28px; font-weight: 800; color: #e63946; }
.sp-header h1 span { color: #333; }
.sp-header p { font-size: 13px; color: #888; margin-top: 4px; }
.sp-search { max-width: 450px; margin: 12px auto 0; position: relative; }
.sp-search input { width: 100%; padding: 10px 45px 10px 18px; border: 2px solid #eee; border-radius: 30px; font-size: 14px; outline: none; transition: border 0.2s; }
.sp-search input:focus { border-color: #e63946; }
.sp-search button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); background: #e63946; border: none; border-radius: 50%; width: 34px; height: 34px; cursor: pointer; color: #fff; font-size: 16px; }

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

/* Deals Grid */
.sp-deals { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.sp-deal { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.06); transition: transform 0.2s, box-shadow 0.2s; border: 1px solid #f0f0f0; }
.sp-deal:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,0.1); }
.sp-deal-img { position: relative; height: 180px; display: flex; align-items: center; justify-content: center; background: #fafafa; padding: 15px; }
.sp-deal-img img { max-height: 150px; object-fit: contain; }
.sp-deal-badge { position: absolute; top: 8px; left: 8px; background: #e63946; color: #fff; padding: 4px 10px; border-radius: 5px; font-size: 13px; font-weight: 800; }
.sp-deal-body { padding: 14px 16px; }
.sp-deal-store { font-size: 11px; color: #999; text-transform: uppercase; letter-spacing: 0.5px; }
.sp-deal-title { font-size: 14px; font-weight: 600; color: #222; margin: 6px 0 10px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sp-deal-prices { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.sp-deal-price { font-size: 20px; font-weight: 800; color: #e63946; }
.sp-deal-price-old { font-size: 14px; color: #bbb; text-decoration: line-through; }
.sp-deal-btn { display: block; background: #e63946; color: #fff; text-align: center; padding: 10px; border-radius: 8px; font-weight: 700; font-size: 14px; transition: background 0.2s; }
.sp-deal-btn:hover { background: #c62828; color: #fff; }
.sp-deal-partner { font-size: 10px; color: #ccc; text-align: center; margin-top: 6px; }
.sp-deal-time { font-size: 11px; color: #bbb; margin-top: 8px; }
.sp-deal-expired { opacity: 0.5; position: relative; }
.sp-deal-expired::after { content: "Abgelaufen"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); background: rgba(0,0,0,0.7); color: #fff; padding: 8px 20px; border-radius: 6px; font-weight: 700; font-size: 16px; z-index: 5; }

/* Pagination */
.sp-pagination { text-align: center; margin: 30px 0; }
.sp-pagination a, .sp-pagination span { display: inline-block; padding: 8px 16px; margin: 0 3px; border-radius: 6px; font-weight: 600; font-size: 14px; }
.sp-pagination a { background: #fff; color: #333; border: 1px solid #eee; }
.sp-pagination a:hover { background: #e63946; color: #fff; border-color: #e63946; }
.sp-pagination .current { background: #e63946; color: #fff; }

/* Single Deal */
.sp-single { max-width: 800px; margin: 0 auto; }
.sp-single-card { background: #fff; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); overflow: hidden; }
.sp-single-top { display: flex; gap: 25px; padding: 25px; }
.sp-single-img { flex: 0 0 250px; text-align: center; }
.sp-single-img img { max-height: 250px; object-fit: contain; }
.sp-single-info { flex: 1; }
.sp-single-title { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.sp-single-content { padding: 20px 25px; border-top: 1px solid #f0f0f0; font-size: 14px; line-height: 1.9; color: #555; }
.sp-single-btn { display: block; background: linear-gradient(135deg, #e63946, #c62828); color: #fff; text-align: center; padding: 16px; border-radius: 10px; font-size: 18px; font-weight: 700; margin: 15px 0 8px; box-shadow: 0 4px 12px rgba(230,57,70,0.3); }
.sp-single-btn:hover { color: #fff; }

/* Footer */
.sp-footer { background: #1a1a2e; color: #888; text-align: center; padding: 25px 20px; font-size: 12px; margin-top: 30px; }
.sp-footer a { color: #e63946; margin: 0 10px; }
.sp-footer .copy { color: #555; margin-top: 8px; font-size: 11px; }

/* Responsive */
@media (max-width: 768px) {
    .sp-deals { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .sp-single-top { flex-direction: column; }
    .sp-single-img { flex: none; }
    .sp-header h1 { font-size: 22px; }
}
@media (max-width: 480px) {
    .sp-deals { grid-template-columns: 1fr; }
}
