/* ===================================
   Portal da Pizza - Custom Styles
   ================================= */

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&family=Dancing+Script:wght@700&display=swap');

/* ===================================
   Global Styles
   ================================= */
:root {
    --primary-color: #d2691e;
    --secondary-color: #8b4513;
    --accent-color: #ff6b35;
    --success-color: #25d366;
    --dark-color: #2c1810;
    --light-color: #fff8f0;
    --gradient-bg: linear-gradient(135deg, #d2691e 0%, #ff6b35 100%);
    --shadow: 0 4px 15px rgba(210, 105, 30, 0.2);
    --shadow-hover: 0 8px 25px rgba(210, 105, 30, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* ===================================
   Loading Screen
   ================================= */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.pizza-loader {
    text-align: center;
    color: white;
}

.pizza-slice {
    width: 60px;
    height: 60px;
    border-radius: 50% 0;
    background: #fff;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loading-text {
    font-size: 18px;
    font-weight: 300;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* ===================================
   Navigation
   ================================= */
.navbar {
    background: rgba(44, 24, 16, 0.95) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    background: rgba(44, 24, 16, 1) !important;
}

.navbar-brand {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    font-weight: 700;
}

.brand-text {
    background: var(--gradient-bg);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-bg);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* ===================================
   Hero Section
   ================================= */
.hero-section {
    height: 100vh;
    background: linear-gradient(rgba(44, 24, 16, 0.7), rgba(44, 24, 16, 0.7)),
                url('https://images.unsplash.com/photo-1513104890138-7c749659a591?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(44, 24, 16, 0.4) 70%);
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 2;
    position: relative;
}

.hero-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    animation: float 3s ease-in-out infinite;
}

.hero-title {
    font-family: 'Dancing Script', cursive;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    background: var(--gradient-bg);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-description {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.hero-buttons {
    margin-top: 2rem;
}

.animate-fade-in {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ===================================
   Buttons
   ================================= */
.btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-bg);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    background: linear-gradient(135deg, #ff6b35 0%, #d2691e 100%);
}

.btn-whatsapp {
    background: var(--success-color);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #20b954;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    color: white;
}

.btn-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.btn-instagram:hover {
    transform: translateY(-3px);
    color: white;
}

.pulse-animation {
    animation: pulse-btn 2s infinite;
}

@keyframes pulse-btn {
    0% {
        box-shadow: 0 0 0 0 rgba(210, 105, 30, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(210, 105, 30, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(210, 105, 30, 0);
    }
}

/* ===================================
   Sections
   ================================= */
.section-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-bg);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

/* ===================================
   Menu Styles
   ================================= */
.menu-tabs {
    margin-bottom: 3rem;
}

.menu-tabs .nav-link {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 25px;
    margin: 0 10px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.menu-tabs .nav-link.active {
    background: var(--gradient-bg);
    color: white;
    border-color: transparent;
}

.menu-tabs .nav-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.menu-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.menu-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.menu-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.menu-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.menu-card:hover .menu-image img {
    transform: scale(1.1);
}

.menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 24, 16, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.menu-card:hover .menu-overlay {
    opacity: 1;
}

.btn-order {
    background: var(--success-color);
    color: white;
    border-radius: 25px;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-order:hover {
    background: #20b954;
    transform: scale(1.05);
    color: white;
    text-decoration: none;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.card-text {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: right;
}

/* ===================================
   Pizza Sizes and Badges
   ================================= */
.pizza-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.size-badge {
    background: var(--gradient-bg);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.size-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(210, 105, 30, 0.3);
}

.size-badge.unavailable {
    background: #6c757d;
    opacity: 0.7;
    cursor: not-allowed;
}

.special-pizza {
    position: relative;
}

.special-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
    animation: pulse-badge 2s infinite;
}

.premium-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ffd700, #ffb700);
    color: #2c1810;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
    animation: glow-badge 3s infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes glow-badge {
    0%, 100% { box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3); }
    50% { box-shadow: 0 4px 20px rgba(255, 215, 0, 0.6); }
}

.premium .card-title {
    background: linear-gradient(135deg, #ffd700, #ffb700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.special-pizza .card-title {
    color: var(--accent-color);
}

/* ===================================
   Responsive Pizza Cards
   ================================= */
@media (max-width: 768px) {
    .pizza-sizes {
        justify-content: center;
    }
    
    .size-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }
    
    .special-badge,
    .premium-badge {
        font-size: 0.6rem;
        padding: 0.3rem 0.6rem;
        top: 10px;
        right: 10px;
    }
    
    .menu-image {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .pizza-sizes {
        flex-direction: column;
        align-items: center;
    }
    
    .size-badge {
        min-width: 120px;
        text-align: center;
    }
}

/* ===================================
   Pizza Menu Table (Modal)
   ================================= */
.pizza-menu-table {
    font-size: 0.9rem;
}

.pizza-menu-table th {
    background: var(--gradient-bg) !important;
    color: white;
    border: none;
    text-align: center;
    font-weight: 600;
    padding: 1rem 0.5rem;
}

.pizza-menu-table td {
    vertical-align: middle;
    border-color: #dee2e6;
    padding: 0.75rem 0.5rem;
}

.pizza-menu-table tr:hover {
    background-color: rgba(210, 105, 30, 0.05);
    transform: scale(1.01);
    transition: all 0.2s ease;
}

.pizza-menu-table .btn-success {
    background: var(--success-color);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.pizza-menu-table .btn-success:hover {
    background: #20b954;
    transform: scale(1.1);
}

.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: var(--gradient-bg);
    color: white;
    border-radius: 20px 20px 0 0;
    border: none;
    padding: 1.5rem 2rem;
}

.modal-title {
    font-weight: 600;
    font-size: 1.3rem;
}

.btn-close {
    filter: invert(1);
}

.modal-body {
    padding: 2rem;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-footer {
    border: none;
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-radius: 0 0 20px 20px;
}

@media (max-width: 768px) {
    .pizza-menu-table {
        font-size: 0.8rem;
    }
    
    .pizza-menu-table th,
    .pizza-menu-table td {
        padding: 0.5rem 0.25rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-header,
    .modal-footer {
        padding: 1rem;
    }
}

/* ===================================
   Contact Section
   ================================= */
.contact-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-info {
    padding: 3rem;
    background: var(--light-color);
}

.contact-actions {
    padding: 3rem;
    background: white;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    margin-top: 0.25rem;
}

.contact-item strong {
    color: var(--dark-color);
    font-size: 1.1rem;
}

.contact-item p {
    margin: 0;
    color: #666;
}

/* ===================================
   Map Section
   ================================= */
.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container iframe {
    border-radius: 20px;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.map-container:hover iframe {
    filter: grayscale(0%);
}

/* ===================================
   Footer
   ================================= */
footer {
    background: var(--dark-color) !important;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    margin: 0 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    color: white;
}

/* ===================================
   Float Buttons
   ================================= */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--success-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    background: #20b954;
    transform: scale(1.1);
    color: white;
    text-decoration: none;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

/* ===================================
   Responsive Design
   ================================= */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-logo {
        width: 80px;
        height: 80px;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .contact-info,
    .contact-actions {
        padding: 2rem;
    }
    
    .menu-tabs .nav-link {
        margin: 5px;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .back-to-top {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .menu-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .menu-tabs .nav-link {
        margin: 5px 0;
        width: 200px;
        text-align: center;
    }
}

/* ===================================
   Animations
   ================================= */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ===================================
   Custom Scrollbar
   ================================= */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-bg);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* ===================================
   Additional Effects
   ================================= */
.glow-effect {
    box-shadow: 0 0 20px rgba(210, 105, 30, 0.3);
}

.text-gradient {
    background: var(--gradient-bg);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===================================
   Menu Items Spacing
   ================================= */
.menu-item {
    margin-bottom: 2.5rem !important;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.menu-item:last-child {
    margin-bottom: 0 !important;
}

.menu-list .menu-item + .menu-item {
    margin-top: 2rem;
}

/* Espaçamento específico para pizzas especiais */
.menu-item.special-pizza {
    margin-bottom: 3rem !important;
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                var(--gradient-bg) border-box;
}

.menu-item.special-pizza:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(210, 105, 30, 0.2);
}

/* ===================================
   WhatsApp Size Buttons Improvements
   ================================= */
.size-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
    align-items: center;
    margin-top: 1rem;
}

.size-buttons .btn {
    flex: 0 0 auto;
    min-width: 120px;
    padding: 0.75rem 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
}

.size-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

/* Botões desabilitados */
.size-buttons .btn:disabled,
.size-buttons .btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.size-buttons .btn:disabled:hover,
.size-buttons .btn.disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Responsivo para tablets */
@media (max-width: 768px) {
    .size-buttons {
        gap: 0.75rem;
        justify-content: center;
    }
    
    .size-buttons .btn {
        min-width: 110px;
        padding: 0.7rem 0.9rem;
        font-size: 0.9rem;
    }
}

/* Responsivo para dispositivos móveis */
@media (max-width: 576px) {
    .size-buttons {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .size-buttons .btn {
        min-width: unset;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        padding: 1rem;
        font-size: 1rem;
        min-height: 48px; /* Touch-friendly height */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .size-buttons .btn i {
        margin-right: 0.5rem;
    }
}

/* ===================================
   Developer Info in Footer
   ================================= */
.developer-info {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.developer-info:hover {
    opacity: 1;
}

.developer-line {
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.developer-line:last-child {
    margin-bottom: 0;
}

.developer-link {
    color: var(--primary-color) !important;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.developer-link:hover {
    color: var(--accent-color) !important;
    text-decoration: underline;
}

.developer-info small {
    font-size: 0.75rem;
    line-height: 1.4;
}

.developer-info .fas {
    opacity: 0.6;
    width: 12px;
}

.developer-info strong {
    color: #999;
    font-weight: 600;
}

@media (max-width: 576px) {
    .developer-info small {
        font-size: 0.7rem;
    }
    
    .developer-line {
        margin-bottom: 0.3rem;
    }
}
