@import url('https://fonts.cdnfonts.com/css/gilroy-bold');

/* Gilroy font family mapping */
* {
    font-family: 'Gilroy-Regular', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Font weight mapping for Gilroy */
.font-normal,
[class*="font-normal"] {
    font-family: 'Gilroy-Regular', sans-serif;
    font-weight: 400;
}

.font-medium,
[class*="font-medium"] {
    font-family: 'Gilroy-Medium', sans-serif;
    font-weight: 500;
}

.font-semibold,
[class*="font-semibold"] {
    font-family: 'Gilroy-Medium', sans-serif;
    font-weight: 600;
}

.font-bold,
[class*="font-bold"] {
    font-family: 'Gilroy-Bold', sans-serif;
    font-weight: 700;
}

body {
    font-family: 'Gilroy-Regular', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(180deg, #3D3B8E 0%, #5B4FA3 40%, #7B6CB7 80%, #9B89CC 100%);
    min-height: 100vh;
}

.gradient-bg {
    background: linear-gradient(180deg, #3D3B8E 0%, #5B4FA3 50%, #7B6CB7 100%);
    position: relative;
    overflow: hidden;
    min-height: 700px;
}

@media (max-width: 768px) {
    .gradient-bg {
        min-height: 600px;
    }
}

/* Pulse indicator animation */
.pulse-indicator {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    50% { 
        opacity: 0.6;
        transform: translateY(-10px) scale(1.05);
    }
}

.rainbow-card-1 {
    border-left: 5px solid #FF6B35;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, white 50%);
}

.rainbow-card-2 {
    border-left: 5px solid #FFC107;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.05) 0%, white 50%);
}

.rainbow-card-3 {
    border-left: 5px solid #4CAF50;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.05) 0%, white 50%);
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.heart-btn {
    transition: all 0.2s ease;
}

.heart-btn:hover {
    transform: scale(1.1);
}

.heart-btn.liked {
    color: #ef4444;
}

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

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

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

.animate-bounce {
    animation: bounce 1s ease-in-out infinite;
}

/* Theme selector styles */
.theme-option input:checked + .theme-card {
    border-width: 3px;
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.theme-card {
    transition: all 0.3s ease;
}

.theme-option:hover .theme-card {
    transform: translateY(-2px);
}

/* Rainbow band hover effects */
.rainbow-band {
    cursor: pointer;
    pointer-events: all;
}

.rainbow-band:hover {
    opacity: 1 !important;
    filter: brightness(1.15) drop-shadow(0 0 10px currentColor);
    stroke: rgba(255,255,255,0.3);
    stroke-width: 2;
}

.rainbow-svg {
    cursor: pointer;
    pointer-events: all;
}

/* Rainbow labels styling */
.rainbow-label {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-family: 'Gilroy-Regular', sans-serif;
}

@media (max-width: 768px) {
    .rainbow-label {
        font-size: 18px;
    }
}

.char-counter {
    font-size: 0.875rem;
    color: #6b7280;
}

.char-counter.warning {
    color: #f59e0b;
}

.char-counter.error {
    color: #ef4444;
}

/* Advanced Modal Animations */
@keyframes modalBackdropFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(12px);
    }
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(60px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

@keyframes rippleEffect {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.modal-backdrop-animated {
    animation: modalBackdropFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-content-animated {
    animation: modalSlideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-header-animated {
    animation: contentFadeIn 0.5s ease-out 0.2s backwards;
}

.modal-body-animated {
    animation: contentFadeIn 0.5s ease-out 0.3s backwards;
}

.modal-footer-animated {
    animation: contentFadeIn 0.5s ease-out 0.4s backwards;
}

