/*
 * Estilos para a página de erro 500 - Meelion
 * Arquivo: error500.css
 * Descrição: Estilos específicos para a página de erro 500 com design responsivo usando Tailwind CSS
 */

/* === CORES PRIMÁRIAS === */
:root {
    --primary-color: #C3F53C;
    --secondary-color: #2E6C86;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --bg-gray-50: #f9fafb;
    --bg-gray-100: #f3f4f6;
}

/* === CLASSES TAILWIND CUSTOMIZADAS === */
.text-primary {
    color: var(--secondary-color) !important;
}

.bg-primary\/10 {
    background-color: rgba(46, 108, 134, 0.1) !important;
}

.bg-secondary {
    background-color: var(--primary-color) !important;
}

.text-gray-900 {
    color: var(--text-primary) !important;
}

.text-gray-700 {
    color: #374151 !important;
}

.hover\:text-primary:hover {
    color: #1f2937 !important;
}

.text-gray-600 {
    color: var(--text-secondary) !important;
}

.text-gray-500 {
    color: var(--text-muted) !important;
}

.bg-gray-50 {
    background-color: var(--bg-gray-50) !important;
}

.bg-gray-100 {
    background-color: var(--bg-gray-100) !important;
}

.border-gray-200 {
    border-color: #e5e7eb !important;
}

/* === LAYOUT RESPONSIVO === */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .md\:py-16 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    .md\:py-8 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

.max-w-4xl {
    max-width: 56rem;
}

.max-w-3xl {
    max-width: 48rem;
}

/* === GRID SYSTEM === */
.grid {
    display: grid;
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.gap-8 {
    gap: 2rem;
}

@media (min-width: 768px) {
    .md\:gap-12 {
        gap: 3rem;
    }
}

.items-center {
    align-items: center;
}

/* === FLEXBOX === */
.flex {
    display: flex;
}

.flex-grow {
    flex-grow: 1;
}

.flex-col {
    flex-direction: column;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.justify-center {
    justify-content: center;
}

@media (min-width: 768px) {
    .md\:justify-start {
        justify-content: flex-start;
    }
}

.space-x-3 > :not([hidden]) ~ :not([hidden]) {
    margin-left: 0.75rem;
}

@media (min-width: 768px) {
    .md\:space-x-4 > :not([hidden]) ~ :not([hidden]) {
        margin-left: 1rem;
    }
}

.space-y-4 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .md\:space-y-6 > :not([hidden]) ~ :not([hidden]) {
        margin-top: 1.5rem;
    }
}

/* === TYPOGRAPHY === */
.text-center {
    text-align: center;
}

@media (min-width: 768px) {
    .md\:text-left {
        text-align: left;
    }
}

.text-7xl {
    font-size: 4.5rem;
    line-height: 1;
}

@media (min-width: 768px) {
    .md\:text-8xl {
        font-size: 6rem;
        line-height: 1;
    }
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

@media (min-width: 768px) {
    .md\:text-5xl {
        font-size: 3rem;
        line-height: 1;
    }
}

.text-base {
    font-size: 1rem;
    line-height: 1.5rem;
}

@media (min-width: 768px) {
    .md\:text-lg {
        font-size: 1.125rem;
        line-height: 1.75rem;
    }
    
    .md\:text-base {
        font-size: 1rem;
        line-height: 1.5rem;
    }
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

@media (min-width: 768px) {
    .md\:text-xl {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

@media (min-width: 768px) {
    .md\:text-sm {
        font-size: 0.875rem;
        line-height: 1.25rem;
    }
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.italic {
    font-style: italic;
}

/* === SPACING === */
.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-auto {
    margin-top: auto;
}

@media (min-width: 768px) {
    .md\:mb-6 {
        margin-bottom: 1.5rem;
    }
    
    .md\:mb-8 {
        margin-bottom: 2rem;
    }
    
    .md\:mt-6 {
        margin-top: 1.5rem;
    }
    
    .md\:mt-8 {
        margin-top: 2rem;
    }
    
    .md\:mt-0 {
        margin-top: 0;
    }
}

.p-3 {
    padding: 0.75rem;
}

@media (min-width: 768px) {
    .md\:p-4 {
        padding: 1rem;
    }
}

.py-2\.5 {
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
}

@media (min-width: 768px) {
    .md\:py-3 {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 768px) {
    .md\:px-8 {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* === DIMENSÕES === */
.w-7 {
    width: 1.75rem;
}

.h-7 {
    height: 1.75rem;
}

@media (min-width: 768px) {
    .md\:w-8 {
        width: 2rem;
    }
    
    .md\:h-8 {
        height: 2rem;
    }
}

.w-full {
    width: 100%;
}

.max-w-\[280px\] {
    max-width: 280px;
}

@media (min-width: 768px) {
    .md\:max-w-md {
        max-width: 28rem;
    }
}

/* === BORDAS E SOMBRAS === */
.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-full {
    border-radius: 9999px;
}

.\!rounded-button {
    border-radius: 0.375rem !important;
}

.border-t {
    border-top-width: 1px;
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.hover\:shadow-lg:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* === TRANSIÇÕES === */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.duration-300 {
    transition-duration: 300ms;
}

/* === UTILITÁRIOS === */
.whitespace-nowrap {
    white-space: nowrap;
}

.object-contain {
    object-fit: contain;
}

.cursor-pointer {
    cursor: pointer;
}

/* === CAIXA DE CÓDIGO DE ERRO === */
.error-code-box {
    background-color: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-family: 'Courier New', monospace;
    color: #374151;
    font-weight: 600;
}

/* === HOVER EFFECTS === */
a:hover {
    text-decoration: none;
}

button:hover {
    text-decoration: none;
}

/* === RESPONSIVIDADE ADICIONAL === */
@media (max-width: 767px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .text-7xl {
        font-size: 3.5rem;
    }
    
    .text-3xl {
        font-size: 1.5rem;
        line-height: 2rem;
    }
}

/* === ANIMAÇÕES === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-code-box {
    animation: fadeIn 0.5s ease-out;
}

/* === ACESSIBILIDADE === */
@media (prefers-reduced-motion: reduce) {
    .transition-all {
        transition: none;
    }
    
    .error-code-box {
        animation: none;
    }
}

/* === PRINT STYLES === */
@media print {
    .shadow-md,
    .hover\:shadow-lg:hover {
        box-shadow: none;
    }
    
    .bg-secondary {
        background-color: #f3f4f6 !important;
        color: #000 !important;
    }
}