/**
 * @file company-detail.css
 * @description Company detail page styles with green theme
 * @author Erdinç Taze
 * @copyright 
 */

/* ============================================
   Company Profile Header
   ============================================ */
.company-profile-header {
    background: #fff;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cover-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

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

.profile-info-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    padding: 20px 0;
    margin-top: -60px;
    position: relative;
}

.profile-image {
    flex-shrink: 0;
}

.profile-image img {
    width: 150px;
    height: 150px;
    border-radius: 12px;
    border: 5px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    object-fit: contain;
    background: #fff;
}

.profile-details {
    flex: 1;
    padding-top: 70px;
}

.profile-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
}

.profile-info {
    flex: 1;
    min-width: 300px;
}

.company-name {
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
}

.company-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 14px;
}

.meta-item i {
    font-size: 16px;
    color: #16a34a;
}

.profile-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-website {
    padding: 10px 16px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid #cbd5e1;
    color: #64748b;
    background: #fff;
}

.btn-website:hover {
    background: #f8fafc;
    border-color: #16a34a;
    color: #16a34a;
    transform: translateY(-2px);
}

/* Profile Share Buttons */
.profile-share {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 40px;
}

.share-label {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
}

.share-buttons {
    display: flex;
    gap: 8px;
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.share-icon-svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.share-facebook {
    background: #1877f2;
}

.share-facebook:hover {
    background: #0d65d9;
}

.share-twitter {
    background: #000000;
}

.share-twitter:hover {
    background: #2f2f2f;
}

.share-linkedin {
    background: #0a66c2;
}

.share-linkedin:hover {
    background: #004e95;
}

.share-whatsapp {
    background: #25d366;
}

.share-whatsapp:hover {
    background: #1ebd56;
}

.share-link {
    background: #64748b;
}

.share-link:hover {
    background: #475569;
}

/* ============================================
   Main Container
   ============================================ */
.company-detail-container {
    padding: 30px 15px;
}

/* ============================================
   Sticky Navigation Sidebar
   ============================================ */
.company-nav-sidebar {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.sticky-nav {
    position: sticky;
    top: 100px;
}

.company-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: #64748b;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-bottom: 8px;
    text-decoration: none;
}

.company-nav .nav-link i {
    font-size: 18px;
}

.company-nav .nav-link:hover {
    background: #f0fdf4;
    color: #16a34a;
    transform: translateX(5px);
}

.company-nav .nav-link.active {
    background: #dcfce7;
    color: #16a34a;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.15);
}

/* ============================================
   Company Sections
   ============================================ */
.company-section {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    scroll-margin-top: 90px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
}

.job-count {
    background: #dcfce7;
    color: #16a34a;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* ============================================
   About Section
   ============================================ */
.about-text p {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 15px;
}

.company-highlights {
    margin-top: 30px;
    background: #f8fafc;
    border-radius: 10px;
    padding: 25px;
    border-left: 4px solid #16a34a;
}

.highlights-title {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
}

.highlights-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.highlights-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: #475569;
    font-size: 15px;
}

.highlights-list li i {
    color: #16a34a;
    font-size: 20px;
    flex-shrink: 0;
}

/* ============================================
   Guest CTA Banner
   ============================================ */
.guest-cta-banner {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    border-radius: 12px;
    padding: 30px 35px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    box-shadow: 0 4px 16px rgba(22, 163, 74, 0.25);
    position: relative;
    overflow: hidden;
}

.guest-cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.guest-cta-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.guest-cta-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    position: relative;
    z-index: 1;
}

.guest-cta-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.guest-cta-icon i {
    font-size: 32px;
    color: #fff;
}

.guest-cta-text {
    flex: 1;
}

.guest-cta-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.guest-cta-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.6;
}

.guest-cta-actions {
    display: flex;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.btn-cta {
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-light {
    background: #fff;
    color: #16a34a;
    border: none;
}

.btn-light:hover {
    background: #f0fdf4;
    color: #15803d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: #fff;
    transform: translateY(-2px);
}

/* ============================================
   Job Listings Section
   ============================================ */
.job-listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.job-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.job-card:hover {
    border-color: #16a34a;
    box-shadow: 0 4px 16px rgba(22, 163, 74, 0.15);
    transform: translateY(-4px);
}

.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 10px;
}

.job-title {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
    flex: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.job-badge {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-success {
    background: #dcfce7;
    color: #16a34a;
}

.job-card-body {
    flex: 1;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 12px;
}

.job-meta .meta-item {
    font-size: 13px;
    color: #64748b;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    max-width: 190px;
}

.job-description {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.job-card-footer {
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}

/* ============================================
   Company Info Section
   ============================================ */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.info-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: #f0fdf4;
    transform: translateY(-2px);
}

.info-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: #dcfce7;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon i {
    font-size: 24px;
    color: #16a34a;
}

.info-content {
    flex: 1;
}

.info-label {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 5px;
}

.info-value {
    font-size: 15px;
    font-weight: 500;
    color: #2d3748;
    margin: 0;
}

.info-value a {
    color: #16a34a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-value a:hover {
    color: #15803d;
    text-decoration: underline;
}

/* ============================================
   Similar Companies Section
   ============================================ */
.similar-companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.similar-company-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.similar-company-card:hover {
    border-color: #16a34a;
    box-shadow: 0 4px 16px rgba(22, 163, 74, 0.15);
    transform: translateY(-4px);
}

.similar-company-card .company-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.similar-company-card .company-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.similar-company-card .company-name {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
}

.similar-company-card .company-sector {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 5px;
}

.similar-company-card .company-location {
    color: #64748b;
    font-size: 13px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.similar-company-card .company-location i {
    color: #16a34a;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 991px) {
    .sticky-nav {
        position: static;
        margin-bottom: 30px;
    }

    .company-nav {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .company-nav .nav-link {
        white-space: nowrap;
        margin-bottom: 0;
        margin-right: 8px;
    }

    .company-nav .nav-link:hover {
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .profile-info-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-details {
        padding-top: 20px;
    }

    .profile-header-content {
        flex-direction: column;
        align-items: center;
    }

    .profile-info {
        text-align: center;
    }

    .company-meta {
        justify-content: center;
    }

    .profile-actions {
        justify-content: center;
    }

    .profile-share {
        padding-top: 15px;
        flex-direction: column;
        gap: 10px;
    }

    .cover-image {
        height: 180px;
    }

    .profile-image img {
        width: 120px;
        height: 120px;
    }

    .company-name {
        font-size: 22px;
    }

    .company-section {
        padding: 20px;
    }

    .section-title {
        font-size: 20px;
    }

    .job-listings-grid,
    .info-grid,
    .similar-companies-grid {
        grid-template-columns: 1fr;
    }

    /* Guest CTA Banner Mobile */
    .guest-cta-banner {
        flex-direction: column;
        padding: 25px 20px;
        text-align: center;
    }

    .guest-cta-content {
        flex-direction: column;
        text-align: center;
    }

    .guest-cta-title {
        font-size: 18px;
    }

    .guest-cta-description {
        font-size: 13px;
    }

    .guest-cta-actions {
        width: 100%;
        flex-direction: column;
    }

    .btn-cta {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .job-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .company-highlights {
        padding: 15px;
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.btn-success {
    background-color: #16a34a;
    border-color: #16a34a;
    color: #fff;
}

.btn-success:hover {
    background-color: #15803d;
    border-color: #15803d;
    color: #fff;
}

.btn-outline-success {
    color: #16a34a;
    border-color: #16a34a;
}

.btn-outline-success:hover {
    background-color: #16a34a;
    border-color: #16a34a;
    color: #fff;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}
