/* Company Public Page - Modern Enhanced Design */

html {
    scroll-behavior: smooth;
}

.main-content {
    flex: 1;
    padding: 40px 0 60px 0;
    background: linear-gradient(180deg, var(--background-dark) 0%, var(--background-light) 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Company Hero Section */
.company-hero {
    margin-bottom: 3rem;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.company-header-card {
    background: var(--background-light);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.company-header-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color), var(--primary-color));
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.company-header-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 12px 48px rgba(0, 212, 255, 0.2);
    transform: translateY(-4px);
}

.company-header-main {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.company-logo-wrapper {
    flex-shrink: 0;
}

.company-logo,
.company-logo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    border: 3px solid var(--border-color);
    overflow: hidden;
    background: var(--code-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.company-logo:hover,
.company-logo-placeholder:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.3);
    transform: scale(1.05) rotate(2deg);
}

.company-logo .logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.company-logo-placeholder span {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    font-family: 'Consolas', 'Monaco', monospace;
    text-shadow: 0 2px 8px rgba(0, 212, 255, 0.3);
}

.company-header-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-width: 0;
}

.company-title-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.company-name {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.02em;
    font-family: 'Inter', 'Consolas', sans-serif;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.company-website {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-family: 'Consolas', 'Monaco', monospace;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: fit-content;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    background: var(--code-bg);
    border: 1px solid var(--border-color);
}

.company-website:hover {
    color: var(--text-primary);
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

.website-icon {
    color: currentColor;
    transition: transform 0.3s ease;
}

.company-website:hover .website-icon {
    transform: rotate(15deg);
}

.external-link-icon {
    color: currentColor;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.company-website:hover .external-link-icon {
    opacity: 1;
    transform: translate(2px, -2px);
}

/* Company Stats Badges */
.company-stats-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.stat-badge-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: var(--code-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-badge-item:hover {
    border-color: var(--primary-color);
    background: rgba(232, 242, 255, 0.1);
    transform: translateY(-2px);
}

.badge-icon {
    color: var(--primary-color);
    flex-shrink: 0;
}

/* Company Contacts */
.company-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--text-primary);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.625rem 1rem;
    border-radius: 8px;
    background: var(--code-bg);
    border: 2px solid var(--border-color);
}

.contact-link:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: rgba(232, 242, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2);
}

.contact-icon {
    color: var(--primary-color);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.contact-link:hover .contact-icon {
    transform: scale(1.1);
}

/* Company About Section */
.company-about-section {
    background: var(--background-light);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.company-about-section:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

/* Company Stats Section */
.company-stats-section {
    margin: 3rem 0;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.stat-card {
    background: var(--background-light);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transition: left 0.5s ease;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.2);
}

.stat-icon {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.stat-icon svg {
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.4));
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
}

/* Benefits, Culture, Tech Stack Sections */
.company-benefits-section,
.company-culture-section,
.company-tech-section {
    margin: 3rem 0;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.benefits-content,
.culture-content,
.tech-stack-content {
    background: var(--background-light);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 1.5rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.benefits-content ul,
.culture-content ul,
.tech-stack-content ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.benefits-content li,
.culture-content li,
.tech-stack-content li {
    padding-left: 2rem;
    position: relative;
    margin-bottom: 0.75rem;
}

.benefits-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Social Links Section */
.company-social-section {
    margin: 3rem 0;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--background-light);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.social-link.linkedin {
    border-color: #0077b5;
}

.social-link.linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
}

.social-link.twitter {
    border-color: #1da1f2;
}

.social-link.twitter:hover {
    background: #1da1f2;
    border-color: #1da1f2;
}

.social-link.facebook {
    border-color: #1877f2;
}

.social-link.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.social-link.instagram {
    border-color: #e4405f;
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #e4405f;
}

.social-link.github {
    border-color: #333;
}

.social-link.github:hover {
    background: #333;
    border-color: #333;
}

.social-link svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding: 0 1.5rem;
    }

    .job-list {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 20px 0 40px 0;
    }

    .container {
        padding: 0 1rem;
    }

    .company-hero {
        margin-bottom: 2rem;
    }

    .company-header-card {
        padding: 1.5rem;
    }

    .company-header-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }

    .company-logo,
    .company-logo-placeholder {
        width: 100px;
        height: 100px;
    }

    .company-logo-placeholder span {
        font-size: 2.5rem;
    }

    .company-header-info {
        align-items: center;
        width: 100%;
    }

    .company-title-section {
        align-items: center;
        width: 100%;
    }

    .company-name {
        font-size: 1.75rem;
        text-align: center;
    }

    .company-website {
        font-size: 0.875rem;
    }

    .company-stats-badges {
        justify-content: center;
        gap: 0.5rem;
    }

    .stat-badge-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .company-contacts {
        justify-content: center;
        width: 100%;
    }

    .contact-link {
        font-size: 0.875rem;
        padding: 0.5rem 0.875rem;
    }

    .company-about-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .section-header-styled {
        gap: 0.75rem;
    }

    .section-icon {
        width: 40px;
        height: 40px;
    }

    .section-icon svg {
        width: 20px;
        height: 20px;
    }

    .section-title-styled {
        font-size: 1.375rem;
    }

    .description-content {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .view-all-jobs-container {
        margin: 1.5rem 0;
    }

    .view-all-jobs-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
        gap: 0.5rem;
    }

    .btn-arrow {
        width: 18px;
        height: 18px;
    }

    .jobs-section {
        margin-top: 2rem;
    }

    .job-item {
        flex-direction: column;
        gap: 10px;
    }

    .job-company-header {
        flex-direction: row;
        max-width: 100%;
        padding: 10px;
        gap: 10px;
    }

    .company-logo-inline {
        width: 60px;
        height: 60px;
    }

    .company-logo-placeholder-inline span {
        font-size: 1.5rem;
    }

    .job-details {
        padding: 0 10px 10px 10px;
    }

    .job-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .job-header-right {
        margin-left: 0;
        align-items: flex-start;
        width: 100%;
    }

    .job-salary-amount {
        font-size: 16px;
    }

    .job-name {
        font-size: 16px;
    }

    .location-dropdown-menu {
        min-width: 200px;
        right: 0;
        left: auto;
    }
}

@media (max-width: 480px) {
    .company-header-card {
        padding: 1.25rem;
    }

    .company-name {
        font-size: 1.5rem;
    }

    .company-stats-badges {
        flex-direction: column;
        width: 100%;
    }

    .stat-badge-item {
        width: 100%;
        justify-content: center;
    }

    .section-title-styled {
        font-size: 1.25rem;
    }

    .view-all-jobs-btn {
        width: 100%;
        justify-content: center;
    }
}
