/*
Theme Name: Sky Food Villa Branca
Description: Tema personalizado para o Sky Food Villa Branca
Version: 1.0
Author: Sky Food
*/

/* Reset e estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f3f4f6;
    color: #374151;
}

/* Container principal */
.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    padding: 1rem;
}

.card {
    width: 100%;
    max-width: 28rem;
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 1.5rem;
}

/* Header com logo */
.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
}

.logo {
    width: 6rem;
    height: 6rem;
    object-fit: contain;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.business-name {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
}

/* Descrição */
.description {
    color: #6b7280;
    text-align: center;
    margin-bottom: 2rem;
}

/* Botões de link */
.link-buttons {
    margin-bottom: 2rem;
}

.link-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    color: white;
    margin-bottom: 0.75rem;
    width: 100%;
    text-decoration: none;
    transition: transform 0.2s;
}

.link-button:hover {
    transform: scale(1.02);
}

.link-button.ifood {
    background-color: #dc2626;
}

.link-button.ifood:hover {
    background-color: #b91c1c;
}

.link-button.whatsapp {
    background-color: #059669;
}

.link-button.whatsapp:hover {
    background-color: #047857;
}

.link-button.instagram {
    background-color: #7c3aed;
}

.link-button.instagram:hover {
    background-color: #6d28d9;
}

/* Informações da loja */
.store-info {
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-icon {
    color: #6b7280;
    margin-right: 0.5rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.info-text {
    color: #374151;
}

/* Mapa */
.map-container {
    height: 15rem;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 2rem;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer */
.footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.footer-content {
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
}

.copyright {
    margin-bottom: 0.25rem;
}

.cnpj {
    margin-bottom: 0.5rem;
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.legal-link {
    color: #3b82f6;
    text-decoration: none;
}

.legal-link:hover {
    color: #1d4ed8;
}

/* Páginas de conteúdo */
.content-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.content-page h1 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #111827;
}

.content-page h2 {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 1.5rem 0 1rem 0;
    color: #374151;
}

.content-page p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #4b5563;
}

.content-page ul,
.content-page ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.content-page li {
    margin-bottom: 0.5rem;
}

/* ===== MODAL DO CARDÁPIO ===== */

/* Modal base */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

/* Conteúdo do modal */
.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 0.75rem;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.modal.show .modal-content {
    transform: scale(1);
}

/* Header do modal */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border-bottom: 1px solid #e5e7eb;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.close {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: background-color 0.2s ease;
}

.close:hover,
.close:focus {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Body do modal */
.modal-body {
    padding: 0;
    max-height: calc(90vh - 120px);
    overflow-y: auto;
}

/* Container do PDF */
.pdf-container {
    width: 100%;
    height: 600px;
    border: none;
    background-color: #f9fafb;
    position: relative;
}

.pdf-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0;
}

/* Fallback para PDF */
.pdf-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9fafb;
}

.fallback-content {
    text-align: center;
    padding: 2rem;
    max-width: 400px;
}

.fallback-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.fallback-content h3 {
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.fallback-content p {
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.fallback-download {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.fallback-download:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Visualizador Mobile para PDF */
.mobile-pdf-viewer {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #f9fafb, #f3f4f6);
    padding: 2rem 1.5rem;
    box-sizing: border-box;
}

.mobile-pdf-header {
    text-align: center;
    margin-bottom: 2rem;
}

.mobile-pdf-header .pdf-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.mobile-pdf-header h3 {
    color: #374151;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.mobile-pdf-header p {
    color: #6b7280;
    font-size: 1rem;
}

.mobile-pdf-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.mobile-option-btn {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}

.mobile-option-btn:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.mobile-option-btn .option-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.mobile-option-btn .option-text {
    flex: 1;
}

.mobile-option-btn .option-text strong {
    display: block;
    color: #374151;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.mobile-option-btn .option-text span {
    color: #6b7280;
    font-size: 0.875rem;
}

.download-option:hover {
    border-color: #10b981;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.15);
}

.viewer-option:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.share-option:hover {
    border-color: #8b5cf6;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.15);
}

.mobile-pdf-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
}

.mobile-pdf-info p {
    color: #1e40af;
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
}

/* Ações do modal */
.modal-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background-color: #f9fafb;
    border-top: 1px solid #e5e7eb;
    gap: 1rem;
}

.modal-button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    min-width: 140px;
    justify-content: center;
}

.download-button {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.download-button:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.close-button {
    background-color: #6b7280;
    color: white;
}

.close-button:hover {
    background-color: #4b5563;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

/* Botão do cardápio na página principal */
.menu-button {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    border: none;
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    width: 100%;
}

.menu-button:hover {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

/* Responsividade do modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 85vh;
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-title {
        font-size: 1.25rem;
    }

    .close {
        font-size: 1.5rem;
    }

    .pdf-container {
        height: 400px;
    }

    .modal-actions {
        flex-direction: column;
        padding: 1rem;
    }

    .modal-button {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        margin: 2% auto;
        max-height: 90vh;
    }

    .pdf-container {
        height: 300px;
    }

    .modal-header {
        padding: 0.75rem;
    }

    .modal-title {
        font-size: 1.125rem;
    }
}

/* Responsividade */
@media (max-width: 640px) {
    .card {
        padding: 1rem;
    }

    .business-name {
        font-size: 1.25rem;
    }

    .content-page {
        padding: 1rem;
    }
}