/*
Theme Name: DiaperDeals
Description: Premium diaper price comparison theme with glossy finish, mobile responsive, and affiliate marketing optimization
Version: 1.0
Author: DiaperDeals Team
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.site-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.site-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 10px;
}

.site-description {
    text-align: center;
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Brand Filter Tabs */
.brand-filter {
    margin: 30px 0;
    text-align: center;
}

.brand-filter h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.brand-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.brand-tab {
    background: linear-gradient(145deg, #ffffff, #e6e6e6);
    border: none;
    padding: 15px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    color: #2c3e50;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-decoration: none;
    display: block;
}

.brand-tab:hover, .brand-tab.active {
    background: linear-gradient(145deg, #3498db, #2980b9);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52,152,219,0.4);
}

/* Price Comparison Tables */
.brand-section {
    margin-bottom: 40px;
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.brand-section h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 3px solid #3498db;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.comparison-table thead {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.comparison-table th {
    padding: 18px 15px;
    font-weight: 600;
    text-align: left;
    font-size: 1rem;
}

.comparison-table td {
    padding: 15px;
    border-bottom: 1px solid #ecf0f1;
    font-size: 0.95rem;
}

.comparison-table tbody tr:hover {
    background: linear-gradient(135deg, #ecf0f1, #d5dbdb);
    transform: scale(1.01);
    transition: all 0.2s ease;
}

.price-cell {
    font-weight: 700;
    color: #e74c3c;
    font-size: 1.1rem;
}

.best-price {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border-radius: 8px;
    padding: 8px 12px;
}

/* Buy Buttons */
.buy-button {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.buy-button:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(231,76,60,0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .site-title {
        font-size: 2rem;
    }
    
    .brand-tabs {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .comparison-table {
        font-size: 0.85rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 10px 8px;
    }
    
    /* Stack table for mobile */
    .comparison-table thead {
        display: none;
    }
    
    .comparison-table tbody tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 15px;
        background: white;
    }
    
    .comparison-table td {
        display: block;
        text-align: right;
        padding: 8px 0;
        border: none;
        position: relative;
        padding-left: 50%;
    }
    
    .comparison-table td:before {
        content: attr(data-label) ": ";
        position: absolute;
        left: 0;
        font-weight: 600;
        color: #2c3e50;
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
