/* Amazon Deals CC - Main Stylesheet */

:root {
    --primary-color: #ff9900;
    --amazon-orange: #ff9900;
    --amazon-blue: #146eb4;
    --success-green: #067d62;
    --danger-red: #c7511f;
    --dark-text: #0f1111;
    --light-text: #565959;
    --border-color: #d5d9d9;
    --background: #f7f7f7;
    --white: #ffffff;
    --shadow: 0 2px 5px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 15px rgba(0,0,0,0.15);
}

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

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

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

/* Header */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo h1 {
    color: var(--amazon-orange);
    font-size: 1.8rem;
    font-weight: 700;
}

.tagline {
    font-size: 0.9rem;
    color: var(--light-text);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--dark-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--amazon-orange);
}

.search-bar {
    display: flex;
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.search-bar input {
    border: none;
    padding: 0.5rem 1rem;
    width: 250px;
    background: transparent;
    outline: none;
}

.search-bar button {
    background: var(--amazon-orange);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

/* Disclosure Banner */
.disclosure-banner {
    background: #fef3e2;
    border-bottom: 2px solid var(--amazon-orange);
    padding: 0.75rem 0;
}

.disclosure-banner p {
    font-size: 0.9rem;
    color: var(--dark-text);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--amazon-orange), #ffad33);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat .number {
    font-size: 2rem;
    font-weight: 700;
}

.stat .label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Filter Bar */
.filter-bar {
    background: white;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 70px;
    z-index: 900;
}

.filter-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.filter-btn:hover {
    border-color: var(--amazon-orange);
    color: var(--amazon-orange);
}

.filter-btn.active {
    background: var(--amazon-orange);
    color: white;
    border-color: var(--amazon-orange);
}

.sort select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: white;
    cursor: pointer;
}

/* Deals Section */
.deals-section {
    padding: 3rem 0;
}

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

.countdown {
    background: var(--danger-red);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
}

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

/* Deal Card */
.deal-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.deal-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.deal-card.hot-deal {
    border: 2px solid var(--danger-red);
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--danger-red);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.1rem;
}

.time-left {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.deal-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.deal-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
    min-height: 2.5rem;
}

.rating {
    color: var(--amazon-orange);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.price-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.original-price {
    text-decoration: line-through;
    color: var(--light-text);
    font-size: 1rem;
}

.sale-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--danger-red);
}

.savings {
    color: var(--success-green);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.prime-badge {
    color: var(--amazon-blue);
    font-weight: 600;
    margin-bottom: 1rem;
}

.buy-btn {
    background: var(--amazon-orange);
    color: white;
    text-decoration: none;
    padding: 0.75rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    transition: background 0.3s;
    margin-top: auto;
}

.buy-btn:hover {
    background: #e88a00;
}

.updated {
    font-size: 0.75rem;
    color: var(--light-text);
    margin-top: 0.5rem;
    text-align: center;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, var(--amazon-blue), #1e7fc8);
    padding: 4rem 0;
    color: white;
}

.newsletter-box {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-box h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.newsletter-box form {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.newsletter-box input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
}

.newsletter-box button {
    background: var(--amazon-orange);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.newsletter-box button:hover {
    background: #e88a00;
}

.privacy {
    font-size: 0.9rem;
    margin-top: 1rem;
    opacity: 0.9;
}

/* Categories Section */
.categories-section {
    padding: 3rem 0;
    background: white;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.category-card {
    background: var(--background);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: var(--dark-text);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.category-card:hover {
    background: var(--amazon-orange);
    color: white;
    transform: translateY(-5px);
}

.category-card .icon {
    font-size: 2rem;
}

.category-card .name {
    font-weight: 600;
}

.category-card .count {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Footer */
footer {
    background: #232f3e;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

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

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

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ddd;
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--amazon-orange);
}

.disclosure-footer {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255,153,0,0.1);
    border-radius: 8px;
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid #3a4553;
    padding-top: 1rem;
    text-align: center;
    color: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-bar {
        width: 100%;
    }
    
    .search-bar input {
        width: 100%;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .deals-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-box form {
        flex-direction: column;
    }
    
    .stats {
        gap: 2rem;
    }
}