@font-face {
    font-family: 'Waymar Script';
    src: url('../fonts/waymar-script.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --primary-color: #cc3e4b;
    --secondary-color: #e8a5ab;
    --tertiary-color: #f5d5d8;
    --background-light: #fff5f7;
    --text-dark: #2d2d2d;
    --text-light: #666;
    --shadow: rgba(204, 62, 75, 0.2);
}

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

body {
    font-family: 'Georgia', serif;
    color: var(--text-dark);
    background: var(--background-light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

body.rsvp-page {
    background: linear-gradient(rgba(255, 245, 247, 0.85), rgba(255, 245, 247, 0.85)), 
                url('../images/IMG_0612.jpg') center/cover fixed;
}

body.presentes-page {
    background: linear-gradient(rgba(255, 245, 247, 0.85), rgba(255, 245, 247, 0.85)), 
                url('../images/IMG_0607.jpg') center/cover fixed;
}

#cherry-blossoms {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 2;
}

/* Header Styles */
.hero {
    text-align: center;
    padding: 60px 20px;
}

.couple-names {
    font-family: 'Waymar Script', cursive;
    font-size: 5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px var(--shadow);
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.date {
    font-size: 1.2rem;
    color: var(--text-dark);
    font-style: italic;
}

/* Navigation */
.main-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.nav-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow);
}

.nav-button:hover {
    background: #b33540;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--shadow);
}

/* Photo Gallery */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.photo-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px var(--shadow);
    transition: transform 0.3s ease;
}

.photo-item:hover {
    transform: scale(1.05);
}

.photo-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
    font-style: italic;
}

/* Page Header */
.page-header {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px var(--shadow);
}

.page-header .couple-names {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.page-title {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.back-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 20px;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #b33540;
}

/* Form Styles */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px var(--shadow);
}

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

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

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--tertiary-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Georgia', serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 2px solid var(--tertiary-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-label:hover {
    border-color: var(--secondary-color);
    background: var(--background-light);
}

.radio-label input[type="radio"] {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.submit-button {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow);
}

.submit-button:hover {
    background: #b33540;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow);
}

.success-message {
    text-align: center;
    padding: 40px;
}

.success-message h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 20px;
}

.success-message p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-dark);
}

/* Presentes Grid */
.presentes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.presente-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.presente-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow);
}

.presente-card.comprado {
    opacity: 0.6;
    cursor: not-allowed;
}

.presente-card.comprado::after {
    content: 'COMPRADO';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.2rem;
}

.presente-card {
    position: relative;
}

.presente-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.presente-info {
    padding: 20px;
}

.presente-name {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.presente-description {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.presente-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-dark);
}

.loading {
    text-align: center;
    padding: 60px;
    font-size: 1.3rem;
    color: var(--text-light);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    overflow: auto;
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    max-width: 600px;
    position: relative;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--primary-color);
}

#modal-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

#modal-name {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

#modal-description {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.modal-price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.payment-section {
    border-top: 2px solid var(--tertiary-color);
    padding-top: 20px;
}

.payment-section h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

#qr-code-container {
    text-align: center;
    margin: 20px 0;
}

.payment-instructions {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
}

/* Admin Styles */
.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.admin-header {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px var(--shadow);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h1 {
    color: var(--primary-color);
    font-family: 'Waymar Script', cursive;
    font-size: 2.5rem;
}

.logout-button {
    padding: 10px 25px;
    background: var(--text-light);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-button:hover {
    background: var(--text-dark);
}

.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.tab-button {
    padding: 15px 30px;
    background: white;
    border: 2px solid var(--tertiary-color);
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.tab-button.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.tab-content {
    display: none;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px var(--shadow);
}

.tab-content.active {
    display: block;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.action-button {
    padding: 12px 25px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.action-button:hover {
    background: #b33540;
}

.action-button.secondary {
    background: var(--secondary-color);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th,
table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--tertiary-color);
}

table th {
    background: var(--background-light);
    color: var(--primary-color);
    font-weight: bold;
}

table tr:hover {
    background: var(--background-light);
}

.edit-button,
.delete-button {
    padding: 6px 12px;
    margin-right: 5px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.edit-button {
    background: var(--secondary-color);
    color: white;
}

.delete-button {
    background: #dc3545;
    color: white;
}

.edit-button:hover {
    background: var(--primary-color);
}

.delete-button:hover {
    background: #c82333;
}

/* Responsive */
@media (max-width: 768px) {
    .couple-names {
        font-size: 3rem;
    }
    
    .page-header .couple-names {
        font-size: 2.5rem;
    }
    
    .form-container {
        padding: 25px;
    }
    
    .presentes-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .admin-tabs {
        flex-direction: column;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    table {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .couple-names {
        font-size: 2.5rem;
    }
    
    .photo-item img {
        height: 250px;
    }
}

