/* Company Branding Page Styles */

/* Essential base styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.glassmorphism {
    backdrop-filter: blur(20px) saturate(180%);
}

.social-media-card {
    background-color: var(--social-media-background-color, #ffffff);
}

.dark .social-media-card {
    background-color: #1f2937;
}

/* Dynamic brand colors - will be injected via CSS custom properties */
:root {
    /* Default fallback colors */
    --brand-primary: #1e40af;
    --brand-secondary: #64748b;
    --brand-accent: #06b6d4;
    --hero-bg: #111827;
    --hero-text: #ffffff;

    /* Swiper component variables */
    --swiper-button-size: 40px;
    --swiper-shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --swiper-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Gradient backgrounds with brand colors */
.brand-gradient {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
}

.brand-gradient-alt {
    background: linear-gradient(45deg, var(--brand-secondary) 0%, var(--brand-accent) 100%);
}

/* Hero section with CSS variables */
.hero-section {
    background: var(--hero-bg, #111827);
    color: var(--hero-text, #ffffff);
}

.hero-section:not(.has-bg-image)::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--brand-primary, #1f2937), var(--brand-secondary, #374151));
    z-index: 1;
}

/* Essential animations */
@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Tab functionality */
.tab-button.active {
    color: var(--brand-primary);
    box-shadow: inset 0 -3px 0 var(--brand-primary);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    font-weight: 600;
}

.tab-button.active i {
    color: var(--brand-primary);
}

.job-count-badge {
    background-color: var(--brand-primary, #1e40af);
}

.dark .tab-button.active {
    color: #ffffff;
}

.dark .tab-button.active i {
    color: #ffffff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Loading states */
.page-loading {
    cursor: wait;
}

.loading-spinner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    z-index: 10;
}

.dark .loading-spinner {
    background: rgba(17, 24, 39, 0.8);
}

/* Smooth transitions for loading states */
.tab-content[aria-busy="true"] {
    transition: opacity 0.2s ease-in-out;
}

/* Image loading optimization */
img {
    image-rendering: -webkit-optimize-contrast;
}

img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Statistics cards with CSS variables */
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent), var(--brand-secondary));
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

.stat-number {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Primary button with CSS variables for Tailwind compatibility */
.btn-primary {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
}

/* Social buttons with Tailwind-compatible hover effects */
.social-button-facebook:hover {
    background-color: rgba(24, 119, 242, 0.9);
    border-color: rgba(24, 119, 242, 1);
}

.social-button-linkedin:hover {
    background-color: rgba(10, 102, 194, 0.9);
    border-color: rgba(10, 102, 194, 1);
}

.social-button-twitter:hover {
    background-color: rgba(0, 0, 0, 0.9);
    border-color: rgba(0, 0, 0, 1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--brand-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-secondary);
}

/* Swiper button styling */
.swiper-button-next,
.swiper-button-prev {
    width: var(--swiper-button-size);
    height: var(--swiper-button-size);
    margin-top: calc(var(--swiper-button-size) / -2);
    background: white;
    border-radius: 50%;
    box-shadow: var(--swiper-shadow-sm);
    transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    box-shadow: var(--swiper-shadow-lg);
    transform: scale(1.05);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 16px;
    font-weight: 600;
    color: #2563eb;
}

/* Dark theme support for Swiper */
.dark .swiper-button-next,
.dark .swiper-button-prev {
    background: #374151;
}

.dark .swiper-button-next:after,
.dark .swiper-button-prev:after {
    color: #60a5fa;
}

/* Swiper pagination styling */
.swiper-pagination-bullet {
    background: #d1d5db;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: #2563eb;
}

.dark .swiper-pagination-bullet {
    background: #6b7280;
}

.dark .swiper-pagination-bullet-active {
    background: #60a5fa;
}
