/* CSS Variables */
:root {
    --primary-color: #0f4c75;
    --secondary-color: #3282b8;
    --accent-color: #42a649ff;
    --dark-overlay: rgba(10, 43, 85, 0.2);
    --text-white: #ffffff;
    --text-light: rgba(255, 255, 255, 0.9);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation Bar */
.navbar-custom {
    background: transparent;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
    z-index: 1000;
    position: absolute;
    top: 0;
    width: 100%;
}

.navbar-custom.scrolled {
    background: rgba(15, 76, 117, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-white) !important;
    text-decoration: none;
}

.navbar-nav .nav-link {
    color: var(--text-white) !important;
    font-weight: 500;
    margin: 0 1rem;
    padding: 0.5rem 0 !important;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--text-white) !important;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--text-white);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { width: 0; }
    to { width: 100%; }
}

/* Login & Signup Buttons */
.btn-login {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 0.95rem;
}

.btn-login:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.btn-signup {
    background: var(--accent-color);
    border: 2px solid var(--accent-color);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 0.95rem;
}

.btn-signup:hover {
    background: #e67e22;
    border-color: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.4);
    color: white;
}

/* Mobile Toggle */
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* User Profile Section */
.user-profile {
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    margin-right: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

.dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    min-width: 200px;
}

.dropdown-item {
    padding: 0.7rem 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: rgba(15, 76, 117, 0.1);
    color: var(--primary-color);
}

/* Welcome Message */
.welcome-message {
    position: fixed;
    top: 100px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-left: 4px solid var(--accent-color);
    z-index: 1000;
    max-width: 300px;
    animation: slideInRight 0.5s ease-out;
}

.welcome-message .close-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.8rem;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.welcome-message .close-btn:hover {
    color: #666;
}

.welcome-message h6 {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.welcome-message p {
    color: var(--primary-color);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile responsive for translation widget */
@media (max-width: 768px) {
    .translation-widget .gt-cd-dropdown {
        right: 0 !important;
        left: auto !important;
        min-width: 160px !important;
    }
    
    .user-profile {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    .translation-widget {
        margin-top: 1rem;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.5rem;
    }
}