:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --background-color: #f8fafc;
    --text-color: #1e293b;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --success-color: #10b981;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Voucher Section */
.voucher-section {
    margin-bottom: 3rem;
}

.card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    text-align: center;
    border: 1px solid var(--border-color);
}

.card h2 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.cta-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 1rem;
}

.cta-button:hover {
    background-color: var(--primary-hover);
}

.category-btn {
    margin: 0.5rem;
    width: 100%;
    max-width: 300px;
}

.secondary-button {
    background-color: transparent;
    color: #64748b;
    border: 1px solid #cbd5e1;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.2s;
}

.secondary-button:hover {
    background-color: #f1f5f9;
    color: var(--text-color);
}

.voucher-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

/* Voucher Display */
.voucher-display {
    margin: 2rem 0;
    animation: fadeIn 0.5s ease-out;
}

.code-box {
    background: #f1f5f9;
    border: 2px dashed #cbd5e1;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

#code-text {
    font-family: monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

#copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s, background-color 0.2s;
}

#copy-btn:hover {
    color: var(--primary-color);
    background-color: #e2e8f0;
}

.voucher-details {
    font-size: 0.9rem;
    color: #64748b;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

.product-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.product-link:hover {
    text-decoration: underline;
}

/* Rating Section */
.rating-section {
    margin: 1.5rem 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.rating-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.rate-btn {
    background: none;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s;
}

.rate-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: #f8fafc;
}

.rate-btn.up:hover {
    border-color: var(--success-color);
    color: var(--success-color);
}

.rate-btn.down:hover {
    border-color: #ef4444;
    color: #ef4444;
}

.rate-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.success-text {
    color: var(--success-color);
    font-weight: 600;
    margin-top: 0.5rem;
}

.hidden {
    display: none;
}

.error {
    color: #ef4444;
    margin-top: 1rem;
}

/* Info Section */
.info-section h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.info-section ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

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

.info-section a {
    color: var(--primary-color);
    text-decoration: none;
}

.info-section a:hover {
    text-decoration: underline;
}

footer {
    text-align: center;
    padding: 2rem 0;
    color: #64748b;
    font-size: 0.9rem;
    margin-top: auto;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    #code-text {
        font-size: 1.2rem;
    }
}
