/* Reset e Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #f8f4f0;
    --secondary-color: #e8ddd4;
    --accent-color: #d4a574;
    --text-primary: #3a3a3a;
    --text-secondary: #6b6b6b;
    --white: #ffffff;
    --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 32px rgba(0, 0, 0, 0.12);
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --gradient-warm: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    --gradient-soft: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--primary-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    background: var(--gradient-warm);
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 600px;
}

.birthday-badge {
    display: inline-block;
    background: var(--white);
    color: var(--accent-color);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 24px;
    box-shadow: var(--shadow-light);
    transform: scale(0);
    animation: scaleIn 0.6s ease-out 0.3s forwards;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
    opacity: 0;
    animation: slideUp 0.8s ease-out 0.6s forwards;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    opacity: 0;
    animation: slideUp 0.8s ease-out 0.9s forwards;
}

/* Decorações do Hero */
.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.confetti:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
    background: #ff6b6b;
}

.confetti:nth-child(2) {
    top: 60%;
    right: 20%;
    animation-delay: 2s;
    background: #4ecdc4;
}

.confetti:nth-child(3) {
    top: 40%;
    left: 70%;
    animation-delay: 4s;
    background: #45b7d1;
}

/* Controls Section */
.controls {
    background: var(--white);
    padding: 24px 0;
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

.controls .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.photo-counter {
    font-weight: 500;
    color: var(--text-secondary);
}

.photo-counter span {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.view-toggle {
    display: flex;
    background: var(--secondary-color);
    border-radius: 50px;
    padding: 4px;
}

.view-toggle button {
    border: none;
    background: transparent;
    padding: 12px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.view-toggle button.active {
    background: var(--white);
    color: var(--text-primary);
    box-shadow: var(--shadow-light);
}

/* Photo Gallery */
.photo-gallery {
    padding: 60px 0;
    min-height: 50vh;
}

.photo-grid {
    display: grid;
    gap: 20px;
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

.photo-grid.regular {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.photo-grid.masonry {
    columns: 4;
    column-gap: 20px;
}

.photo-item {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.4s ease;
    cursor: pointer;
    break-inside: avoid;
    margin-bottom: 20px;
    position: relative;
}

.photo-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.photo-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

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



/* Loading State */
.loading {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--secondary-color);
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 2;
}

.lightbox-image-container {
    position: relative;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.lightbox-image-container img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    display: block;
}

.lightbox-info {
    padding: 16px 24px;
    background: var(--white);
    text-align: center;
}

.lightbox-info span {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 500;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox-close {
    top: -25px;
    right: -25px;
    font-size: 2rem;
}

.lightbox-prev {
    left: -80px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: -80px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--white);
    transform: scale(1.1);
}

.lightbox-prev:hover {
    transform: translateY(-50%) scale(1.1);
}

.lightbox-next:hover {
    transform: translateY(-50%) scale(1.1);
}

/* Footer */
.footer {
    background: var(--gradient-soft);
    color: white;
    text-align: center;
    padding: 40px 0;
    margin-top: 60px;
}

.footer p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Animations */
@keyframes scaleIn {
    to {
        transform: scale(1);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

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

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

/* Responsive Design */
@media (max-width: 1200px) {
    .photo-grid.masonry {
        columns: 3;
    }
}

@media (max-width: 768px) {
    .photo-grid.masonry {
        columns: 2;
    }
    
    .controls .container {
        flex-direction: column;
        gap: 16px;
    }
    
    .lightbox-prev {
        left: -60px;
    }
    
    .lightbox-next {
        right: -60px;
    }
}

@media (max-width: 480px) {
    .photo-grid.masonry {
        columns: 1;
    }
    
    .photo-grid.regular {
        grid-template-columns: 1fr;
    }
    
    .lightbox-prev,
    .lightbox-next {
        display: none;
    }
    
    .container {
        padding: 0 16px;
    }
} 