/* Shared components CSS for header, footer, and common elements */

/* Core gradient and navbar styling */
.logo-badge {
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
    text-transform: uppercase;
}

.text-gradient {
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-brand {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
}

/* Language Toggle Button Styles */
.language-toggle-container {
    display: flex !important;
    justify-content: flex-end;
    align-items: center;
}

.language-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-width: 60px;
    text-align: center;
}

.language-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.language-toggle:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.language-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .language-toggle {
        padding: 6px 12px;
        font-size: 0.8rem;
        min-width: 50px;
    }
    
    .language-toggle-container {
        justify-content: center;
        margin-top: 10px;
    }
}

/* Special styles for homepage */
.homepage-header .language-toggle {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--primary-color);
}

.homepage-header .language-toggle:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
}

/* Ensure proper positioning in header */
.header-actions .language-toggle-container {
    margin-left: auto;
}

/* Make sure header-actions is always properly aligned */
.header-actions {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center;
}

/* Fix for dashboard pages */
.container .header-actions {
    display: flex !important;
    justify-content: flex-end !important;
}

/* Bootstrap Icons with optimized font loading */
@font-face {
    font-family: "bootstrap-icons";
    src: url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.0/font/fonts/bootstrap-icons.woff2") format("woff2"),
         url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.0/font/fonts/bootstrap-icons.woff") format("woff");
    font-display: swap;
}

.bi::before, [class^="bi-"]::before, [class*=" bi-"]::before {
    font-family: "bootstrap-icons" !important;
}

/* Footer styles */
footer.bg-black {
    background-color: #000 !important;
}

footer .link-light {
    color: rgba(255, 255, 255, 0.75) !important;
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}

footer .link-light:hover {
    color: #fff !important;
}

footer .text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}