/* File: assets/css/themes.css */

/*--------------------------------------------------------------
# Theme Toggle Switch Styles
--------------------------------------------------------------*/
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 26px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.theme-icons {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 5px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.sun-icon, .moon-icon {
    font-size: 14px;
    color: white;
}

.sun-icon {
    color: #f1c40f;
}

.moon-icon {
    color: #f5f6fa;
}

/*--------------------------------------------------------------
# Dark Theme Specific Styles
--------------------------------------------------------------*/
[data-theme="dark"] {
    /* Base Colors - Dark Mode */
    --primary-color: #6f83ff;
    --primary-light: #8a9bff;
    --primary-dark: #5a66c5;
    --secondary-color: #32d8ff;
    --accent-color: #ff7a5c;
    
    /* Text Colors */
    --text-color: #e2e8f0;
    --text-light: #a0aec0;
    --text-dark: #f8f9fa;
    
    /* Background Colors */
    --bg-color: #1a202c;
    --bg-alt: #2d3748;
    --bg-light: #4a5568;
    
    /* Border Colors */
    --border-color: #4a5568;
    --border-light: #2d3748;
    
    /* Status Colors - Adjusted for dark mode */
    --success-color: #48bb78;
    --info-color: #4fd1e1;
    --warning-color: #f6ad55;
    --danger-color: #fc8181;
    
    /* Shadow */
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Dark theme header styles */
[data-theme="dark"] .site-header {
    background-color: #1a202c;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Dark theme search box */
[data-theme="dark"] .search-box {
    background-color: #2d3748;
}

[data-theme="dark"] .search-box input::placeholder {
    color: #a0aec0;
}

/* Dark theme hero section */
[data-theme="dark"] .hero-section {
    background: linear-gradient(135deg, #4c3db2 0%, #352b8b 100%);
}

/* Dark theme cards (pet, product, category) */
[data-theme="dark"] .pet-card {
    background-color: #2d3748;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .pet-card h4 {
    color: #e2e8f0;
}

[data-theme="dark"] .product-card,
[data-theme="dark"] .category-card,
[data-theme="dark"] .blog-card,
[data-theme="dark"] .benefit-item {
    background-color: #2d3748;
    border-color: #4a5568;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Dark theme testimonials */
[data-theme="dark"] .testimonial-content {
    background-color: #2d3748;
}

[data-theme="dark"] .testimonial-content::after {
    background-color: #2d3748;
}

/* Dark theme form elements */
[data-theme="dark"] .form-control {
    background-color: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

[data-theme="dark"] .form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(111, 131, 255, 0.25);
}

[data-theme="dark"] input::placeholder {
    color: #a0aec0;
}

/* Dark theme buttons */
[data-theme="dark"] .btn-outline-primary {
    color: #6f83ff;
    border-color: #6f83ff;
}

[data-theme="dark"] .btn-outline-primary:hover {
    background-color: #6f83ff;
    color: #1a202c;
}

/* Dark theme mobile menu */
[data-theme="dark"] .bar {
    background-color: #e2e8f0;
}

[data-theme="dark"] .mobile-search-panel {
    background-color: #1a202c;
}

[data-theme="dark"] .search-box-mobile {
    background-color: #2d3748;
}

/* Dark theme dropdown menu */
[data-theme="dark"] .dropdown-menu {
    background-color: #2d3748;
    border-color: #4a5568;
}

[data-theme="dark"] .dropdown-menu a {
    border-color: #4a5568;
}

[data-theme="dark"] .dropdown-menu a:hover {
    background-color: #4a5568;
}

/* Dark theme footer section */
[data-theme="dark"] .site-footer {
    background-color: #1a202c;
}

[data-theme="dark"] .footer-bottom {
    border-color: #4a5568;
}

[data-theme="dark"] .footer-newsletter-form input[type="email"] {
    background-color: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

/* Dark theme social icons */
[data-theme="dark"] .social-icons a {
    background-color: #4a5568;
    color: #e2e8f0;
}

/* Dark theme pagination */
[data-theme="dark"] .pagination .page-link {
    background-color: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

[data-theme="dark"] .pagination .page-link:hover {
    background-color: #4a5568;
}

[data-theme="dark"] .pagination .page-item.active .page-link {
    background-color: #6f83ff;
    border-color: #6f83ff;
}

/* Dark theme back to top button */
[data-theme="dark"] #back-to-top {
    background-color: #6f83ff;
}

[data-theme="dark"] #back-to-top:hover {
    background-color: #5a66c5;
}

/* Dark theme for mobile devices */
@media (max-width: 992px) {
    [data-theme="dark"] .nav-menu {
        background-color: #1a202c;
    }
    
    [data-theme="dark"] .nav-menu a {
        color: #e2e8f0;
    }
    
    [data-theme="dark"] .mobile-account-links,
    [data-theme="dark"] .mobile-social-icons {
        border-color: #4a5568;
    }
    
    [data-theme="dark"] .mobile-social-icons .social-icons a {
        background-color: #4a5568;
    }
    
    [data-theme="dark"] .mobile-social-icons .social-icons a:hover {
        background-color: #6f83ff;
    }
}

/* Animation for theme transition */
.theme-transition-enter {
    opacity: 0;
    transform: translateY(10px);
}

.theme-transition-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 300ms, transform 300ms;
}

.theme-transition-exit {
    opacity: 1;
    transform: translateY(0);
}

.theme-transition-exit-active {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 300ms, transform 300ms;
}