/* Company Page Styles - Premium Design */
.company-page {
    padding: 2rem 0;
}

.company-page .container {
    width: 100%;
    max-width: none;
    margin: 0;
}

.company-summary-header {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    padding: 2.25rem;
    margin-bottom: 1.75rem;
}

.company-summary-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.company-header-top {
    display: flow-root;
    margin-bottom: 0;
}

.company-logo-large {
    float: left;
    margin: 0 1.5rem 0.5rem 0;
}

.company-logo-large img {
    width: 104px;
    height: 104px;
    object-fit: contain;
    background: white;
    padding: 1.25rem;
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.company-logo-large.company-logo-large--fallback {
    width: 104px;
    height: 104px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    border-radius: 14px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-logo-large.company-logo-large--fallback i {
    font-size: 2rem;
    color: #475569;
}

.company-title-wrapper {
    overflow: visible;
    min-height: 0;
    padding-top: 0.15rem;
}

.company-title {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 2.3rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.company-description {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.company-info-section {
    margin-bottom: 1.75rem;
}

.company-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.info-panel-card {
    background: white;
    border-radius: 14px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.info-panel-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.25rem 0.5rem;
    border-bottom: none;
    background: transparent;
}

.info-panel-icon {
    font-size: 1.125rem;
    color: var(--primary-dark);
}

.info-panel-title {
    font-size: 1.1875rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.info-panel-card--contact .info-panel-header--plain {
    padding: 1.25rem 1.25rem 0.25rem;
    border-bottom: none;
}

.info-panel-content {
    padding: 1rem 1.25rem 1.25rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-label {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

.info-value {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 600;
}

.info-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
}

.info-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.info-text {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.7;
    margin: 0;
}

.company-numbers-section {
    margin-top: 2rem;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    padding: 1.75rem;
}

.section-title-wrapper {
    position: static;
    top: auto;
    z-index: auto;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-light);
}

.section-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

.section-title i {
    color: var(--primary-color);
}

.section-count {
    font-size: 0.875rem;
    color: var(--text-light);
    background: #f8fafc;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--border-light);
}

.company-numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.company-number-card {
    background: var(--bg-lighter);
    border-radius: 14px;
    border: 1px solid var(--border-light);
    box-shadow: none;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    display: block;
}

.company-number-card:hover {
    box-shadow: var(--shadow-sm);
    border-color: rgba(37, 99, 235, 0.35);
}

.number-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.number-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.verified-badge-small {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: #10b981;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    position: relative;
    cursor: help;
}

.verified-badge-small i {
    font-size: 0.75rem;
}

.verified-badge-small .verified-text {
    display: inline-block;
}

/* Tooltip Styles */
.verified-badge[title],
.company-verified-badge[title],
.verified-badge-small[title] {
    position: relative;
}

.verified-badge[title]:hover::after,
.company-verified-badge[title]:hover::after,
.verified-badge-small[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 0.5rem;
    padding: 0.625rem 0.875rem;
    background: #1e293b;
    color: white;
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.5;
    white-space: nowrap;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    pointer-events: none;
    max-width: 300px;
    white-space: normal;
    text-align: center;
}

.verified-badge[title]:hover::before,
.company-verified-badge[title]:hover::before,
.verified-badge-small[title]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 0.25rem;
    border: 6px solid transparent;
    border-top-color: #1e293b;
    z-index: 1001;
    pointer-events: none;
}

.number-card-stats {
    display: flex;
    gap: 1.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-icon {
    font-size: 0.875rem;
    color: var(--text-light);
}

.stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-light);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-lighter);
    border-radius: var(--radius-md);
    border: 1px dashed var(--border-light);
}

.empty-state i {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.empty-state p {
    font-size: 1rem;
    color: var(--text-light);
    margin: 0;
}

@media (max-width: 1024px) {
    .company-title {
        font-size: 2.3rem;
    }
    
    .company-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .company-header-top {
        text-align: center;
    }

    .company-logo-large {
        float: none;
        margin: 0 auto 1rem;
    }

    .company-title-wrapper {
        overflow: visible;
        padding-top: 0;
    }
    
    .company-logo-large img {
        width: 100px;
        height: 100px;
    }
    
    .company-title {
        font-size: 1.9rem;
        justify-content: center;
    }
    
    .company-numbers-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .company-numbers-section {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .company-title {
        font-size: 1.65rem;
    }
    
    .company-description {
        font-size: 1rem;
    }
    
    .number-card-stats {
        flex-direction: column;
        gap: 0.75rem;
    }
}
