/* style.css - FoxCoupon Global Styles (US Version) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8f6f3;
    color: #1e1e2a;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* Header */
header {
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 2rem;
    line-height: 1;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: #d35400;
    letter-spacing: -0.5px;
}

.logo-text span {
    color: #e67e22;
}

.tagline {
    font-size: 0.8rem;
    color: #888;
    margin-left: 8px;
    font-weight: 300;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 28px;
}

nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: #2d2d3f;
    transition: color 0.2s;
}

nav a:hover {
    color: #e67e22;
}

/* Buttons */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: #fff;
    padding: 10px 28px;
    border-radius: 40px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid #e67e22;
    color: #e67e22;
    box-shadow: none;
}

.btn-outline:hover {
    background: #e67e22;
    color: #fff;
}

/* Hero */
.hero {
    background: linear-gradient(145deg, #fff6ed, #fde8d8);
    padding: 60px 0 70px;
    text-align: center;
    border-bottom: 1px solid #f0e0d0;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #2d2d3f;
}

.hero h1 span {
    color: #d35400;
    background: #fce4d6;
    padding: 0 12px;
    border-radius: 20px;
}

.hero p {
    font-size: 1.2rem;
    color: #555;
    margin: 20px 0 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-box {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 550px;
    margin: 0 auto;
}

.search-box input {
    flex: 1;
    padding: 14px 22px;
    border: 2px solid #ddd;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    transition: border 0.2s;
}

.search-box input:focus {
    border-color: #e67e22;
}

.search-box button {
    padding: 14px 32px;
    border: none;
    background: #d35400;
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.search-box button:hover {
    background: #b84a00;
}

/* Section title */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 50px 0 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #2d2d3f;
}

.section-title:before {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, #e67e22, transparent);
}

/* Coupon Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.coupon-card {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.04);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #f0ebe6;
}

.coupon-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.coupon-card .store {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.coupon-card .store img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    background: #f0ebe6;
}

.coupon-card .store-name {
    font-weight: 600;
    color: #2d2d3f;
}

.coupon-card .discount {
    font-size: 1.6rem;
    font-weight: 800;
    color: #d35400;
    background: #fde8d8;
    display: inline-block;
    padding: 4px 16px;
    border-radius: 40px;
    margin: 10px 0 12px;
}

.coupon-card .desc {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.coupon-card .meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 16px;
}

.coupon-card .code-area {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f4f0;
    padding: 8px 14px;
    border-radius: 40px;
    margin-bottom: 16px;
}

.coupon-card .code {
    font-family: monospace;
    font-size: 1rem;
    font-weight: 600;
    color: #2d2d3f;
    letter-spacing: 0.5px;
    flex: 1;
}

.coupon-card .copy-btn {
    background: none;
    border: none;
    color: #e67e22;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
}

.coupon-card .copy-btn:hover {
    text-decoration: underline;
}

.coupon-card .btn-sm {
    width: 100%;
    text-align: center;
    padding: 10px 0;
    font-size: 0.95rem;
}

/* Category grid */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.cat-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    border: 1px solid #f0ebe6;
    transition: 0.2s;
}

.cat-card:hover {
    border-color: #e67e22;
    transform: translateY(-4px);
}

.cat-card .icon {
    font-size: 2.4rem;
    display: block;
    margin-bottom: 8px;
}

/* Deal detail page */
.deal-detail {
    display: flex;
    gap: 50px;
    margin: 40px 0 60px;
}

.deal-detail .images {
    flex: 1;
}

.deal-detail .images img {
    width: 100%;
    border-radius: 24px;
    object-fit: cover;
    max-height: 400px;
}

.deal-detail .info {
    flex: 1;
}

.deal-detail .info h1 {
    font-size: 2.2rem;
    margin-bottom: 8px;
}

.deal-detail .discount-big {
    font-size: 2.8rem;
    font-weight: 800;
    color: #d35400;
    background: #fde8d8;
    display: inline-block;
    padding: 6px 24px;
    border-radius: 60px;
    margin: 12px 0;
}

.deal-detail .info .desc {
    font-size: 1.1rem;
    color: #555;
    margin: 20px 0;
}

.deal-detail .info .code-block {
    background: #f8f4f0;
    padding: 16px 24px;
    border-radius: 60px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 20px 0 30px;
}

.deal-detail .info .code-block .code {
    font-size: 1.4rem;
    font-family: monospace;
    font-weight: 700;
    color: #2d2d3f;
    flex: 1;
}

/* Footer */
footer {
    background: #1e1e2a;
    color: #ccc;
    padding: 40px 0 20px;
    margin-top: 60px;
}

footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
}

footer h4 {
    color: #fff;
    margin-bottom: 10px;
}

footer a {
    display: block;
    color: #aaa;
    margin: 6px 0;
    transition: color 0.2s;
}

footer a:hover {
    color: #e67e22;
}

footer .copy {
    border-top: 1px solid #333;
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
    color: #777;
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        height: auto;
        padding: 10px 0;
    }
    nav ul {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .search-box {
        flex-direction: column;
        align-items: stretch;
    }
    .search-box button {
        width: 100%;
    }
    .deal-detail {
        flex-direction: column;
    }
    .section-title:before {
        display: none;
    }
}