/**
 * Home Page Styles - LocalCareers
 * Exact replica of employers.io homepage
 */

/* Hero Section */
.home-hero {
    background: white;
    padding: 3rem 1rem 4rem;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
}

.home-hero-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 0 2rem;
}

@media (max-width: 900px) {
    .home-hero-inner {
        grid-template-columns: 1fr;
    }
    .home-hero-right {
        display: none;
    }
}

.home-hero-left {
    max-width: 580px;
}

.home-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 1rem 0;
    line-height: 1.15;
}

.home-hero h1 .highlight {
    color: #2563eb;
}

.home-hero-subtitle {
    font-size: 1.125rem;
    color: #4b5563;
    margin: 0 0 1.75rem 0;
    line-height: 1.6;
}

.home-hero-cta {
    display: inline-block;
    background: #2563eb;
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    transition: background 0.2s;
}

.home-hero-cta:hover {
    background: #1d4ed8;
}

/* Search Section in Hero */
.home-search-section {
    margin-top: 1.5rem;
}

.home-search-section h2 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.75rem 0;
}

.home-search-form {
    display: flex;
    align-items: stretch;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    max-width: 520px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.home-search-form:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

@media (max-width: 600px) {
    .home-search-form {
        flex-direction: column;
    }
}

.home-search-input-wrap {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.home-search-input-wrap:first-child {
    border-right: 1px solid #e5e7eb;
}

@media (max-width: 600px) {
    .home-search-input-wrap:first-child {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }
}

.home-search-input-wrap svg {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    stroke: #9ca3af;
    pointer-events: none;
}

.home-search-input-wrap input {
    width: 100%;
    padding: 0.875rem 0.875rem 0.875rem 42px;
    border: none;
    font-size: 0.95rem;
    outline: none;
    background: transparent;
}

.home-search-input-wrap input::placeholder {
    color: #9ca3af;
}

.home-search-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.home-search-btn:hover {
    background: #1d4ed8;
}

/* Hero Right - Mascot */
.home-hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.mascot-container {
    position: relative;
    width: 360px;
    height: 360px;
}

.mascot-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.mascot-glow {
    position: absolute;
    inset: 0;
    background: #dbeafe;
    opacity: 0.3;
    border-radius: 50%;
}

.mascot-svg {
    position: relative;
    z-index: 1;
    width: 260px;
    height: 220px;
}

/* Animated bouncing dots */
.mascot-dot {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    animation: bounce 2s ease-in-out infinite;
}

.mascot-dot-purple {
    width: 34px;
    height: 34px;
    background: #60a5fa;
    top: -24px;
    right: -24px;
    animation-delay: 0s;
}

.mascot-dot-pink {
    width: 18px;
    height: 18px;
    background: #f472b6;
    top: 45px;
    right: -42px;
    animation-delay: 1.5s;
}

.mascot-dot-green {
    width: 22px;
    height: 22px;
    background: #4ade80;
    top: 50%;
    left: -42px;
    animation-delay: 1s;
}

.mascot-dot-blue {
    width: 28px;
    height: 28px;
    background: #60a5fa;
    bottom: -34px;
    left: -34px;
    animation-delay: 0.5s;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Categories Section */
.home-categories {
    padding: 5rem 1rem;
    background: #f9fafb;
    position: relative;
}


.home-categories-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 0 2rem;
}

.home-categories h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #111827;
    text-align: center;
    margin: 0 0 2rem 0;
}

.home-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

@media (max-width: 900px) {
    .home-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .home-categories-grid {
        grid-template-columns: 1fr;
    }
}

.home-category-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    transition: all 0.2s;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.home-category-card:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
    text-decoration: none;
}

.home-category-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: #eff6ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-category-icon svg {
    width: 22px;
    height: 22px;
    stroke: #2563eb;
}

.home-category-content {
    flex: 1;
}

.home-category-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.375rem 0;
}

.home-category-card p {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* Explore Section */
.home-explore {
    padding: 7rem 1rem;
    background: #1e3a5f;
    color: white;
}

.home-explore-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 768px) {
    .home-explore-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.home-explore-left h2 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 1.25rem 0;
    line-height: 1.2;
}

.home-explore-left h2 span {
    color: #93c5fd;
}

.home-explore-left p {
    font-size: 1.15rem;
    color: #93c5fd;
    line-height: 1.7;
    margin: 0;
}

.home-explore-right {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.home-explore-icon {
    width: 320px;
    height: 320px;
    background: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-explore-icon svg {
    width: 150px;
    height: 150px;
    stroke: white;
}

.explore-dot {
    position: absolute;
    border-radius: 50%;
}

.explore-dot-1 {
    width: 16px;
    height: 16px;
    background: #2563eb;
    top: 10px;
    right: 40px;
}

.explore-dot-2 {
    width: 12px;
    height: 12px;
    background: #60a5fa;
    bottom: 20px;
    left: 60px;
}

/* Companies Hiring Section */
.home-companies {
    padding: 5rem 1rem;
    background: #eff6ff;
}

.home-companies-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 3rem;
    align-items: center;
}

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

.home-companies-left h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 1.25rem 0;
}

.home-companies-left p {
    font-size: 1.1rem;
    color: #4b5563;
    line-height: 1.7;
    margin: 0 0 2rem 0;
}

.home-explore-btn {
    display: inline-block;
    background: #2563eb;
    color: white;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s;
}

.home-explore-btn:hover {
    background: #1d4ed8;
}

.home-companies-right {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    justify-items: center;
    align-items: center;
}

@media (max-width: 500px) {
    .home-companies-right {
        grid-template-columns: repeat(2, 1fr);
    }
}

.home-company-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 144px;
    height: 144px;
    padding: 1rem;
    background: white;
    border-radius: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.home-company-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.2s;
}

.home-company-logo:hover img {
    transform: scale(1.05);
}

/* Featured Section */
.home-featured {
    padding: 5rem 1rem;
    background: linear-gradient(to bottom right, #f9fafb, #ffffff);
}

.home-featured-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.home-featured-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.home-featured-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.75rem 0;
}

.home-featured-header p {
    font-size: 1.1rem;
    color: #6b7280;
    margin: 0;
}

.home-featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 900px) {
    .home-featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .home-featured-grid {
        grid-template-columns: 1fr;
    }
}

.home-featured-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

.home-featured-card:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.home-featured-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.25rem 0.75rem;
}

.home-featured-logo {
    position: relative;
    width: 80px;
    height: 80px;
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-featured-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.featured-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 24px;
    height: 24px;
    background: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.featured-badge svg {
    width: 12px;
    height: 12px;
    fill: white;
}

.home-featured-card-title {
    flex: 1;
}

.home-featured-card-title h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
    line-height: 1.4;
}

.home-featured-card-title p {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0.25rem 0 0 0;
}

.home-featured-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.9rem;
    padding: 0 1.25rem 1rem;
}

.home-featured-meta svg {
    stroke: #9ca3af;
    width: 16px;
    height: 16px;
}

.home-featured-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-top: 1px solid #f3f4f6;
    margin-top: auto;
}

.posted-time {
    font-size: 0.85rem;
    color: #6b7280;
}

.view-job {
    font-size: 0.9rem;
    font-weight: 500;
    color: #2563eb;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.view-job svg {
    width: 16px;
    height: 16px;
    stroke: #2563eb;
    transition: transform 0.2s;
}

.home-featured-card:hover .view-job svg {
    transform: translateX(4px);
}

.home-explore-all-btn {
    display: block;
    width: fit-content;
    margin: 0 auto;
    background: #2563eb;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s;
}

.home-explore-all-btn:hover {
    background: #1d4ed8;
}
