/* Reset e Variáveis */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF6B35;
    --secondary-color: #004E89;
    --accent-color: #F7931E;
    --background-color: #FAFAFA;
    --text-color: #333333;
    --light-gray: #E8E8E8;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

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

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

/* Header */
.header {
    background-color: white;
    padding: 30px 0;
    border-bottom: 2px solid var(--light-gray);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.logo-icon {
    font-size: 32px;
}

.header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.tagline {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 16px;
    font-weight: 700;
}

.hero p {
    font-size: 20px;
    margin-bottom: 32px;
    opacity: 0.95;
}

/* Buttons */
.btn-primary {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(247, 147, 30, 0.3);
}

.btn-primary:hover {
    background-color: #e8821a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(247, 147, 30, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Filtros */
.filters-section {
    background-color: white;
    padding: 30px 0;
    border-bottom: 1px solid var(--light-gray);
}

.filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    background-color: var(--light-gray);
    color: var(--text-color);
    border: 2px solid transparent;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    background-color: #ddd;
}

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

/* Offers Section */
.offers-section {
    padding: 60px 0;
    min-height: 400px;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.offer-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border: 1px solid var(--light-gray);
    display: flex;
    flex-direction: column;
}

.offer-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.offer-image {
    width: 100%;
    height: 200px;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    overflow: hidden;
    position: relative;
}

.offer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.offer-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.offer-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.offer-platform {
    font-size: 12px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.offer-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-color);
    line-height: 1.4;
    flex-grow: 1;
}

.offer-description {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.4;
}

.offer-prices {
    margin-bottom: 16px;
}

.offer-price-original {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 4px;
}

.offer-price-current {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.offer-discount {
    font-size: 12px;
    color: var(--accent-color);
    font-weight: 600;
    margin-top: 4px;
}

.offer-actions {
    display: flex;
    gap: 8px;
}

.btn-visit {
    flex: 1;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
}

.btn-visit:hover {
    background-color: #003a63;
}

.btn-delete {
    background-color: #f0f0f0;
    color: #d32f2f;
    border: none;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-delete:hover {
    background-color: #e0e0e0;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 18px;
}

/* Admin Section */
.admin-section {
    background-color: white;
    padding: 60px 0;
    border-top: 1px solid var(--light-gray);
}

.admin-section h3 {
    font-size: 28px;
    margin-bottom: 32px;
    color: var(--text-color);
}

.offer-form {
    background-color: var(--background-color);
    padding: 32px;
    border-radius: var(--border-radius);
    max-width: 600px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group button {
    width: 100%;
    margin-top: 8px;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
}

.footer p {
    margin: 8px 0;
    font-size: 14px;
}

.disclaimer {
    opacity: 0.8;
    font-size: 12px;
}

/* Responsivo */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    .offers-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .offer-form {
        padding: 20px;
    }

    .header h1 {
        font-size: 24px;
    }

    .admin-section h3 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .offers-grid {
        grid-template-columns: 1fr;
    }

    .logo {
        margin-bottom: 4px;
    }

    .logo-icon {
        font-size: 24px;
    }

    .header h1 {
        font-size: 20px;
    }

    .filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .filter-btn {
        white-space: nowrap;
    }
}
