/* Company Profile Styles - Extends base.html styles */

.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Header Section */
.profile-header {
    background: white;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    padding: 2rem;
    margin-bottom: 2rem;
    overflow: hidden;
    position: relative;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.header-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: center;
}

.company-logo {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
}

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

.logo-placeholder {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
}

.company-basic-info {
    min-width: 0;
}

.company-name {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.company-tagline {
    font-size: 1.2rem;
    color: #667eea;
    margin: 0 0 1rem 0;
    font-weight: 500;
}

.company-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
    font-size: 0.95rem;
}

.meta-item i {
    font-size: 1.1rem;
    color: #667eea;
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-primary, .btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* Content Sections */
.content-section {
    background: white;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.content-section:hover {
    box-shadow: var(--hover-shadow);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f8f9fa;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--primary-gradient);
}

.section-content {
    color: #495057;
    line-height: 1.7;
}

.company-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Mission & Vision */
.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.mission, .vision {
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border-left: 4px solid #667eea;
}

.mission h3, .vision h3 {
    color: #667eea;
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Details Grid */
.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Contact Information */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.contact-item i {
    width: 20px;
    height: 20px;
    color: #667eea;
    font-size: 1.2rem;
}

.contact-item a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

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

/* Company Facts */
.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.fact-item {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: white;
    transition: all 0.3s ease;
}

.fact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.fact-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.fact-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
}

/* Specialization Grid */
.specialization-grid, .credentials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.specialization-item, .credential-item {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 15px;
    border-left: 4px solid #667eea;
}

.specialization-item h3, .credential-item h3 {
    color: #667eea;
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Social Links */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.social-link.linkedin:hover {
    border-color: #0077b5;
    color: #0077b5;
}

.social-link.facebook:hover {
    border-color: #1877f2;
    color: #1877f2;
}

.social-link.twitter:hover {
    border-color: #1da1f2;
    color: #1da1f2;
}

.social-link.instagram:hover {
    border-color: #e4405f;
    color: #e4405f;
}

/* Profile Status (Admin Only) */
.admin-only {
    border: 2px dashed #667eea;
    background: linear-gradient(135deg, #f8f9ff 0%, #e6f3ff 100%);
}

.profile-status {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.completion-bar {
    flex: 1;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    min-width: 200px;
}

.completion-fill {
    height: 100%;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

.completion-text {
    font-weight: 600;
    color: #667eea;
    white-space: nowrap;
}

.btn-edit {
    background: var(--primary-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-edit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Profile Footer */
.profile-footer {
    background: white;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    padding: 1.5rem 2rem;
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.profile-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    color: #6c757d;
    font-size: 0.9rem;
}

.stat-item strong {
    color: #495057;
}

.footer-actions {
    display: flex;
    gap: 1rem;
}

.btn-report, .btn-share {
    padding: 0.5rem 1rem;
    border: 1px solid #e9ecef;
    background: white;
    border-radius: 8px;
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-report:hover {
    border-color: #dc3545;
    color: #dc3545;
}

.btn-share:hover {
    border-color: #667eea;
    color: #667eea;
}

/* Icon Classes (using Bootstrap Icons from base.html) */
.icon-location::before { content: '\F5F0'; font-family: 'bootstrap-icons'; }
.icon-industry::before { content: '\F2B7'; font-family: 'bootstrap-icons'; }
.icon-size::before { content: '\F4C6'; font-family: 'bootstrap-icons'; }
.icon-email::before { content: '\F32A'; font-family: 'bootstrap-icons'; }
.icon-phone::before { content: '\F4F7'; font-family: 'bootstrap-icons'; }
.icon-website::before { content: '\F37E'; font-family: 'bootstrap-icons'; }
.icon-address::before { content: '\F5F2'; font-family: 'bootstrap-icons'; }
.icon-linkedin::before { content: '\F472'; font-family: 'bootstrap-icons'; }
.icon-facebook::before { content: '\F344'; font-family: 'bootstrap-icons'; }
.icon-twitter::before { content: '\F5EF'; font-family: 'bootstrap-icons'; }
.icon-instagram::before { content: '\F437'; font-family: 'bootstrap-icons'; }

/* Responsive Design */
@media (max-width: 768px) {
    .profile-container {
        padding: 1rem;
    }
    
    .header-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .company-logo {
        width: 100px;
        height: 100px;
        margin: 0 auto;
    }
    
    .company-name {
        font-size: 2rem;
    }
    
    .company-meta {
        justify-content: center;
    }
    
    .profile-actions {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .details-grid,
    .mission-vision,
    .specialization-grid,
    .credentials-grid {
        grid-template-columns: 1fr;
    }
    
    .content-section {
        padding: 1.5rem;
    }
    
    .facts-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-stats {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .company-name {
        font-size: 1.75rem;
    }
    
    .company-tagline {
        font-size: 1rem;
    }
    
    .profile-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
    
    .social-links {
        flex-direction: column;
    }
    
    .social-link {
        width: 100%;
        justify-content: center;
    }
}