/**
 * Company Detail Page Styles - LocalCareers
 * Styles specific to /company/{slug} detail pages
 */

/* Sub-Header (company name/rating banner) */
.detail-subheader {
    background: #1d4ed8;
    color: white;
    padding: 0.75rem 0;
}

.detail-subheader-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.detail-breadcrumb {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 0.75rem;
}

.detail-breadcrumb a {
    color: white;
    text-decoration: none;
}

.detail-breadcrumb a:hover {
    text-decoration: underline;
}

.detail-breadcrumb span {
    margin: 0 0.5rem;
    opacity: 0.7;
}

.detail-company-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.detail-logo {
    width: 56px;
    height: 56px;
    background: white;
    border-radius: 8px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.detail-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.detail-name-rating h1 {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.detail-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.detail-meta a {
    color: white;
    text-decoration: underline;
}

.detail-meta .separator {
    opacity: 0.6;
}

.detail-meta .stars {
    color: #fbbf24;
}

/* Hero Section */
.detail-hero {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    padding: 2rem 1rem;
    color: white;
}

.detail-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.detail-hero h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.detail-hero-image {
    width: 200px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.detail-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .detail-hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .detail-hero h2 {
        font-size: 1.5rem;
    }

    .detail-hero-image {
        width: 160px;
        height: 120px;
    }
}

/* Navigation Tabs */
.detail-tabs {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
}

.detail-tabs-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.detail-tabs a {
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: color 0.2s, border-color 0.2s;
}

.detail-tabs a:hover {
    color: #1d4ed8;
}

.detail-tabs a.active {
    color: #1d4ed8;
    border-bottom-color: #1d4ed8;
}

/* Main Content */
.detail-content {
    background: #f9fafb;
    min-height: 60vh;
    padding: 2rem 1rem;
}

.detail-content-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.detail-section {
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    color: #111827;
}

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

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: #111827;
}

.section-link {
    color: #1d4ed8;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.section-link:hover {
    text-decoration: underline;
}

/* Overview Grid */
.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

@media (max-width: 768px) {
    .overview-grid {
        grid-template-columns: 1fr;
    }
}

.overview-box h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    color: #111827;
}

.overview-box p {
    color: #4b5563;
    line-height: 1.7;
    margin: 0;
}

/* Rating Distribution */
.rating-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.rating-header .stars {
    color: #fbbf24;
    font-size: 1.25rem;
}

.rating-count {
    color: #6b7280;
    font-size: 0.9rem;
    display: block;
    margin-top: 0.25rem;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.rating-bar-label {
    width: 60px;
    font-size: 0.85rem;
    color: #6b7280;
    flex-shrink: 0;
}

.rating-bar-track {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background: #1d4ed8;
    border-radius: 4px;
}

.rating-bar-value {
    width: 90px;
    font-size: 0.85rem;
    color: #6b7280;
    text-align: right;
    flex-shrink: 0;
}

/* Company Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.info-item h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b7280;
    margin: 0 0 0.25rem 0;
}

.info-item p {
    margin: 0;
    color: #111827;
}

.info-item a {
    color: #1d4ed8;
    text-decoration: none;
}

.info-item a:hover {
    text-decoration: underline;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.social-links a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 50%;
    transition: background 0.2s;
}

.social-links a:hover {
    background: #e5e7eb;
}

.social-links a img {
    width: 20px;
    height: 20px;
}

/* Reviews Summary Box */
.reviews-summary-box {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
}

.ai-summary-title {
    font-size: 1rem;
    font-weight: 600;
    color: #059669;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ai-summary-title::before {
    content: "✨";
}

.summary-rating {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.summary-rating .score {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
}

.summary-rating .stars {
    color: #fbbf24;
    font-size: 1.1rem;
}

.summary-text {
    color: #4b5563;
    line-height: 1.8;
    margin: 0 0 1rem 0;
}

.summary-disclaimer {
    font-size: 0.85rem;
    color: #6b7280;
    font-style: italic;
    margin: 0;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
}

/* Highlights Section */
.highlights-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.highlights-section > h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: #111827;
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .pros-cons {
        grid-template-columns: 1fr;
    }
}

.pros h5,
.cons h5 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
}

.pros h5 {
    color: #059669;
}

.cons h5 {
    color: #dc2626;
}

.pros ul,
.cons ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pros li,
.cons li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #4b5563;
    font-size: 0.95rem;
}

.pros li::before {
    content: "+";
    position: absolute;
    left: 0;
    color: #059669;
    font-weight: bold;
}

.cons li::before {
    content: "−";
    position: absolute;
    left: 0;
    color: #dc2626;
    font-weight: bold;
}

/* Salary Overview Box */
.salary-overview-box {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
}

.salary-main {
    text-align: center;
    margin-bottom: 1rem;
}

.salary-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
}

.salary-period {
    color: #6b7280;
    font-size: 1.25rem;
}

.salary-description {
    text-align: center;
    color: #4b5563;
    margin: 0.5rem 0 1.5rem 0;
    line-height: 1.6;
}

.salary-range {
    display: flex;
    justify-content: space-around;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.salary-range-item {
    text-align: center;
}

.salary-range-item.highlight .salary-range-value {
    color: #1d4ed8;
}

.salary-range-label {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.salary-range-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
}
