/*
 * Vinut Brand Showcase - Frontend Stylesheet
 * Optimized for Premium Visuals, Responsiveness and Speed
 */

:root {
    --vbs-accent-color: #4077ce;
    --vbs-text-color: #1e293b;
    --vbs-text-secondary: #64748b;
    --vbs-bg-color: transparent;
    --vbs-border-color: #e2e8f0;
    --vbs-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --vbs-font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.vbs-wrapper {
    font-family: var(--vbs-font-stack);
    width: 100%;
    margin: 30px auto;
    padding: 20px 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 36px;
    background: var(--vbs-bg-color);
}

.vbs-wrapper * {
    box-sizing: border-box;
}

/* ==========================================================================
   SECTION TITLE
   ========================================================================== */
.vbs-section-title {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--vbs-text-color);
    margin: 0 0 20px 0;
    position: relative;
    text-align: center;
}

.vbs-section-title::before,
.vbs-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--vbs-border-color);
}

.vbs-section-title::before {
    margin-right: 20px;
}

.vbs-section-title::after {
    margin-left: 20px;
}

/* ==========================================================================
   BRANDS SECTION
   ========================================================================== */
.vbs-brands-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 24px 36px;
    margin: 0 auto;
    max-width: 1100px;
}

.vbs-brand-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--vbs-transition);
}

/* Logo Image Styling */
.vbs-brand-item.vbs-type-logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px; /* Base logo row height */
}

.vbs-brand-logo-img {
    max-height: 100%;
    max-width: 140px;
    height: auto;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.55;
    transition: var(--vbs-transition);
}

.vbs-brand-item.vbs-type-logo a:hover .vbs-brand-logo-img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.08);
}

/* Brand Text Link Styling */
.vbs-brand-item.vbs-type-text a {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--vbs-text-secondary);
    text-decoration: none;
    position: relative;
    padding: 6px 0;
    transition: var(--vbs-transition);
}

.vbs-brand-item.vbs-type-text a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--vbs-accent-color);
    transition: var(--vbs-transition);
}

.vbs-brand-item.vbs-type-text a:hover {
    color: var(--vbs-accent-color);
}

.vbs-brand-item.vbs-type-text a:hover::after {
    width: 100%;
}

/* ==========================================================================
   WEBSITES SECTION
   ========================================================================== */
.vbs-sites-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px 16px;
    max-width: 1100px;
    margin: 0 auto;
}

.vbs-site-item {
    display: inline-flex;
}

.vbs-site-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background-color: #ffffff;
    border: 1px solid var(--vbs-border-color);
    border-radius: 30px;
    text-decoration: none;
    color: var(--vbs-text-color);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--vbs-transition);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.vbs-site-link:hover {
    transform: translateY(-2px);
    border-color: var(--vbs-accent-color);
    color: var(--vbs-accent-color);
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
}

.vbs-site-flag {
    font-size: 1.15rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.vbs-site-flag-img {
    width: 18px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

/* ==========================================================================
   DARK MODE COMPATIBILITY
   ========================================================================== */
@media (prefers-color-scheme: dark) {
    :root:not(.vbs-theme-light-only) {
        --vbs-text-color: #cbd5e1;
        --vbs-text-secondary: #94a3b8;
        --vbs-border-color: #334155;
    }
    
    .vbs-wrapper:not(.vbs-theme-light-only) .vbs-site-link {
        background-color: #1e293b;
        color: #e2e8f0;
    }
    
    .vbs-wrapper:not(.vbs-theme-light-only) .vbs-site-link:hover {
        background-color: #0f172a;
        color: var(--vbs-accent-color);
        border-color: var(--vbs-accent-color);
    }
}

/* Custom class selectors for dark theme override in settings */
.vbs-dark-theme {
    --vbs-text-color: #cbd5e1;
    --vbs-text-secondary: #94a3b8;
    --vbs-border-color: #334155;
}

.vbs-dark-theme .vbs-site-link {
    background-color: #1e293b;
    color: #e2e8f0;
}

.vbs-dark-theme .vbs-site-link:hover {
    background-color: #0f172a;
    color: var(--vbs-accent-color);
    border-color: var(--vbs-accent-color);
}

/* ==========================================================================
   MOBILE RESPONSIVENESS
   ========================================================================== */
@media (max-width: 640px) {
    .vbs-wrapper {
        gap: 28px;
        margin: 20px auto;
    }
    .vbs-brands-container {
        gap: 16px 24px;
    }
    .vbs-brand-item.vbs-type-logo a {
        height: 32px;
    }
    .vbs-brand-logo-img {
        max-width: 100px;
    }
    .vbs-brand-item.vbs-type-text a {
        font-size: 0.95rem;
    }
    .vbs-sites-container {
        gap: 8px 10px;
    }
    .vbs-site-link {
        padding: 6px 14px;
        font-size: 0.825rem;
    }
    .vbs-section-title {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }
}
