/**
 * Templates CSS: Page-Specific and Component-Specific Styles
 * 
 * @package    Gigsdock_Customizations
 */

/* ==========================================================================
   1. HOMEPAGE SPECIFICS
   ========================================================================== */

.home-section {
    margin-bottom: 60px;
}

.home-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.home-section-title {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.home-section-link {
    font-size: 14px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}

.home-section-link:hover {
    text-decoration: underline;
}

/* Hero Banner */
.home-hero {
    text-align: center;
    padding: 80px 20px 60px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    margin-bottom: 40px;
}

.home-hero-title {
    font-size: 42px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.home-hero-subtitle {
    font-size: 18px;
    color: #475569;
    max-width: 600px;
    margin: 0 auto 30px auto;
    line-height: 1.6;
}

.home-hero-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Job Discovery Search Form */
.home-discovery-section {
    margin-top: -80px;
    position: relative;
    z-index: 10;
    padding: 0 20px;
}

.home-discovery-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #e2e8f0;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.home-discovery-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 15px 0;
    text-align: center;
}

.home-discovery-form-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.home-discovery-form {
    display: flex;
    gap: 15px;
}

.home-discovery-input {
    flex: 1;
    padding: 15px 20px;
    font-size: 16px;
}



.home-discovery-btn {
    white-space: nowrap;
}

.home-discovery-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.home-filter-label {
    cursor: pointer;
    user-select: none;
}

.home-filter-label input[type="radio"] {
    display: none;
}

/* Directory Nav Cards */
.home-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.home-directory-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-directory-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.home-directory-title {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
}

/* FAQ Accordion */
.home-faq-section {
    margin: 0 auto 60px auto;
    padding: 0 20px;
}

.home-faq-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    color: #0f172a;
    margin-bottom: 30px;
}

.home-faq-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.home-faq-question {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    padding: 20px;
    cursor: pointer;
    list-style: none;
    position: relative;
    outline: none;
}

.home-faq-question::-webkit-details-marker {
    display: none;
}

.home-faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #64748b;
    font-weight: 400;
}

.home-faq-item[open] .home-faq-question::after {
    content: '−';
}

.home-faq-answer {
    padding: 0 20px 20px 20px;
    color: #475569;
    font-size: 15px;
    line-height: 1.6;
}

/* ==========================================================================
   2. SINGLE TEMPLATES SPECIFICS (Job, Post)
   ========================================================================== */

/* Main Title */
.job-title-main {
    font-size: 36px;
    font-weight: 800;
    color: #0f172a;
    margin: 30px 0 24px 0 !important;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

/* Job Section Typography */
.job-section {
    margin-bottom: 40px;
    color: #475569;
    line-height: 1.8;
    font-size: 17px !important;
}

.job-section p,
.job-section li {
    font-size: 17px !important;
    margin-bottom: 16px;
}

.job-section.intro-text,
.job-section.intro-text p {
    font-size: 18px !important;
    color: #1e293b !important;
}

.job-section ul,
.job-section ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.job-section ul {
    list-style-type: disc;
}

.job-section ol {
    list-style-type: decimal;
}

.job-section h2 {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.job-section h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-top: 25px;
    margin-bottom: 15px;
}

.job-section img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* Quick Details Grid */
.qd-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.qd-label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.qd-value {
    font-size: 16px;
    color: #0f172a;
    font-weight: 600;
}

.info-card {
    margin-bottom: 28px;
}

/* Info Box Header Overrides */
.pro-tip-box,
.important-info-box,
.share-box-bottom {
    margin: 32px 0;
    border-radius: 8px;
    /* Original was 8px, gd-card is 12px */
}

.pro-tip-box h3 {
    font-size: 18px;
    color: #0f172a;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    font-weight: 700;
}

.important-info-box h4 {
    color: #b45309;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.important-info-box ol {
    margin: 0;
    padding-left: 20px;
    color: #78350f;
}

.important-info-box ol li {
    margin-bottom: 8px;
}

/* Share Box */
.share-box-bottom {
    text-align: left;
}

.share-box-bottom h4 {
    color: #0f172a;
    font-size: 18px;
    margin: 0 0 8px 0;
}

.share-box-bottom p {
    color: #475569;
    font-size: 15px;
    margin: 0 0 20px 0;
}

/* Updates Card Headers */
.updates-card h3 {
    font-size: 18px;
    color: #0f172a;
    margin: 0 0 12px 0;
}

/* Action Button Groups */
.btn-group {
    display: flex;
    gap: 12px;
    width: 100%;
}

.action-buttons-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

@media (min-width: 640px) {
    .action-buttons-group {
        flex-direction: row;
    }
}

/* Header within Cards (e.g., Company Info) */
.info-card-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

@media (min-width: 640px) {
    .info-card-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.info-card-title {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.view-all-link {
    font-size: 14px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s ease;
}

.view-all-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Related Jobs Lists */
.related-jobs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.related-jobs-header h2 {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
    font-size: 18px !important;
}

.related-jobs-footer {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

/* Meta Data Grids */
.job-meta-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
}

.tech-stack-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

ul.company-taxonomy-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style-type: none;
    padding: 0;
    margin-top: 12px;
}

ul.company-taxonomy-list .company-count {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

/* ==========================================================================
   2.5 FEATURED CATEGORIES (Remote & Freshers)
   ========================================================================== */

.home-featured-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 60px;
}

@media (min-width: 768px) {
    .home-featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.featured-category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 40px;
    border-radius: 16px;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    z-index: 1;
    border: 1px solid #e2e8f0;
    background: #ffffff;
}

.featured-category-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.featured-category-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.featured-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.featured-category-title {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
}

.featured-category-desc {
    font-size: 16px;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 30px 0;
    flex-grow: 1;
}

.featured-category-cta {
    font-size: 15px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    transition: opacity 0.2s ease;
}

.featured-category-card:hover .featured-category-cta {
    opacity: 0.8;
}

.featured-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    transition: transform 0.5s ease;
}

.featured-category-card:hover .featured-card-bg {
    transform: scale(1.05);
}

/* Card Specific Colors */
.remote-card .featured-icon-wrapper {
    background: #e0f2fe;
    color: #0284c7;
}

.remote-card .featured-category-cta {
    color: #0284c7;
}

.remote-card .featured-card-bg {
    background: radial-gradient(circle at top right, rgba(2, 132, 199, 0.05) 0%, transparent 60%);
}

.fresher-card .featured-icon-wrapper {
    background: #f3e8ff;
    color: #8b5cf6;
}

.fresher-card .featured-category-cta {
    color: #8b5cf6;
}

.fresher-card .featured-card-bg {
    background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.05) 0%, transparent 60%);
}

/* ==========================================================================
   3. RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 768px) {
    .home-hero-title {
        font-size: 32px;
    }

    .home-hero {
        padding: 60px 15px 80px 15px;
    }

    .home-discovery-section {
        margin-top: 0;
        position: relative;
        z-index: 10;
        padding: 0;
    }

    .home-discovery-form {
        flex-direction: column;
    }

    .home-discovery-btn {
        width: 100%;
    }
}

/* ==========================================================================
   4. HOMEPAGE GRIDS
   ========================================================================== */

.home-jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.home-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.home-faq-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    align-items: start;
}

@media (max-width: 768px) {

    .home-jobs-grid,
    .home-posts-grid,
    .home-faq-container {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   5. JOB & POST CARD COMPONENTS (.gigsdock-job-card, .gigsdock-post-card)
   ========================================================================== */

.gigsdock-job-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.gigsdock-job-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.gigsdock-post-card {
    display: flex;
    gap: 20px;
    text-decoration: none;
    margin-bottom: 15px;
    transition: box-shadow 0.2s ease;
    color: inherit;
}

.gigsdock-post-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.post-card-thumbnail {
    flex: 0 0 150px;
    border-radius: 8px;
    overflow: hidden;
    align-self: flex-start;
}

.post-card-thumbnail img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 16 / 9;
    display: block;
}

.post-card-content {
    flex: 1;
    min-width: 0;
}

@media (max-width: 768px) {
    .gigsdock-post-card {
        flex-direction: column;
        gap: 15px;
    }
    
    .post-card-thumbnail {
        flex: none;
        width: 100%;
        max-width: 100%;
    }
}

/* ==========================================================================
   6. ARCHIVE HEADER CARD (.archive-header-card)
   ========================================================================== */

.archive-header-card {
    margin-bottom: 20px;
}

.archive-title {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.archive-description {
    color: #475569;
    font-size: 15px;
    line-height: 1.6;
    margin-top: 10px;
}

.archive-description p:first-child {
    margin-top: 0;
}

.archive-description p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   7. QUICK DETAILS LIST (.quick-details-list)
   ========================================================================== */

.quick-details-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 15px;
}

@media (min-width: 640px) {
    .quick-details-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.qd-item {
    background: #ffffff;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* ==========================================================================
   8. PRO TIP & SHARE BOX (full definitions with padding)
   ========================================================================== */

.pro-tip-box,
.share-box-bottom {
    border-radius: 8px;
    padding: 24px;
    margin: 32px 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.important-info-box {
    border-radius: 8px;
    padding: 24px;
    margin: 32px 0;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 4px solid #f59e0b;
}

.pro-tip-box {
    border-left: 4px solid #475569;
}