@import 'variables.css';

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Typography */
h1, h2, h3 {
    color: var(--primary-rose);
    margin-bottom: 1rem;
}

a {
    color: var(--primary-rose);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--primary-rose);
    color: var(--white);
    padding: 12px 24px;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #a33b5c;
    text-decoration: none;
}

.btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Header */
.main-header {
    background-color: var(--white);
    padding: 1.5rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.logo-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

.logo-main {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-rose);
    font-family: 'Georgia', serif;
}

.logo-sub {
    font-size: 1rem;
    color: var(--primary-rose);
    letter-spacing: 2px;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.main-nav a:hover, .main-nav a.active {
    background-color: var(--primary-rose);
    color: var(--white);
    text-decoration: none;
}

.header-actions {
    display: flex;
}

.btn-whatsapp {
    background-color: #25D366;
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    text-decoration: none;
}

/* Hero Section */
.hero-redesign {
    background-color: var(--hero-bg);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-redesign .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--primary-rose);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.hero-image-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-cake-img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(200, 75, 113, 0.2);
    z-index: 2;
    position: relative;
}

.floating-icon {
    position: absolute;
    font-size: 3rem;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

.icon-1 { top: 10%; left: 10%; animation-delay: 0s; }
.icon-2 { bottom: 20%; left: 0%; font-size: 4rem; animation-delay: 1s; }
.icon-3 { top: 20%; right: 10%; animation-delay: 2s; }
.icon-4 { bottom: 10%; right: 5%; font-size: 3.5rem; animation-delay: 3s; }

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

/* Features Banner */
.features-banner {
    background-color: var(--primary-rose);
    color: var(--white);
    padding: 1.5rem 0;
}

.features-banner .container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Home Menu Section */
.home-menu-section {
    padding: 4rem 0;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    color: var(--primary-rose);
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.menu-card {
    background-color: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.menu-card:hover {
    transform: translateY(-10px);
    text-decoration: none;
}

.menu-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.menu-card h3 {
    padding: 1.5rem 1rem;
    font-size: 1.2rem;
    color: var(--primary-rose);
}

/* Custom Cake Promo */
.custom-cake-promo {
    background-color: var(--rose-light);
    padding: 4rem 0;
}

.promo-container {
    display: flex;
    align-items: center;
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.promo-image {
    flex: 1;
}

.promo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 300px;
}

.promo-content {
    flex: 1;
    padding: 3rem;
    text-align: center;
}

.promo-content h2 {
    color: var(--primary-rose);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.promo-content p {
    margin-bottom: 2rem;
    color: var(--text-dark);
}

/* Updated Footer */
.main-footer {
    background-color: var(--primary-rose);
    color: var(--white);
    padding: 4rem 0 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--white);
}

.footer-col p, .footer-col ul {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.footer-col a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-bottom {
    background-color: rgba(0,0,0,0.1);
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

.footer-bottom .legal-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    margin: 0 10px;
    opacity: 0.8;
}

/* Forms */
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
.form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

/* Admin Styles */
.admin-header {
    background-color: var(--white);
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-nav {
    display: flex;
    gap: 15px;
}

.admin-content {
    padding: 20px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
th, td {
    padding: 10px;
    border: 1px solid var(--border-color);
    text-align: left;
}
th {
    background-color: var(--rose-light);
}

/* Grid layout for products */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}
.product-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}
.product-card img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}
.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
}
.badge-esgotado {
    background-color: var(--error-red);
    color: var(--white);
}
.badge-agendado {
    background-color: #f39c12;
    color: var(--white);
}

.error-message {
    color: var(--error-red);
    background-color: #ffebee;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}
.success-message {
    color: var(--success-green);
    background-color: #e8f5e9;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}
