/* Seller Company Info Page Styles */

/* Seller Company Info Section - Initial State */
#seller-company-info-section {
    background: #e8e8e8;
    display: none;
    opacity: 0;
    transform: translate3d(0, 20px, 0);
    visibility: hidden;
    pointer-events: none;
    transform-origin: center center;
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    contain: layout style paint;
}

.seller-company-info-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: block;
    visibility: visible;
    opacity: 1;
    box-sizing: border-box;
    position: relative;
    overflow-x: hidden;
    height: calc(100vh - 60px);
    padding-top: 0;
}

/* Header Share Button */
.share-btn {
    width: 44px;
    height: 44px;
    border-radius: 0;
    border: none;
    background: transparent !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    flex-shrink: 0;
    padding: 0;
    margin: 0;
    margin-left: 0.5rem;
    position: absolute;
    left: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
}

.share-btn .share-icon {
    width: 20px;
    height: 20px;
    color: var(--text-primary);
    stroke: var(--text-primary);
    stroke-width: 2;
}

.share-btn:hover .share-icon {
    color: var(--primary-color);
    stroke: var(--primary-color);
}

/* Banner Section Wrapper */
.seller-company-banner-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 1rem;
}

/* Banner Section */
.seller-company-banner {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: linear-gradient(180deg, #1C7C7C 0%, #2C5AA0 100%);
}

.seller-company-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seller-company-badge {
    position: absolute;
    bottom: -30px;
    right: 20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-white, #fff);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    border: 3px solid var(--bg-white, #fff);
    z-index: 10;
}

.seller-company-badge-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

/* Company Name */
.seller-company-name {
    font-size: var(--font-size-xl, 1.5rem);
    font-weight: var(--font-weight-bold, 700);
    color: var(--text-primary, #333);
    margin: 2.5rem var(--spacing-sm) 1rem 0;
    text-align: right;
    position: relative;
    z-index: 1;
}

/* Tabs */
.seller-company-tabs {
    display: flex;
    gap: 0.5rem;
    margin: 0 var(--spacing-sm) 1.5rem;
    background: transparent;
    border-radius: var(--radius-sm);
    background: var(--bg-hover, #f5f5f5);
}

.seller-company-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary, #666);
    font-size: var(--font-size-base, 1rem);
    font-weight: var(--font-weight-semibold, 600);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.seller-company-tab.active {
    background: var(--primary-color);
    color: white;
}

.seller-company-tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.5);
}

/* Tab Content */
.seller-company-tab-content {
    display: none;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    visibility: hidden;
    padding: 0 var(--spacing-sm);
}

.seller-company-tab-content.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
}

/* Search Container */
.seller-company-search-container {
    margin-bottom: 1rem;
}

.seller-company-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.seller-company-search-icon {
    position: absolute;
    right: 1rem;
    width: 20px;
    height: 20px;
    color: var(--text-secondary, #666);
    stroke: var(--text-secondary, #666);
    stroke-width: 2;
    pointer-events: none;
    z-index: 1;
}

.seller-company-search-input {
    width: 100%;
    padding: 0.3rem 0;
    padding-right: 3rem;
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: var(--radius-sm);
    background: var(--bg-white, #fff);
    font-size: var(--font-size-base, 1rem);
    color: var(--text-primary, #333);
    direction: rtl;
    text-align: right;
    transition: all 0.3s ease;
}

.seller-company-search-input:focus {
    outline: none;
    border-color: var(--primary-color, #2c5aa0);
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.seller-company-search-input::placeholder {
    color: var(--text-secondary, #999);
}

/* Results Count */
.seller-company-results-count {
    font-size: var(--font-size-sm, 0.875rem);
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: right;
}

/* Auctions List */
.seller-company-auctions-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.seller-company-auction-image-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: var(--bg-hover, #f5f5f5);
}

.seller-company-auction-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.seller-company-auction-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 1;
}

.seller-company-auction-badge.status-live {
    background: #db283a;
    color: #fff;
}

.seller-company-auction-badge.status-upcoming {
    background: #28a745;
    color: #fff;
}

.seller-company-auction-badge.status-ended {
    background: #6b46c1;
    color: #fff;
}

.seller-company-auction-content {
    padding: 1rem;
}

.seller-company-auction-title {
    font-size: var(--font-size-lg, 1.125rem);
    font-weight: var(--font-weight-semibold, 600);
    color: var(--text-primary, #333);
    margin: 0 0 0.75rem 0;
    text-align: right;
    line-height: 1.4;
}

.seller-company-auction-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: var(--font-size-sm, 0.875rem);
    color: var(--text-secondary, #666);
}

.seller-company-auction-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    direction: rtl;
}

.seller-company-auction-meta-icon {
    width: 16px;
    height: 16px;
    color: var(--text-secondary, #666);
    stroke: var(--text-secondary, #666);
    stroke-width: 2;
    flex-shrink: 0;
}

.seller-company-auction-location {
    text-align: right;
}

/* About Seller Section */
.seller-company-about-section {
    margin-bottom: 1.5rem;
}

.seller-company-breadcrumb {
    margin-bottom: 1rem;
}

.breadcrumb-item {
    font-size: var(--font-size-base, 1rem);
    font-weight: var(--font-weight-semibold, 600);
    color: var(--text-primary, #333);
    position: relative;
    display: inline-block;
}

.seller-company-info-card {
    background: var(--bg-white, #fff);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
}

.seller-company-description {
    font-size: var(--font-size-base, 1rem);
    line-height: 1.8;
    color: var(--text-primary, #333);
    margin: 0;
    text-align: right;
    white-space: pre-line;
}

/* Company Details */
.seller-company-detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-white, #fff);
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    direction: rtl;
}

.seller-company-detail-icon {
    width: 20px;
    height: 20px;
    color: var(--primary-color, #2c5aa0);
    stroke: var(--primary-color, #2c5aa0);
    stroke-width: 2;
    flex-shrink: 0;
}

.seller-company-detail-text {
    font-size: var(--font-size-base, 1rem);
    color: var(--text-primary, #333);
    text-align: right;
    flex: 1;
}

.seller-company-detail-arrow {
    width: 20px;
    height: 20px;
    color: var(--text-secondary, #999);
    stroke: var(--text-secondary, #999);
    stroke-width: 2;
    flex-shrink: 0;
    margin-right: auto;
}

/* Clickable detail items */
.seller-company-detail-item.clickable {
    cursor: pointer;
    transition: all 0.3s ease;
}

.seller-company-detail-item.clickable:hover {
    background: var(--bg-hover, #f5f5f5);
    transform: translateX(-2px);
}

.seller-company-detail-item.clickable:hover .seller-company-detail-arrow {
    color: var(--primary-color, #2c5aa0);
    stroke: var(--primary-color, #2c5aa0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .seller-company-banner {
        height: 180px;
    }

    .seller-company-badge {
        width: 70px;
        height: 70px;
        bottom: -25px;
        right: 15px;
    }

    .seller-company-name {
        font-size: var(--font-size-lg, 1.25rem);
        margin-top: 2.5rem;
    }

    .seller-company-tab {
        padding: 0.625rem 0.875rem;
        font-size: var(--font-size-sm, 0.875rem);
    }

    .seller-company-auction-image-wrapper {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .seller-company-banner {
        height: 160px;
    }

    .seller-company-badge {
        width: 60px;
        height: 60px;
        bottom: -20px;
        right: 10px;
    }

    .seller-company-name {
        font-size: var(--font-size-base, 1rem);
        margin-top: 2.5rem;
    }

    .seller-company-tab {
        padding: 0.5rem 0.75rem;
        font-size: var(--font-size-xs, 0.75rem);
    }

    .seller-company-auction-image-wrapper {
        height: 140px;
    }

    .seller-company-info-card {
        padding: 1rem;
    }
}