/* ============================================
   Bossanova Kft. - Custom Styles
   ============================================ */

/* Brand Gradient Backgrounds */
.bg-brand-gradient {
    background: linear-gradient(135deg, #6366f1 0%, #22d3ee 100%);
}

.bg-brand-gradient-reverse {
    background: linear-gradient(135deg, #22d3ee 0%, #6366f1 100%);
}

.bg-navy-gradient {
    background: linear-gradient(180deg, #1e1b4b 0%, #0f0d2b 100%);
}

/* Text Gradient */
.text-brand-gradient {
    background: linear-gradient(135deg, #6366f1 0%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Section */
.hero-bg {
    background: linear-gradient(135deg, #1e1b4b 0%, #2d2a5e 50%, #1e1b4b 100%);
    position: relative;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.1) 0%, transparent 70%);
    animation: float 25s ease-in-out infinite reverse;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(5%, 5%) rotate(2deg); }
    50% { transform: translate(-3%, 8%) rotate(-1deg); }
    75% { transform: translate(7%, -3%) rotate(3deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.5s ease-out forwards;
}

.animate-slide-down {
    animation: slideDown 0.3s ease-out forwards;
}

/* Stagger animations */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
}

.dark .card-hover:hover {
    box-shadow: 0 20px 40px rgba(34, 211, 238, 0.1);
}

/* Service Card Image */
.service-card-img {
    transition: transform 0.5s ease;
}

.service-card-img:hover {
    transform: scale(1.05);
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #22d3ee 100%);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    border: 2px solid #6366f1;
    color: #6366f1;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.dark .btn-secondary {
    border-color: #22d3ee;
    color: #22d3ee;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #6366f1 0%, #22d3ee 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

/* Navbar */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #6366f1 0%, #22d3ee 100%);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Mobile Menu */
.mobile-menu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

.mobile-menu.open {
    max-height: 500px;
    opacity: 1;
}

/* Toast Notifications */
.toast {
    animation: slideInRight 0.3s ease-out, fadeOut 0.3s ease-in 4.7s forwards;
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(100%); }
}

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

::-webkit-scrollbar-track {
    background: #1e1b4b;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6366f1, #22d3ee);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #818cf8, #67e8f9);
}

/* Form inputs */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    background: white;
    color: #1f2937;
}

.dark .form-input {
    background: #2d2a5e;
    border-color: #4338ca;
    color: #e5e7eb;
}

.form-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-input.error {
    border-color: #ef4444;
}

/* Cookie Banner */
.cookie-banner {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Spinner */
.spinner {
    border: 3px solid rgba(99, 102, 241, 0.2);
    border-top-color: #6366f1;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

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

/* Hangman game */
.hangman-letter {
    transition: all 0.2s ease;
}

.hangman-letter:hover:not(:disabled) {
    transform: scale(1.1);
    background: linear-gradient(135deg, #6366f1 0%, #22d3ee 100%);
    color: white;
}

.hangman-letter:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.hangman-letter.correct {
    background: #22c55e;
    color: white;
}

.hangman-letter.wrong {
    background: #ef4444;
    color: white;
}

/* Admin Dashboard Tab */
.admin-tab {
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
}

.admin-tab.active {
    border-bottom-color: #6366f1;
    color: #6366f1;
}

.dark .admin-tab.active {
    border-bottom-color: #22d3ee;
    color: #22d3ee;
}

/* Page transitions */
#app {
    animation: fadeIn 0.3s ease-out;
}

/* Toggle switch for dark mode */
.toggle-switch {
    position: relative;
    width: 48px;
    height: 24px;
    background: #d1d5db;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.toggle-switch.active {
    background: linear-gradient(135deg, #6366f1, #22d3ee);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.toggle-switch.active::after {
    transform: translateX(24px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-bg::before,
    .hero-bg::after {
        display: none;
    }
}
