/* CSS personalizat pentru EpicLands */

/* Animații și tranziții */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(37, 132, 238, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(37, 132, 238, 0.8);
    }
}

/* Animație pentru cursorul de typing */
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.cursor-blink {
    animation: blink 1s infinite;
    color: #2584EE;
    font-weight: bold;
}

/* Culori principale pentru EpicLands */
:root {
    --main-color: #2584EE;
    --secondary-color: #7DBBFF;
    --main-hover: #1e6bc7;
    --secondary-hover: #6ca8e6;
}

/* Animări pentru secțiuni */
.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #2584EE 0%, #7DBBFF 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #7DBBFF 0%, #2584EE 100%);
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #2584EE;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Gradient text animation */
.gradient-text {
    background: linear-gradient(135deg, #2584EE 0%, #7DBBFF 50%, #2584EE 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Button effects */
.btn-glow:hover {
    animation: glow 2s ease-in-out infinite;
}

/* Form styling */
.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

/* Mobile menu animation */
.mobile-menu-enter {
    animation: slideDown 0.3s ease-out;
}

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

/* Success and error messages */
.message-success {
    background: linear-gradient(135deg, #2584EE 0%, #7DBBFF 100%);
    border-left: 4px solid #1e6bc7;
}

.message-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-left: 4px solid #b91c1c;
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .card-hover:hover {
        transform: translateY(-4px) scale(1.01);
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for accessibility */
.focus-visible:focus {
    outline: 2px solid #2584EE;
    outline-offset: 2px;
}

/* Discord link glowing effect */
.discord-link {
    position: relative;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.discord-link:hover {
    color: #2584EE !important;
    text-shadow: 0 0 10px rgba(37, 132, 238, 0.8),
                 0 0 20px rgba(37, 132, 238, 0.6),
                 0 0 30px rgba(37, 132, 238, 0.4);
    transform: translateY(-1px);
}

.discord-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(37, 132, 238, 0.1), transparent);
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.discord-link:hover::before {
    opacity: 1;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
