:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --success: #10b981;
    --text-color: #1f2937;
    --gray-light: #f3f4f6;
    --gray-medium: #9ca3af;
    --category-color: #2563eb;
}

/* Reset e estilos globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--gray-light);
}

/* Navbar */
.navbar {
    background: white;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
}

.logo i {
    color: var(--primary);
}

.auth-buttons {
    display: flex;
    gap: 1rem;
}

.btn-login {
    padding: 0.5rem 1rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.btn-register {
    padding: 0.5rem 1.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 9999px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.btn-register:hover {
    background-color: #0052CC;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 1rem;
    max-width: 800px;
    margin: 0 auto;
}

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

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.125rem;
    color: var(--gray-dark);
}

/* Search Section */
.search-container {
    max-width: 800px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
}

.search-box {
    position: relative;
    margin-bottom: 1rem;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-medium);
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--secondary-color);
    border-radius: 9999px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
}

.filter-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0.5rem;
}

/* Categorias */
.categories-section {
    padding: 2rem 0;
    position: relative;
    max-width: 100%;
    overflow: hidden;
}

.categories-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding: 0 2rem;
}

.categories-scroll {
    position: relative;
    padding: 1rem 2rem;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.categories-container {
    display: flex;
    gap: 1rem;
    animation: scrollCategories 60s linear infinite;
    width: max-content;
}

@keyframes scrollCategories {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.categories-container:hover {
    animation-play-state: paused;
}

.category-card {
    flex: 0 0 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: white;
    border-radius: 1rem;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 2px solid transparent;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: var(--category-color);
}

.category-card:hover .category-icon {
    transform: scale(1.1);
    color: var(--category-color);
}

.category-card:hover .category-name {
    color: var(--category-color);
}

.category-card:hover .category-count {
    color: var(--category-color);
}

/* Gradiente nas bordas */
.categories-scroll::before,
.categories-scroll::after {
    content: '';
    position: absolute;
    top: 0;
    height: 100%;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.categories-scroll::before {
    left: 0;
    background: linear-gradient(to right, white 0%, transparent 100%);
}

.categories-scroll::after {
    right: 0;
    background: linear-gradient(to left, white 0%, transparent 100%);
}

/* Cards */
.category-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--category-color);
    transition: all 0.3s ease;
}

.category-name {
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    margin: 0.5rem 0;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.category-count {
    font-size: 0.75rem;
    color: var(--gray-medium);
    text-align: center;
    transition: color 0.3s ease;
}

/* Grid de empresas */
.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .categories-container {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .category-card {
        width: 120px;
    }
}

@media (max-width: 480px) {
    .categories-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .category-card {
        width: 100px;
        padding: 1rem;
    }
    
    .category-icon {
        font-size: 1.5rem;
    }
    
    .category-name {
        font-size: 0.75rem;
    }
}

/* Company Cards */
.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.company-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    border-top: 4px solid var(--category-color, var(--primary));
}

.company-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.company-card-header {
    padding: 1.5rem;
    display: flex;
    align-items: start;
    gap: 1rem;
}

.company-avatar {
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    object-fit: cover;
}

.company-info {
    flex: 1;
}

.company-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.company-category {
    font-size: 0.875rem;
    color: var(--category-color, var(--gray-medium));
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.company-category i {
    color: var(--category-color, var(--primary));
}

.company-description {
    font-size: 0.875rem;
    color: var(--gray-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.company-actions {
    padding: 1rem 1.5rem;
    display: flex;
    gap: 0.75rem;
    border-top: 1px solid var(--secondary-color);
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.2s;
}

.action-btn:hover {
    transform: translateY(-1px);
}

.action-btn.whatsapp {
    background-color: #25D366;
    color: white;
}

.action-btn.maps {
    background-color: var(--primary);
    color: white;
}

.action-btn.more {
    color: var(--gray-dark);
    background-color: var(--gray-light);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 1rem;
}

.empty-state i {
    font-size: 3rem;
    color: var(--gray-medium);
    margin-bottom: 1rem;
}

.empty-state p {
    color: var(--gray-dark);
    font-size: 1.125rem;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    background: white;
    border-radius: 1rem;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    padding: 0;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--gray-dark);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 10;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: var(--text-color);
}

.lightbox-header {
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid var(--secondary-color);
}

.lightbox-avatar {
    width: 80px;
    height: 80px;
    border-radius: 1rem;
    object-fit: cover;
}

.lightbox-info {
    flex: 1;
}

.lightbox-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.lightbox-category {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-dark);
    font-size: 0.875rem;
}

.lightbox-category i {
    color: var(--primary);
}

.lightbox-description {
    padding: 1.5rem;
    color: var(--gray-dark);
    line-height: 1.6;
}

.lightbox-map {
    padding: 0 1.5rem 1.5rem;
}

.social-links {
    padding: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    border-top: 1px solid var(--secondary-color);
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 9999px;
    color: white;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: transform 0.2s, opacity 0.2s;
}

.social-link:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

.social-link.whatsapp { background-color: #25D366; }
.social-link.instagram { background-color: #E4405F; }
.social-link.facebook { background-color: #1877F2; }
.social-link.linkedin { background-color: #0A66C2; }
.social-link.phone { background-color: var(--primary); }

@media (max-width: 640px) {
    .lightbox-content {
        width: 95%;
        margin: 1rem;
    }
    
    .lightbox-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .lightbox-avatar {
        width: 100px;
        height: 100px;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .companies-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .company-card-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .company-avatar {
        width: 80px;
        height: 80px;
    }
    
    .company-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Vue.js cloak */
[v-cloak] {
    display: none;
}

/* Subscribe Page */
.subscribe-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.subscribe-title {
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    color: #1a1a1a;
}

/* Stepper */
.stepper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.stepper::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: #e5e7eb;
    z-index: 1;
}

.step {
    position: relative;
    z-index: 2;
    background: white;
    padding: 0 10px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
}

.step.active .step-number {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.step.completed .step-number {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.step-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
    text-align: center;
}

.step.active .step-label {
    color: #2563eb;
    font-weight: 600;
}

/* Plan Types */
.plan-types-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 0 auto;
    max-width: 800px;
    margin-bottom: 2rem;
}

.plan-type-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.plan-type-card:hover {
    transform: translateY(-4px);
    border-color: #2563eb;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.1);
}

.plan-type-card.selected {
    background: #eff6ff;
    border-color: #2563eb;
}

.plan-type-icon {
    font-size: 2.5rem;
    color: #2563eb;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    border-radius: 1rem;
    margin-bottom: 1rem;
}

.plan-type-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.plan-type-description {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

/* Step Content */
.step-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
    color: #1a1a1a;
}

/* Buttons */
.step-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.btn-primary {
    background: #2563eb;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-primary:disabled {
    background: #e5e7eb;
    cursor: not-allowed;
}

.btn-secondary {
    background: white;
    color: #4b5563;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 500;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

@media (max-width: 640px) {
    .plan-types-grid {
        grid-template-columns: 1fr;
    }

    .stepper {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .stepper::before {
        display: none;
    }

    .step {
        flex: 0 0 50%;
    }
}

/* Form */
.subscribe-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    color: #1f2937;
    background: #f9fafb;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: #d1d5db;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #2563eb;
    background: white;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
}

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

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.5em;
    padding-right: 2.5rem;
}

/* Plans Grid */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.plan-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}

.plan-card:hover {
    transform: translateY(-4px);
    border-color: #2563eb;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.1);
}

.plan-card.selected {
    background: #eff6ff;
    border-color: #2563eb;
}

.plan-badge {
    position: absolute;
    top: 1rem;
    right: -2rem;
    background: #2563eb;
    color: white;
    padding: 0.25rem 2rem;
    transform: rotate(45deg);
    font-size: 0.75rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.plan-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.plan-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.plan-price .currency {
    font-size: 1rem;
    font-weight: 500;
    margin-right: 0.25rem;
}

.plan-price .period {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 400;
}

.plan-features {
    text-align: left;
    margin-bottom: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #374151;
    font-size: 0.875rem;
}

.feature i {
    color: #10b981;
    font-size: 1.25rem;
}

.feature.disabled {
    color: #9ca3af;
}

.feature.disabled i {
    color: #e5e7eb;
}

@media (max-width: 768px) {
    .subscribe-form {
        grid-template-columns: 1fr;
    }

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

/* Period Selection */
.period-selection {
    margin-top: 3rem;
}

.period-selection h3 {
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
    color: #1f2937;
}

.periods-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.period-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.period-card:hover {
    transform: translateY(-4px);
    border-color: #2563eb;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.1);
}

.period-card.selected {
    background: #eff6ff;
    border-color: #2563eb;
}

.period-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.period-discount {
    display: inline-block;
    background: #10b981;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0 auto;
}

.period-original {
    font-size: 0.875rem;
    color: #6b7280;
    text-decoration: line-through;
}

.period-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2563eb;
    line-height: 1.2;
}

.period-total {
    display: block;
    font-size: 0.875rem;
    font-weight: 400;
    color: #6b7280;
}

.period-monthly {
    font-size: 1rem;
    font-weight: 500;
    color: #10b981;
    background: #ecfdf5;
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.period-savings {
    font-size: 0.875rem;
    font-weight: 500;
    color: #10b981;
}

.period-card {
    position: relative;
    overflow: hidden;
}

.period-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #2563eb;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.period-card.selected::before {
    opacity: 0.05;
}

@media (max-width: 1024px) {
    .periods-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .periods-grid {
        grid-template-columns: 1fr;
    }

    .period-card {
        padding: 1.25rem;
    }

    .period-price {
        font-size: 1.5rem;
    }
}
