/**
 * Design System CSS
 * Version: 1.0
 * Last update: December 2024
 */

/* ============================================
   RESET AND BASE
   ============================================ */

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e9ff 25%, #d1deff 50%, #c2d3ff 75%, #b3c8ff 100%);
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Efeito de animação sutil no background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(5, 17, 242, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(30, 58, 255, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(93, 126, 255, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 100% !important;
}

/* ============================================
   FLEXBOX STRUCTURE FOR FIXED FOOTER
   ============================================ */

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content-wrapper {
    flex: 1;
}

/* ============================================
   LIQUID GLASS EFFECT
   ============================================ */

.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow:
        0 8px 32px 0 rgba(5, 17, 242, 0.1),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.8),
        transparent
    );
}

/* ============================================
   CARD HOVER EFFECTS
   ============================================ */

.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.card-hover:hover {
    box-shadow:
        0 25px 50px -12px rgba(5, 17, 242, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.3);
}

.card-hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 0.75rem;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
}

.card-hover:hover::after {
    opacity: 1;
}

/* ============================================
   SHINE EFFECT
   ============================================ */

.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent);
    transition: left 0.5s;
}

.shine-effect:hover::before {
    left: 100%;
}

/* ============================================
   GRADIENT TEXT
   ============================================ */

.gradient-text {
    background: linear-gradient(135deg, #0511F2 0%, #1A237E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary {
    background: linear-gradient(135deg, #0511F2 0%, #1A237E 100%);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px 0 rgba(5, 17, 242, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(5, 17, 242, 0.6);
}

.btn-success {
    background: linear-gradient(135deg, #10B981 0%, #06D6A0 100%);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px 0 rgba(16, 185, 129, 0.4);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(16, 185, 129, 0.6);
}

.btn-danger {
    background: linear-gradient(135deg, #EF4444 0%, #F43F5E 100%);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px 0 rgba(239, 68, 68, 0.4);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(239, 68, 68, 0.6);
}

/* ============================================
   SECTION NUMBER BADGE
   ============================================ */

.section-number {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 0.875rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: linear-gradient(135deg, #0511F2 0%, #1e3aff 50%, #3b5bff 100%);
    color: white;
    flex-shrink: 0;
    box-shadow:
        0 4px 12px 0 rgba(5, 17, 242, 0.4),
        0 2px 4px 0 rgba(5, 17, 242, 0.2),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-number::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 9999px;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.3) 0%,
        transparent 50%,
        rgba(255, 255, 255, 0.1) 100%);
    pointer-events: none;
}

.section-number:hover {
    box-shadow:
        0 6px 16px 0 rgba(5, 17, 242, 0.5),
        0 2px 6px 0 rgba(5, 17, 242, 0.3),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

/* ============================================
   SIDE MODAL
   ============================================ */

.side-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s;
}

.side-modal.active {
    visibility: visible;
    opacity: 1;
}

.side-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.side-modal-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 90%;
    max-width: 600px;
    height: 100%;
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e9ff 100%);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.side-modal.active .side-modal-content {
    transform: translateX(0);
}

.side-modal-header {
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(5, 17, 242, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(5, 17, 242, 0.1);
}

.side-modal-close {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: rgba(5, 17, 242, 0.1);
    color: #0511F2;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.side-modal-close:hover {
    background: rgba(5, 17, 242, 0.2);
    transform: rotate(90deg);
}

.side-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.side-modal-body::-webkit-scrollbar {
    width: 8px;
}

.side-modal-body::-webkit-scrollbar-track {
    background: rgba(5, 17, 242, 0.05);
}

.side-modal-body::-webkit-scrollbar-thumb {
    background: rgba(5, 17, 242, 0.2);
    border-radius: 4px;
}

.side-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(5, 17, 242, 0.3);
}

/* ============================================
   FLOATING BUTTON
   ============================================ */

.floating-info-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, #0511F2 0%, #1e3aff 50%, #3b5bff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 8px 24px rgba(5, 17, 242, 0.4),
        0 4px 8px rgba(5, 17, 242, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: float-pulse 3s ease-in-out infinite;
}

.floating-info-btn:hover {
    transform: scale(1.1) translateY(-4px);
    box-shadow:
        0 12px 32px rgba(5, 17, 242, 0.5),
        0 6px 12px rgba(5, 17, 242, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.floating-info-btn:active {
    transform: scale(0.95);
}

.floating-info-btn svg {
    width: 2rem;
    height: 2rem;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@keyframes float-pulse {
    0%, 100% {
        transform: translateY(0) scale(1);
        box-shadow:
            0 8px 24px rgba(5, 17, 242, 0.4),
            0 4px 8px rgba(5, 17, 242, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    50% {
        transform: translateY(-8px) scale(1.05);
        box-shadow:
            0 12px 32px rgba(5, 17, 242, 0.5),
            0 6px 12px rgba(5, 17, 242, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

/* Pulsing glow effect */
.floating-info-btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.3) 0%,
        transparent 50%,
        rgba(255, 255, 255, 0.1) 100%);
    opacity: 0;
    animation: pulse-glow 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(5, 17, 242, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(5, 17, 242, 0.5);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 3s ease-in-out infinite;
}

/* ============================================
   GRADIENT MODERN
   ============================================ */

.gradient-modern {
    background: linear-gradient(135deg,
        rgba(5, 17, 242, 0.1) 0%,
        rgba(30, 58, 255, 0.05) 50%,
        rgba(93, 126, 255, 0.1) 100%);
}

/* ============================================
   UTILITIES
   ============================================ */

/* Focus states for accessibility */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #0511F2;
    outline-offset: 2px;
}

/* Smooth transitions */
* {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #0511F2 0%, #1e3aff 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0a1aff 0%, #2e4eff 100%);
}

