/* Job Card Builder - Exact Design Match */

/* Card Wrapper */
.jcb-card-wrapper {
    max-width: 800px;
    margin: 30px auto;
    padding: 0 15px;
}

/* Main Card */
.jcb-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

/* Header - Exact Green Gradient */
.jcb-card-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

/* Decorative circles in header */
.jcb-card-header::before {
    content: '';
    position: absolute;
    right: -50px;
    top: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.jcb-card-header::after {
    content: '';
    position: absolute;
    right: 100px;
    bottom: -30px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.jcb-header-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.jcb-header-icon svg {
    filter: brightness(0) invert(1);
}

.jcb-header-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

/* Description - Light Gray Background */
.jcb-card-description {
    padding: 20px 24px;
    font-size: 14px;
    line-height: 1.6;
    background: #f9fafb;
    color: #374151;
}

/* Details Grid - 2 Columns */
.jcb-card-details {
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

/* Detail Item */
.jcb-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid #f3f4f6;
    border-right: 1px solid #f3f4f6;
}

.jcb-detail-item:nth-child(2n) {
    border-right: none;
}

.jcb-detail-item:nth-last-child(-n+2) {
    border-bottom: none;
}

/* Icon Backgrounds - Exact Colors */
.jcb-detail-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Salary - Light Blue */
.jcb-detail-item:nth-child(1) .jcb-detail-icon {
    background-color: #dbeafe;
    color: #1e40af;
}

/* Job Post - Light Blue */
.jcb-detail-item:nth-child(2) .jcb-detail-icon {
    background-color: #dbeafe;
    color: #1e40af;
}

/* Qualification - Light Purple */
.jcb-detail-item:nth-child(3) .jcb-detail-icon {
    background-color: #e9d5ff;
    color: #7c3aed;
}

/* Age Limit - Light Pink */
.jcb-detail-item:nth-child(4) .jcb-detail-icon {
    background-color: #fce7f3;
    color: #be185d;
}

/* Exam Date - Light Green */
.jcb-detail-item:nth-child(5) .jcb-detail-icon {
    background-color: #d1fae5;
    color: #065f46;
}

/* Last Apply Date - Light Orange */
.jcb-detail-item:nth-child(6) .jcb-detail-icon {
    background-color: #fed7aa;
    color: #c2410c;
}

.jcb-detail-content {
    flex: 1;
    min-width: 0;
}

.jcb-detail-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 4px;
}

.jcb-detail-value {
    font-size: 15px;
    color: #111827;
    font-weight: 700;
    line-height: 1.4;
}

/* Footer with Button */
.jcb-card-footer {
    padding: 24px;
    text-align: center;
    background: #ffffff;
}

.jcb-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 40px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.jcb-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    text-decoration: none;
    color: #ffffff;
}

.jcb-button:active {
    transform: translateY(0);
}

.jcb-button svg {
    width: 20px;
    height: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .jcb-card-wrapper {
        margin: 20px auto;
        padding: 0 10px;
    }

    .jcb-card {
        border-radius: 12px;
    }

    .jcb-card-header {
        padding: 16px 18px;
    }

    .jcb-header-title {
        font-size: 18px;
    }

    .jcb-card-description {
        padding: 16px 18px;
        font-size: 13px;
    }

    .jcb-card-details {
        grid-template-columns: 1fr;
    }

    .jcb-detail-item {
        padding: 16px 18px;
        border-right: none !important;
    }

    .jcb-detail-icon {
        width: 44px;
        height: 44px;
    }

    .jcb-detail-label {
        font-size: 12px;
    }

    .jcb-detail-value {
        font-size: 14px;
    }

    .jcb-card-footer {
        padding: 18px;
    }

    .jcb-button {
        width: 100%;
        justify-content: center;
        padding: 12px 32px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .jcb-header-title {
        font-size: 16px;
    }

    .jcb-detail-item {
        gap: 10px;
        padding: 14px 16px;
    }

    .jcb-detail-icon {
        width: 40px;
        height: 40px;
    }

    .jcb-detail-icon svg {
        width: 18px;
        height: 18px;
    }
}

/* Print Styles */
@media print {
    .jcb-card {
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }

    .jcb-button {
        display: none;
    }
}

/* Remove hover effects on mobile */
@media (hover: none) {
    .jcb-card:hover {
        transform: none;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    .jcb-button:hover {
        transform: none;
    }
}