/**
 * SahiNaukri Jobs - Frontend CSS (Premium V3.0)
 */

/* General & Layout */
.sn-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #f9fafb;
    color: #1f2937;
    font-family: inherit;
    line-height: 1.7;
    padding: 16px;
    box-sizing: border-box;
}

.sn-container * {
    box-sizing: border-box;
}

.sn-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 24px;
    margin-bottom: 24px;
}

/* Breadcrumb */
.sn-breadcrumb {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 16px;
}
.sn-breadcrumb a {
    color: #1a56db;
    text-decoration: none;
}
.sn-breadcrumb a:hover {
    text-decoration: underline;
}
.sn-breadcrumb-sep {
    margin: 0 6px;
    color: #9ca3af;
}

/* Badges */
.sn-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    margin-right: 8px;
    vertical-align: middle;
}
.sn-badge-type {
    background-color: #e1effe;
    color: #1e429f;
}
.sn-badge-new {
    background: linear-gradient(135deg, #9061f9, #1a56db);
    color: #ffffff;
    box-shadow: 0 0 8px rgba(26, 86, 219, 0.4);
    animation: sn-pulse-glow 2s infinite;
}

@keyframes sn-pulse-glow {
    0% { box-shadow: 0 0 5px rgba(26, 86, 219, 0.4); }
    50% { box-shadow: 0 0 15px rgba(26, 86, 219, 0.6); }
    100% { box-shadow: 0 0 5px rgba(26, 86, 219, 0.4); }
}

/* SEO Intro */
.sn-seo-intro {
    font-size: 1.05em;
    margin-bottom: 24px;
}
.sn-seo-intro::first-letter {
    font-size: 1.5em;
    font-weight: bold;
    color: #1a56db;
    margin-right: 2px;
}

/* Social Share Dock */
.sn-share-dock {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.sn-social-dock { display:flex; gap:12px; flex-wrap:wrap; margin:16px 0 24px; }
.sn-social-dock .sn-btn-wa, .sn-social-dock .sn-btn-tg, .sn-social-dock .sn-btn-copy { display:inline-flex; align-items:center; gap:8px; color:#fff; border:0; border-radius:999px; padding:10px 16px; font:inherit; font-weight:600; cursor:pointer; text-decoration:none; }
.sn-social-dock svg { width:20px; height:20px; }
.sn-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 20px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 14px;
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
}
.sn-share-btn:hover {
    transform: scale(1.05);
}
.sn-share-wa { background-color: #25D366; }
.sn-share-tg { background-color: #0088cc; }
.sn-share-copy { background-color: #6b7280; }
.sn-share-btn svg {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    fill: currentColor;
}

/* 4-Block Countdown Timer */
.sn-countdown-timer {
    margin: 24px 0;
}
.sn-timer-blocks {
    display: flex;
    flex-direction: row;
    gap: 8px;
    justify-content: center;
}
.sn-timer-block {
    min-width: 70px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
}
.sn-timer-number {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}
.sn-timer-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    margin-top: 4px;
}

/* Timer Color States */
.sn-timer-green .sn-timer-block {
    background-color: #ecfdf5;
    border: 1px solid #0e9f6e;
    color: #065f46;
}
.sn-timer-amber .sn-timer-block {
    background-color: #fffbeb;
    border: 1px solid #f59e0b;
    color: #92400e;
}
.sn-timer-red .sn-timer-block {
    background-color: #fef2f2;
    border: 1px solid #e02424;
    color: #991b1b;
}
.sn-timer-gray .sn-timer-block {
    background-color: #f3f4f6;
    border: 1px solid #9ca3af;
    color: #6b7280;
}

.sn-timer-status {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    margin-top: 12px;
}

@keyframes sn-pulse {
    0% { box-shadow: none; }
    50% { box-shadow: 0 0 15px rgba(224,36,36,0.3); }
    100% { box-shadow: none; }
}
.sn-pulse .sn-timer-block {
    animation: sn-pulse 2s infinite;
}

/* 2-Column Info Grid */
.sn-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}
.sn-timer-container, .sn-fee-card { background:#fff; border:1px solid #e5e7eb; border-radius:12px; padding:20px; box-shadow:0 1px 3px rgba(0,0,0,.06); }
.sn-timer-title, .sn-fee-title { margin:0 0 14px; font-size:18px; color:#1e3a8a; }
.sn-fee-list { margin:0; padding-left:18px; }
.sn-key-highlights { margin:0 0 24px; }.sn-pills-scroll { display:flex; gap:8px; flex-wrap:wrap; }.sn-pill { background:#eff6ff; border:1px solid #bfdbfe; border-radius:999px; padding:6px 12px; font-size:14px; }.sn-category-vacancies { margin-bottom:24px; }.sn-vac-card { padding:14px 8px; border-radius:8px; text-align:center; background:#f3f4f6; }.sn-vac-label,.sn-vac-num { display:block; }.sn-vac-num { font-weight:700; font-size:22px; }
.sn-section { background:#fff; border:1px solid #e5e7eb; border-radius:12px; padding:22px; margin:0 0 20px; }.sn-section h2 { margin-top:0; color:#1e3a8a; font-size:20px; }.sn-table { width:100%; border-collapse:collapse; }.sn-table th,.sn-table td { padding:10px; text-align:left; border-bottom:1px solid #e5e7eb; }.sn-legal-disclaimer { margin-top:32px; border-left:4px solid #64748b; background:#f8fafc; padding:18px; font-size:14px; color:#475569; }
.sn-info-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 20px;
}

/* Application Fee */
.sn-fee-table {
    width: 100%;
    border-collapse: collapse;
}
.sn-fee-table td {
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}
.sn-fee-table td:last-child {
    text-align: right;
    font-weight: 600;
}
.sn-fee-table tr:last-child td {
    border-bottom: none;
}
.sn-payment-mode {
    font-size: 13px;
    color: #6b7280;
    margin-top: 12px;
    text-align: center;
}

/* Highlights Pill Box */
.sn-highlights {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.sn-highlight-pill {
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    padding: 6px 16px;
    font-size: 14px;
}
.sn-highlight-label {
    font-size: 12px;
    color: #6b7280;
    margin-right: 4px;
}
.sn-highlight-val {
    font-weight: 600;
    color: #1f2937;
}

/* Category-Wise Vacancy Grid */
.sn-vacancy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 8px;
    margin-bottom: 24px;
}
.sn-vacancy-card {
    padding: 16px 8px;
    border-radius: 8px;
    text-align: center;
    background-color: #f3f4f6;
}
.sn-vacancy-total { background-color: #1a56db; color: #ffffff; }
.sn-vacancy-gen { background-color: #eff6ff; color: #1e3a8a; }
.sn-vacancy-ews { background-color: #ecfdf5; color: #064e3b; }
.sn-vacancy-obc { background-color: #fffbeb; color: #78350f; }
.sn-vacancy-sc { background-color: #faf5ff; color: #581c87; }
.sn-vacancy-st { background-color: #fef2f2; color: #7f1d1d; }

.sn-vacancy-num {
    display: block;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}
.sn-vacancy-label {
    display: block;
    font-size: 12px;
    opacity: 0.8;
}

/* Section Headers */
.sn-section-title {
    border-left: 4px solid #1a56db;
    padding-left: 16px;
    font-size: 20px;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 16px;
}

/* Content Sections (Tables, Lists) */
.sn-content-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.sn-content-table th, .sn-content-table td {
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    text-align: left;
}
.sn-content-table th {
    background-color: #f9fafb;
    font-weight: 600;
}
.sn-content-table tr:nth-child(even) {
    background-color: #f9fafb;
}

.sn-content ul {
    list-style: none;
    padding-left: 0;
}
.sn-content ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
}
.sn-content ul li::before {
    content: '•';
    color: #1a56db;
    font-size: 24px;
    position: absolute;
    left: 8px;
    top: -6px;
}

/* Action Buttons Dock */
.sn-action-dock {
    display: flex;
    flex-direction: row;
    gap: 12px;
    flex-wrap: wrap;
    margin: 32px 0;
}
.sn-action-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}
.sn-btn-apply {
    background-color: #0e9f6e;
    color: #ffffff;
    flex: 1 1 auto;
    min-width: 200px;
    font-size: 16px;
}
.sn-btn-apply:hover { background-color: #057a55; color: #fff;}
.sn-btn-notification {
    background-color: #ffffff;
    border: 2px solid #1a56db;
    color: #1a56db;
}
.sn-btn-notification:hover { background-color: #f3f4f6; }
.sn-btn-website {
    background-color: #ffffff;
    border: 1px solid #9ca3af;
    color: #6b7280;
}
.sn-btn-website:hover { background-color: #f3f4f6; }

/* FAQ Cards */
.sn-faq-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    padding: 20px;
    margin-bottom: 12px;
    border: 1px solid #f3f4f6;
}
.sn-faq-q {
    font-weight: 600;
    color: #1a56db;
    font-size: 16px;
    margin: 0;
}
.sn-faq-q::before {
    content: 'Q: ';
    color: #0e9f6e;
}
.sn-faq-a {
    color: #374151;
    margin-top: 8px;
    margin-bottom: 0;
    font-size: 15px;
}
.sn-faq-a::before {
    content: 'A: ';
    color: #9ca3af;
    font-weight: 600;
}

/* Legal Disclaimer */
.sn-disclaimer {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-top: 48px;
}
.sn-disclaimer-title {
    font-weight: bold;
    color: #64748b;
    margin-bottom: 8px;
    font-size: 15px;
}
.sn-disclaimer-title::before {
    content: '⚖️ ';
}
.sn-disclaimer-text {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
}

/* Sticky Mobile Bar */
.sn-sticky-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    height: 48px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}
.sn-sticky-title {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 45%;
}
.sn-sticky-time {
    font-size: 12px;
    font-weight: 600;
}
.sn-timer-green-text { color: #0e9f6e; }
.sn-timer-amber-text { color: #f59e0b; }
.sn-timer-red-text { color: #e02424; }
.sn-timer-gray-text { color: #6b7280; }

.sn-sticky-apply {
    background-color: #0e9f6e;
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
.sn-sticky-apply:hover {
    background-color: #057a55;
}

/* Homepage Job Cards (Shortcodes) */
.sn-job-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 24px 0;
}
.sn-job-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.sn-job-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.sn-job-card-header {
    padding: 16px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sn-job-card-body {
    padding: 16px;
    flex-grow: 1;
}
.sn-job-card-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.3;
}
.sn-job-card-title a {
    color: #1f2937;
    text-decoration: none;
}
.sn-job-card-title a:hover {
    color: #1a56db;
}
.sn-job-card-dept {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 12px;
}
.sn-job-card-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.sn-job-card-pill {
    font-size: 12px;
    padding: 4px 10px;
    background: #f3f4f6;
    border-radius: 9999px;
    color: #4b5563;
}
.sn-job-card-footer {
    padding: 12px 16px;
    background: #f9fafb;
    border-top: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sn-job-card-timer {
    font-size: 13px;
    font-weight: 600;
}
.sn-job-card-apply {
    color: #1a56db;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}
.sn-job-card-apply:hover { text-decoration: underline; }

/* Ad Zone Containers */
.sn-ad-zone {
    text-align: center;
    margin: 24px 0;
    min-height: 100px;
    position: relative;
    background: #f9fafb;
    border: 1px dashed #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sn-ad-zone::before {
    content: 'Advertisement';
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: #9ca3af;
}

/* Responsive */
@media (min-width: 768px) {
    .sn-sticky-bar {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    .sn-container {
        width: 100%;
        padding: 16px;
    }
}

@media (max-width: 768px) {
    .sn-info-grid, .sn-job-grid {
        grid-template-columns: 1fr;
    }
    .sn-timer-block {
        min-width: 60px;
        padding: 10px;
    }
    .sn-timer-number {
        font-size: 24px;
    }
    .sn-action-btn {
        width: 100%;
    }
    .sn-share-btn span {
        display: none; /* Hide text on mobile */
    }
    .sn-share-btn svg {
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .sn-timer-block {
        min-width: 50px;
        padding: 8px;
    }
    .sn-timer-number {
        font-size: 20px;
    }
    .sn-timer-label {
        font-size: 10px;
    }
}

/* Print Styles */
@media print {
    .sn-ad-zone, .sn-sticky-bar, .sn-share-dock, .sn-action-dock, .sn-breadcrumb {
        display: none !important;
    }
    .sn-container, .sn-card {
        box-shadow: none;
        background: transparent;
        margin: 0;
        padding: 0;
    }
    body {
        background: #fff;
    }
}
