/* Custom Styles & Overrides */

/* Glassmorphism Presets */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark .glass {
    background: rgba(19, 17, 28, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes slideOut {
    from { transform: translateX(0); }
    to { transform: translateX(105%); }
}

.animate-fade-in {
    animation: fadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slide-in {
    animation: slideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slide-out {
    animation: slideOut 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}

.dark ::-webkit-scrollbar-thumb {
    background: #334155;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Card gradients & custom shadows */
.card-shine {
    position: relative;
    overflow: hidden;
}

.card-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 45%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 55%
    );
    transform: rotate(45deg);
    transition: transform 0.5s ease;
    pointer-events: none;
}

.card-shine:hover::after {
    transform: translate(50%, 50%) rotate(45deg);
}

/* Input styles focus ring */
.input-focus {
    transition: all 0.2s ease-in-out;
}
.input-focus:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.dark .input-focus:focus {
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.15);
}

/* Simulado Grid item state colors */
.btn-grid-unanswered {
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}
.dark .btn-grid-unanswered {
    background-color: #1e1b2e;
    color: #94a3b8;
    border: 1px solid #2d293e;
}

.btn-grid-answered {
    background-color: #e0e7ff;
    color: #4f46e5;
    border: 1px solid #c7d2fe;
}
.dark .btn-grid-answered {
    background-color: #312e81;
    color: #a5b4fc;
    border: 1px solid #4338ca;
}

.btn-grid-bookmarked {
    background-color: #fef3c7;
    color: #d97706;
    border: 1px solid #fde68a;
}
.dark .btn-grid-bookmarked {
    background-color: #78350f;
    color: #fcd34d;
    border: 1px solid #92400e;
}

.btn-grid-current {
    box-shadow: 0 0 0 2px #6366f1, 0 0 0 4px rgba(99, 102, 241, 0.3);
}
.dark .btn-grid-current {
    box-shadow: 0 0 0 2px #818cf8, 0 0 0 4px rgba(129, 140, 248, 0.3);
}

.app-logo {
    display: block;
    width: 250px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 250 / 100;
    object-fit: contain;
}

.app-logo-sm {
    width: 150px;
}

.app-logo-lg {
    width: 250px;
}
