@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@400;600;700;800&family=DM+Sans:wght@400;500;700&display=swap');

:root {
    --emerald-primary: #10b981;
    --emerald-glow: rgba(16, 185, 129, 0.15);
}

/* Custom Scrollbar for Premium Feel */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(16, 185, 129, 0.1);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(16, 185, 129, 0.3);
}

/* Animations */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-fade-in-delayed {
    opacity: 0;
    animation: fade-in 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

/* Premium Frame Gallery */
.frame-item {
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(0, 0, 0, 0.05);
    border-radius: 1.25rem;
    padding: 0.75rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
}

.dark .frame-item {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
}

.frame-item:hover {
    transform: translateY(-4px);
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.2);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.05);
}

.frame-item.active {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--emerald-primary);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1), 0 10px 20px -5px rgba(16, 185, 129, 0.1);
}

.frame-item canvas {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    transition: transform 0.4s ease;
}

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

.frame-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.9), transparent);
    padding: 1.5rem 0.5rem 0.6rem;
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.frame-item:hover .frame-label,
.frame-item.active .frame-label {
    opacity: 1;
    transform: translateY(0);
}

/* Sugesstion Chips */
.suggestion-chip {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #047857;
    padding: 0.4rem 0.8rem;
    border-radius: 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dark .suggestion-chip {
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.1);
}

.suggestion-chip:hover {
    background: var(--emerald-primary);
    border-color: var(--emerald-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

/* Download Buttons */
.download-btn {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dark .download-btn {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
}

.download-btn:hover {
    border-color: var(--emerald-primary);
    background: rgba(16, 185, 129, 0.02);
    transform: translateY(-2px);
}

.download-btn-primary {
    background: var(--emerald-primary);
    border: 1px solid var(--emerald-primary);
    border-radius: 1.25rem;
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    color: white;
    box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.3);
}

.download-btn-primary:hover {
    background: #059669;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 15px 30px -10px rgba(16, 185, 129, 0.4);
}

/* Input Overrides */
select {
    background-image: none !important;
}

/* Hide Spinners */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* High Contrast Warning */
.contrast-warning {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 14px;
    background: #FFF9E6;
    border-left: 4px solid #FFB800;
    color: #856404;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dark .contrast-warning {
    background: rgba(255, 184, 0, 0.1);
    color: #FFB800;
}