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

body {
    font-family: 'Comic Sans MS', 'Arial', sans-serif;
    background: linear-gradient(135deg, #ffc0e3 0%, #e6ccff 50%, #b3e5fc 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
    animation: bounce 2s infinite;
}

.sparkle {
    font-size: 40px;
    display: inline-block;
    margin-bottom: 10px;
    animation: spin 3s linear infinite;
}

h1 {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #ff1493 0%, #9932cc 50%, #4169e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    margin: 10px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.subtitle {
    font-size: 1.3rem;
    color: #9932cc;
    font-weight: bold;
    margin-top: 10px;
}

/* Category Buttons */
.categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.category-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.category-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.category-btn.active {
    background: linear-gradient(135deg, #ff69b4 0%, #9932cc 100%);
    color: white;
    transform: scale(1.08);
}

.category-btn.inactive {
    background: white;
    color: #9932cc;
}

/* Gallery Grid */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.art-card {
    cursor: pointer;
    animation: fadeIn 0.5s ease;
}

.art-card:hover {
    transform: scale(1.08) translateY(-10px);
}

.art-image {
    width: 100%;
    height: 200px;
    border-radius: 20px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    cursor: pointer;
}

.art-card:hover .art-image {
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
}

.art-info {
    text-align: center;
    margin-top: 15px;
}

.art-emoji {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.art-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #9932cc;
    transition: color 0.3s ease;
}

.art-card:hover .art-title {
    color: #ff1493;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 30px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    color: #9932cc;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #ff1493;
}

.modal-image {
    width: 100%;
    height: 300px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-align: center;
}

.modal-emoji {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 15px;
}

.modal-category {
    text-align: center;
    color: #9932cc;
    font-weight: bold;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.love-btn {
    display: block;
    margin: 0 auto;
    padding: 15px 40px;
    background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 105, 180, 0.4);
}

.love-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(255, 105, 180, 0.6);
}

/* Floating decorations */
.float-decoration {
    position: fixed;
    font-size: 2.5rem;
    opacity: 0.7;
    pointer-events: none;
    animation: float 3s ease-in-out infinite;
}

.float1 { bottom: 20px; right: 20px; animation-delay: 0s; }
.float2 { bottom: 100px; right: 50px; animation-delay: 0.3s; }
.float3 { bottom: 150px; right: 20px; animation-delay: 0.6s; }

/* Animations */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

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

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

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

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

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }

    .categories {
        gap: 10px;
    }

    .category-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    font-size: 1.5rem;
    color: #9932cc;
    font-weight: bold;
}