/* ============================================
   TRADEVISION - ENTERPRISE MODERN DESIGN SYSTEM
   Professional B2B Software Company UI/UX
   Black & White Professional Theme
   ============================================ */

/* ============================================
   1. PROFESSIONAL GLASSMORPHISM - Dark/Light Mode
   ============================================ */

/* Dark Mode (Default) */
.glass-card {
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-medium);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-2xl);
    transform: translateY(-4px);
}

.glass-panel {
    background: rgba(26, 26, 26, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
}

.glass-subtle {
    background: rgba(26, 26, 26, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

/* Light Mode Override */
:root[data-theme="light"] .glass-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

:root[data-theme="light"] .glass-card:hover {
    border-color: rgba(0, 0, 0, 0.15);
}

:root[data-theme="light"] .glass-panel {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

:root[data-theme="light"] .glass-subtle {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* ============================================
   2. PROFESSIONAL TYPOGRAPHY SYSTEM
   ============================================ */

.heading-enterprise {
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.02em;
    line-height: var(--line-height-tight);
    color: var(--color-text-primary);
    text-rendering: optimizeLegibility;
}

.heading-xl {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: var(--font-weight-extrabold);
}

.heading-lg {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: var(--font-weight-bold);
}

.heading-md {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: var(--font-weight-semibold);
}

.heading-sm {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: var(--font-weight-semibold);
}

.body-enterprise {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-secondary);
    letter-spacing: 0.01em;
}

.body-large {
    font-size: var(--font-size-xl);
    line-height: var(--line-height-loose);
    color: var(--color-text-secondary);
}

.body-small {
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--color-text-tertiary);
}

.caption-enterprise {
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-secondary);
}

/* ============================================
   3. PROFESSIONAL COLOR ENHANCEMENTS - Dark/Light Mode
   ============================================ */

/* Dark Mode (Default) */
.accent-border-black {
    border-left: 4px solid var(--color-text-primary);
    padding-left: var(--space-6);
}

.accent-border-gray {
    border-left: 4px solid var(--color-text-secondary);
    padding-left: var(--space-6);
}

.accent-border-green {
    border-left: 4px solid #10b981;
    padding-left: var(--space-6);
}

.accent-border-cyan {
    border-left: 4px solid #06b6d4;
    padding-left: var(--space-6);
}

.accent-underline {
    position: relative;
    display: inline-block;
}

.accent-underline::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-text-primary), transparent);
}

.text-gradient-professional {
    background: linear-gradient(135deg, var(--color-text-primary), var(--color-text-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Light Mode Override */
:root[data-theme="light"] .accent-border-black {
    border-left-color: var(--color-black-pure);
}

:root[data-theme="light"] .accent-border-gray {
    border-left-color: var(--color-gray-darkest);
}

:root[data-theme="light"] .accent-underline::after {
    background: linear-gradient(90deg, var(--color-black-pure), transparent);
}

/* ============================================
   4. SOPHISTICATED DEPTH SYSTEM
   ============================================ */

.depth-1 { box-shadow: var(--shadow-sm); }
.depth-2 { box-shadow: var(--shadow-md); }
.depth-3 { box-shadow: var(--shadow-lg); }
.depth-4 { box-shadow: var(--shadow-xl); }
.depth-5 { box-shadow: var(--shadow-2xl); }
.depth-6 { box-shadow: var(--shadow-3xl); }

/* ============================================
   5. PROFESSIONAL BUTTONS - Dark/Light Mode
   ============================================ */

/* Dark Mode (Default) */
.btn-enterprise-primary {
    background: var(--color-text-primary);
    border: 2px solid var(--color-text-primary);
    color: var(--color-background);
    padding: 1rem 2.5rem;
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.02em;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-transform: uppercase;
}

.btn-enterprise-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn-enterprise-primary:active {
    transform: translateY(0);
}

.btn-enterprise-secondary {
    background: transparent;
    border: 2px solid var(--color-text-primary);
    color: var(--color-text-primary);
    padding: 1rem 2.5rem;
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.02em;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    cursor: pointer;
    text-transform: uppercase;
}

.btn-enterprise-secondary:hover {
    background: var(--color-text-primary);
    color: var(--color-background);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn-enterprise-ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-text-primary);
    padding: 0.875rem 2rem;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    cursor: pointer;
}

.btn-enterprise-ghost:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

/* Light Mode Override */
:root[data-theme="light"] .btn-enterprise-primary {
    background: var(--color-black-pure);
    border-color: var(--color-black-pure);
    color: var(--color-white-pure);
}

:root[data-theme="light"] .btn-enterprise-primary:hover {
    background: var(--color-black-soft);
}

:root[data-theme="light"] .btn-enterprise-secondary {
    background: var(--color-white-pure);
    border-color: var(--color-black-pure);
    color: var(--color-black-pure);
}

:root[data-theme="light"] .btn-enterprise-secondary:hover {
    background: var(--color-black-pure);
    color: var(--color-white-pure);
}

:root[data-theme="light"] .btn-enterprise-ghost {
    border-color: var(--color-gray-light);
}

:root[data-theme="light"] .btn-enterprise-ghost:hover {
    border-color: var(--color-black-pure);
    background: rgba(0, 0, 0, 0.02);
}

/* ============================================
   6. PROFESSIONAL CARD COMPONENTS - Dark/Light Mode
   ============================================ */

/* Dark Mode (Default) */
.service-card-enterprise {
    background: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.service-card-enterprise::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-text-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-medium);
}

.service-card-enterprise:hover::before {
    transform: scaleX(1);
}

.service-card-enterprise:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-2xl);
    transform: translateY(-8px);
}

.feature-card-professional {
    background: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 2rem;
    transition: all var(--transition-base);
}

.feature-card-professional:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(26, 26, 26, 0.95);
    transform: translateX(8px);
}

.stat-card-enterprise {
    text-align: center;
    padding: 2rem;
    background: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all var(--transition-base);
}

.stat-card-enterprise:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-extrabold);
    color: var(--color-text-primary);
    line-height: var(--line-height-none);
    margin-bottom: var(--space-2);
}

.stat-label {
    font-size: var(--font-size-md);
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: var(--font-weight-medium);
}

/* Light Mode Override */
:root[data-theme="light"] .service-card-enterprise {
    background: var(--color-white-pure);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

:root[data-theme="light"] .service-card-enterprise::before {
    background: var(--color-black-pure);
}

:root[data-theme="light"] .service-card-enterprise:hover {
    border-color: var(--color-black-pure);
}

:root[data-theme="light"] .feature-card-professional {
    background: var(--color-white-off);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

:root[data-theme="light"] .feature-card-professional:hover {
    border-color: var(--color-gray-dark);
    background: var(--color-white-pure);
}

:root[data-theme="light"] .stat-card-enterprise {
    background: var(--color-white-pure);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

:root[data-theme="light"] .stat-card-enterprise:hover {
    border-color: var(--color-black-pure);
}

/* ============================================
   7. PROFESSIONAL NAVIGATION - Dark/Light Mode
   ============================================ */

/* Dark Mode (Default) */
.navbar-enterprise {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base);
}

.nav-link-enterprise {
    color: var(--color-text-secondary);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-base);
    letter-spacing: 0.02em;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link-enterprise::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-text-primary);
    transform: translateX(-50%);
    transition: width var(--transition-fast);
}

.nav-link-enterprise:hover {
    color: var(--color-text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link-enterprise:hover::after {
    width: 80%;
}

.nav-link-enterprise.active {
    color: var(--color-text-primary);
    font-weight: var(--font-weight-semibold);
}

.nav-link-enterprise.active::after {
    width: 80%;
}

/* Light Mode Override */
:root[data-theme="light"] .navbar-enterprise {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

:root[data-theme="light"] .nav-link-enterprise::after {
    background: var(--color-black-pure);
}

:root[data-theme="light"] .nav-link-enterprise:hover {
    color: var(--color-black-pure);
    background: rgba(0, 0, 0, 0.02);
}

/* ============================================
   8. SOPHISTICATED ANIMATIONS
   ============================================ */

@keyframes fadeInUpProfessional {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in-up {
    animation: fadeInUpProfessional 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-slide-in-left {
    animation: slideInFromLeft 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-slide-in-right {
    animation: slideInFromRight 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-scale-in {
    animation: scaleIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.delay-100 { animation-delay: 0.1s; opacity: 0; }
.delay-200 { animation-delay: 0.2s; opacity: 0; }
.delay-300 { animation-delay: 0.3s; opacity: 0; }
.delay-400 { animation-delay: 0.4s; opacity: 0; }
.delay-500 { animation-delay: 0.5s; opacity: 0; }

/* ============================================
   9. PROFESSIONAL SPACING SYSTEM
   ============================================ */

.section-enterprise {
    padding: 6rem 0;
}

.section-enterprise-lg {
    padding: 8rem 0;
}

.section-enterprise-sm {
    padding: 4rem 0;
}

.container-enterprise {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.grid-enterprise-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
}

.grid-enterprise-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
}

.grid-enterprise-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-4);
}

/* ============================================
   10. PROFESSIONAL FORM ELEMENTS - Dark/Light Mode
   ============================================ */

.form-group-enterprise {
    margin-bottom: var(--space-6);
}

.form-label-enterprise {
    display: block;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-2);
    letter-spacing: 0.02em;
}

/* Dark Mode (Default) */
.form-input-enterprise {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(26, 26, 26, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    font-size: var(--font-size-md);
    transition: all var(--transition-fast);
    font-family: inherit;
}

.form-input-enterprise:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
    background: rgba(26, 26, 26, 0.7);
}

.form-input-enterprise::placeholder {
    color: var(--color-text-tertiary);
    opacity: 0.6;
}

.form-textarea-enterprise {
    resize: vertical;
    min-height: 150px;
    font-family: inherit;
}

/* Light Mode Override */
:root[data-theme="light"] .form-input-enterprise {
    background: var(--color-white-pure);
    border: 2px solid rgba(0, 0, 0, 0.1);
}

:root[data-theme="light"] .form-input-enterprise:focus {
    border-color: var(--color-border-focus);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
    background: var(--color-white-pure);
}

/* ============================================
   11. PROFESSIONAL DIVIDERS
   ============================================ */

.divider-enterprise {
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--color-border-default) 50%,
        transparent
    );
    margin: var(--space-12) 0;
}

.divider-vertical-enterprise {
    width: 1px;
    background: linear-gradient(
        180deg,
        transparent,
        var(--color-border-default) 50%,
        transparent
    );
    height: 100%;
}

/* ============================================
   12. PROFESSIONAL BADGES & TAGS - Dark/Light Mode
   ============================================ */

/* Dark Mode (Default) */
.badge-enterprise {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.badge-enterprise-dark {
    background: var(--color-text-primary);
    border-color: var(--color-text-primary);
    color: var(--color-background);
}

.badge-enterprise-gray {
    background: rgba(128, 128, 128, 0.2);
    border-color: rgba(128, 128, 128, 0.3);
    color: var(--color-text-secondary);
}

/* Light Mode Override */
:root[data-theme="light"] .badge-enterprise {
    background: var(--color-white-off);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

:root[data-theme="light"] .badge-enterprise-dark {
    background: var(--color-black-pure);
    border-color: var(--color-black-pure);
    color: var(--color-white-pure);
}

:root[data-theme="light"] .badge-enterprise-gray {
    background: var(--color-gray-lightest);
    border-color: var(--color-gray-light);
}

/* ============================================
   13. PROFESSIONAL HOVER EFFECTS
   ============================================ */

.hover-lift {
    transition: transform var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-6px);
}

.hover-shadow {
    transition: all var(--transition-base);
}

.hover-shadow:hover {
    box-shadow: var(--shadow-xl);
}

/* ============================================
   14. PROFESSIONAL ICONS - Dark/Light Mode
   ============================================ */

/* Dark Mode (Default) */
.icon-enterprise {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 24px;
    color: var(--color-text-primary);
    margin-bottom: var(--space-6);
    transition: all var(--transition-base);
}

.icon-enterprise-dark {
    background: var(--color-text-primary);
    border-color: var(--color-text-primary);
    color: var(--color-background);
}

.icon-enterprise-lg {
    width: 64px;
    height: 64px;
    font-size: 32px;
}

/* Light Mode Override */
:root[data-theme="light"] .icon-enterprise {
    background: var(--color-white-off);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

:root[data-theme="light"] .icon-enterprise-dark {
    background: var(--color-black-pure);
    border-color: var(--color-black-pure);
    color: var(--color-white-pure);
}

/* ============================================
   15. RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .section-enterprise {
        padding: 4rem 0;
    }

    .section-enterprise-lg {
        padding: 5rem 0;
    }

    .heading-xl {
        font-size: 2rem;
    }

    .heading-lg {
        font-size: 1.75rem;
    }

    .grid-enterprise-2,
    .grid-enterprise-3,
    .grid-enterprise-4 {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .btn-enterprise-primary,
    .btn-enterprise-secondary {
        padding: 0.875rem 2rem;
        font-size: var(--font-size-base);
    }

    .service-card-enterprise {
        padding: 2rem;
    }

    .stat-number {
        font-size: var(--font-size-4xl);
    }
}

/* ============================================
   16. PROFESSIONAL LOADING STATES - Dark/Light Mode
   ============================================ */

/* Dark Mode (Default) */
.skeleton-enterprise {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    border-radius: var(--radius-md);
}

/* Light Mode Override */
:root[data-theme="light"] .skeleton-enterprise {
    background: linear-gradient(
        90deg,
        var(--color-white-off) 0%,
        var(--color-white-light) 50%,
        var(--color-white-off) 100%
    );
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ============================================
   17. PROFESSIONAL TOOLTIPS - Dark/Light Mode
   ============================================ */

.tooltip-enterprise {
    position: relative;
    cursor: help;
}

/* Dark Mode (Default) */
.tooltip-enterprise::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-md);
    color: var(--color-black-pure);
    font-size: var(--font-size-sm);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
    z-index: var(--z-tooltip);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tooltip-enterprise:hover::after {
    opacity: 1;
}

/* Light Mode Override */
:root[data-theme="light"] .tooltip-enterprise::after {
    background: var(--color-black-pure);
    color: var(--color-white-pure);
    border: none;
}
