/* Component-specific styles extracted from JavaScript */

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
    transition: all 0.3s ease;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
}

/* Notification System */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    font-weight: 500;
    max-width: 400px;
    color: white;
    transform: translateX(100px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.notification.show {
    transform: translateX(0);
}

.notification.notification-success {
    background: var(--accent-primary);
}

.notification.notification-error {
    background: #dc3545;
}

.notification.notification-info {
    background: var(--accent-secondary);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: auto;
}

/* Animated elements for intersection observer */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar enhancements */
.navbar {
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: var(--overlay-bg) !important;
    box-shadow: 0 2px 20px var(--shadow-light);
    backdrop-filter: blur(15px);
}

/* Theme toggle button */
.theme-toggle {
    background: var(--bg-primary);
    border: 2px solid var(--text-secondary);
    color: var(--text-primary);
    border-radius: 20px;
    width: 60px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-family: 'Oooh Baby', cursive;
    font-weight: 600;
    font-size: 1rem;
    margin: 0 0 0 15px;
    vertical-align: middle;
}

.theme-toggle:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: var(--bg-secondary);
    transform: none;
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.2);
}

.theme-toggle i {
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.dark-mode .theme-toggle {
    background: var(--bg-secondary);
    border-color: var(--text-secondary);
    color: var(--text-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.dark-mode .theme-toggle:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: var(--bg-tertiary);
}

@media (max-width: 768px) {
    .theme-toggle {
        width: 50px;
        height: 28px;
        font-size: 0.9rem;
        border-radius: 15px;
        margin: 0 0 0 10px;
    }
    
    .theme-toggle i {
        font-size: 0.8rem;
    }
    
    .back-to-top {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
}

/* Utility classes for Alpine.js transitions */
.fade-in-enter {
    opacity: 0;
    transform: translateY(20px);
}

.fade-in-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.fade-in-leave {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-leave-active {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.slide-in-enter {
    transform: translateX(100px);
}

.slide-in-enter-active {
    transform: translateX(0);
    transition: transform 0.3s ease;
}

.slide-in-leave {
    transform: translateX(0);
}

.slide-in-leave-active {
    transform: translateX(100px);
    transition: transform 0.3s ease;
} 