/* ============================================
   UNITRADE - BASE STYLES (REDESIGNED)
   ============================================ */

/* ==================== RESET & GLOBAL ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Colors */
    --primary-purple: #6D28D9;
    --primary-purple-dark: #5B21B6;
    --primary-purple-light: #8B5CF6;
    --secondary-orange: #FB923C;
    --accent-orange: #FF9F1C;
    --accent-yellow: #FFCC00;
    --black: #000000;
    --white: #FFFFFF;
    
    /* Grays */
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    
    /* Status Colors */
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --info: #3B82F6;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* ==================== NAVIGATION ==================== */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    max-width: 100%;
    padding: 1rem 1.5rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
}

/* Logo (Left) */
.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.navbar-logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    align-items: center;
    gap: 0;
}

.logo-text .uni {
    color: var(--primary-purple);
}

.logo-text .trade {
    color: var(--accent-orange);
}

/* My Account (Center) */
.navbar-account-wrapper {
    display: flex;
    justify-content: center;
}

.navbar-account {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    background: var(--gray-100);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    max-width: 140px;
}

.navbar-account:hover {
    background: var(--gray-200);
}

.navbar-account-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-purple);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.navbar-account-icon-guest {
    font-size: 1.1rem;
}

.navbar-account-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hamburger Menu (Right) */
.hamburger-toggle {
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--gray-700);
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.hamburger-toggle:hover {
    color: var(--primary-purple);
}

/* ==================== SLIDE MENU ==================== */
.slide-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9999;
    pointer-events: none;
}

.slide-menu.active {
    pointer-events: auto;
}

.slide-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slide-menu.active .slide-menu-overlay {
    opacity: 1;
}

.slide-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    max-width: 85vw;
    background: var(--white);
    box-shadow: var(--shadow-xl);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.slide-menu.active .slide-menu-content {
    transform: translateX(0);
}

.slide-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-600);
    padding: 0.5rem;
    cursor: pointer;
    z-index: 10;
}

.slide-menu-close:hover {
    color: var(--gray-900);
}

.slide-menu-links {
    padding: 4rem 0 2rem 0;
    display: flex;
    flex-direction: column;
}

.slide-menu-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--gray-700);
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.2s;
    border-bottom: 1px solid var(--gray-100);
}

.slide-menu-link:hover {
    background: var(--gray-50);
    color: var(--primary-purple);
}

.slide-menu-link i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

/* ==================== MESSAGES/ALERTS ==================== */
.messages {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 1.5rem 0;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.alert i {
    font-size: 1.25rem;
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
    border-left: 4px solid var(--success);
}

.alert-error {
    background: #FEE2E2;
    color: #991B1B;
    border-left: 4px solid var(--error);
}

.alert-warning {
    background: #FEF3C7;
    color: #92400E;
    border-left: 4px solid var(--warning);
}

.alert-info {
    background: #DBEAFE;
    color: #1E40AF;
    border-left: 4px solid var(--info);
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn i {
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-purple);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-purple-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-purple);
    border: 2px solid var(--primary-purple);
}

.btn-secondary:hover {
    background: var(--primary-purple);
    color: var(--white);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-yellow));
    color: var(--white);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 159, 28, 0.3);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 159, 28, 0.4);
}

/* ==================== CONTAINER ==================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--primary-purple);
    color: var(--white);
    padding: 2.5rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-logo img {
    width: 40px;
    height: 40px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 0.9rem;
}

.footer-section h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.footer-links-grid a {
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.2s;
    font-size: 0.9rem;
    padding: 0.25rem 0;
}

.footer-links-grid a:hover {
    color: var(--accent-yellow);
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 1.1rem;
}

.footer-social a:hover {
    background: var(--accent-yellow);
    color: var(--primary-purple);
    transform: translateY(-2px);
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
}

.footer-bottom p {
    margin: 0.25rem 0;
}

/* ==================== MOBILE RESPONSIVE ==================== */
@media (max-width: 768px) {
    .navbar-container {
        padding: 1rem;
    }
    
    .navbar-logo {
        font-size: 1.1rem;
    }
    
    .navbar-logo img {
        width: 35px;
        height: 35px;
    }
    
    .navbar-account {
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
        max-width: 120px;
    }
    
    .navbar-account-icon {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }
    
    .container {
        padding: 1.5rem 1rem;
    }
    
    .messages {
        padding: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-section h3 {
        font-size: 0.95rem;
    }
    
    .footer-links-grid a {
        font-size: 0.85rem;
    }
    
    .footer-bottom {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .navbar-account {
        max-width: 100px;
        padding: 0.4rem 0.6rem;
    }
    
    .footer-description {
        font-size: 0.85rem;
    }
}