/* ===================================
   Company Profile Page Styles
   =================================== */

/* Company Hero Section */
.company-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 60%);
    position: relative;
    overflow: hidden;
    padding: 80px 0 40px;
    color: white;
}

.company-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="companyPattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23companyPattern)"/></svg>');
}

.company-hero-content {
    position: relative;
    z-index: 2;
}

/* Company Logo */

.company-logo-large {
    width: 150px;
    height: auto;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-logo-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.company-logo-placeholder-large {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    font-weight: 800;
}

.verified-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: #10b981;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 3px solid white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Company Details */
.company-name {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.company-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 16px;
    font-size: 1.1rem;
    opacity: 0.95;
}

.company-meta span {
    display: flex;
    align-items: center;
    font-weight: 500;
}

.company-meta i {
    opacity: 0.8;
}

.company-type-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.company-description {
    margin-top: 24px;
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.95;
    max-width: 600px;
}

/* Company Stats Card */
.company-stats-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #1e293b;
    margin-top: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #2563eb;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

/* Company Content Section */
.company-content {
    padding: 60px 0;
    background: #f8fafc;
}

.content-section {
    background: white;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 32px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* Company Info Grid */
.company-info-grid {
    margin-bottom: 32px;
}

.info-card {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    height: 100%;
}

.info-card:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.info-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    margin-right: 16px;
    flex-shrink: 0;
}

.info-content h6 {
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-content p {
    color: #1e293b;
    margin: 0;
    font-weight: 500;
    font-size: 1rem;
}

/* Company Links */
.company-links h6 {
    color: #374151;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.company-link {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    background: #f8fafc;
    color: #2563eb;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.company-link:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.company-link.linkedin:hover {
    background: #0077b5;
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
}

/* Job Categories */
.job-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.category-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 140px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.category-tag:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.category-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
}

.category-count {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Job Count Badge */
.job-count-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Company Job Cards */
.company-job-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.company-job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.company-job-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
    border-color: #2563eb;
}

.company-job-card:hover::before {
    transform: scaleY(1);
}

.job-header {
    margin-bottom: 16px;
}

.job-title {
    margin-bottom: 8px;
}

.job-title a {
    color: #1e293b;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.job-title a:hover {
    color: #2563eb;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: #64748b;
    font-size: 0.9rem;
}

.job-meta span {
    display: flex;
    align-items: center;
}

.job-content {
    margin-bottom: 20px;
}

.job-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.job-tag {
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #e2e8f0;
}

.job-tag.experience {
    background: #fef3c7;
    color: #92400e;
    border-color: #fbbf24;
}

.job-tag.category {
    background: #dbeafe;
    color: #1e40af;
    border-color: #3b82f6;
}

.job-tag.remote {
    background: #d1fae5;
    color: #065f46;
    border-color: #10b981;
}

.job-footer {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.job-posted {
    color: #64748b;
    font-size: 0.9rem;
    flex-grow: 1;
}

.deadline-info {
    color: #dc2626;
    font-weight: 500;
}

.job-actions {
    display: flex;
    gap: 12px;
}

.job-actions .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 8px;
}

/* No Jobs Message */
.no-jobs-message {
    text-align: center;
    padding: 60px 20px;
    background: #f8fafc;
    border-radius: 16px;
    border: 2px dashed #e2e8f0;
}

/* Sidebar Styles */
.sidebar-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
    border: 1px solid #f1f5f9;
    overflow: hidden;
}

.sidebar-card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
}

.sidebar-card-header h5 {
    margin: 0;
    font-weight: 600;
    color: #1e293b;
    font-size: 1.1rem;
}

.sidebar-card-body {
    padding: 24px;
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: #64748b;
}

.contact-item i {
    width: 20px;
    margin-right: 12px;
    color: #2563eb;
    font-size: 1.1rem;
}

/* Quick Stats */
.quick-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.quick-stat {
    text-align: center;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.quick-stat .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 8px;
}

.quick-stat .stat-desc {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

/* Related Companies */
.related-company {
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
}

.related-company:last-child {
    border-bottom: none;
}

.company-avatar {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.company-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.company-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.related-company .company-name {
    margin: 0 0 4px 0;
    font-size: 0.95rem;
}

.related-company .company-name a {
    color: #1e293b;
    text-decoration: none;
    font-weight: 500;
}

.related-company .company-name a:hover {
    color: #2563eb;
}

.related-company .company-info {
    font-size: 0.85rem;
}

/* Job Alert Card */
.job-alert-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.job-alert-card .sidebar-card-body {
    background: transparent;
}

.job-alert-card h6 {
    color: white;
    font-weight: 600;
}

.job-alert-card .btn-primary {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: 500;
}

.job-alert-card .btn-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .company-hero {
        padding: 60px 0 30px;
    }
    
    .company-name {
        font-size: 2rem;
    }
    
    .company-logo-large {
        width: 80px;
        height: 80px;
    }
    
    .company-logo-placeholder-large {
        font-size: 1.8rem;
    }
    
    .company-meta {
        flex-direction: column;
        gap: 12px;
        font-size: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .content-section {
        padding: 24px;
    }
    
    .job-categories {
        justify-content: center;
    }
    
    .category-tag {
        min-width: 120px;
        padding: 12px 16px;
    }
    
    .job-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .job-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .sidebar-card-body {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .company-hero-content .row {
        text-align: center;
    }
    
    .company-main-info .d-flex {
        flex-direction: column;
        align-items: center;
    }
    
    .company-logo-large {
        margin-bottom: 20px;
    }
    
    .company-stats-card {
        margin-top: 30px;
        padding: 24px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}