/*
Theme Name: Earn in Pakistan Salary Guide Theme
Theme URI: https://earninpakistan.com/
Author: Clicks.com.pk
Author URI: https://clicks.com.pk/
Description: A highly optimized, data-led, Hyper-SEO and AEO custom WordPress theme for salary guides in Pakistan.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: earninpakistan
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #0284c7;
    --primary-grad: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    --accent: #fbbf24;
    --neutral-dark: #0f172a;
    --neutral-body: #475569;
    --neutral-light: #f8fafc;
    --neutral-border: #e2e8f0;
    --card-bg: rgba(255, 255, 255, 0.85);
    --shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
    --shadow-hover: 0 20px 40px -15px rgba(2, 132, 199, 0.15);
    --font: 'Outfit', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font);
    background-color: #f1f5f9;
    background-image: radial-gradient(circle at 0% 0%, #e0f2fe 0%, transparent 40%), radial-gradient(circle at 100% 100%, #f0f9ff 0%, transparent 40%);
    background-attachment: fixed;
    color: var(--neutral-body);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
    color: #0369a1;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Premium Header & Footer */
header.site-header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
}

header.site-header .header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo a {
    font-size: 26px;
    font-weight: 800;
    color: var(--neutral-dark);
    letter-spacing: -0.8px;
    background: linear-gradient(to right, var(--neutral-dark) 60%, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav.main-nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

nav.main-nav a {
    color: var(--neutral-dark);
    font-weight: 600;
    font-size: 15px;
    padding: 8px 0;
    position: relative;
}

nav.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-grad);
    transition: width 0.3s ease;
}

nav.main-nav a:hover::after {
    width: 100%;
}

footer.site-footer {
    background-color: var(--neutral-dark);
    color: #94a3b8;
    padding: 80px 0 40px;
    margin-top: 80px;
    border-top: 1px solid #1e293b;
}

footer.site-footer h4 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.3px;
}

footer.site-footer ul {
    list-style: none;
}

footer.site-footer ul li {
    margin-bottom: 12px;
}

footer.site-footer ul a {
    color: #94a3b8;
    font-size: 14px;
    transition: color 0.2s;
}

footer.site-footer ul a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

/* Premium Homepage Hero */
.homepage-hero {
    background: radial-gradient(circle at 70% 30%, #e0f2fe 0%, #ffffff 80%);
    border-bottom: 1px solid var(--neutral-border);
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.homepage-hero h1 {
    font-size: 52px;
    font-weight: 800;
    color: var(--neutral-dark);
    margin-bottom: 20px;
    letter-spacing: -1.5px;
    line-height: 1.2;
}

.homepage-hero p {
    font-size: 20px;
    color: var(--neutral-body);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-container {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 20px 50px -15px rgba(2, 132, 199, 0.15);
    border-radius: 99px;
}

.search-container input {
    width: 100%;
    padding: 22px 30px;
    border: 1px solid rgba(2, 132, 199, 0.15);
    border-radius: 99px;
    font-size: 16px;
    font-family: var(--font);
    outline: none;
    transition: all 0.3s;
    background-color: #ffffff;
}

.search-container input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.1);
}

.search-container button {
    position: absolute;
    right: 8px;
    top: 8px;
    bottom: 8px;
    background: var(--primary-grad);
    color: white;
    border: none;
    border-radius: 99px;
    padding: 0 32px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
    transition: all 0.3s;
}

.search-container button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.4);
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--neutral-dark);
    margin: 80px 0 40px;
    letter-spacing: -0.8px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-grad);
    border-radius: 2px;
}

.grid-trending, .grid-categories, .grid-cities {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* Post Card UI */
.role-card {
    background-color: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.role-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-grad);
    opacity: 0;
    transition: opacity 0.3s;
}

.role-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(2, 132, 199, 0.2);
}

.role-card:hover::before {
    opacity: 1;
}

.role-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--neutral-dark);
    margin-bottom: 12px;
    letter-spacing: -0.4px;
}

.role-card .card-category {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.role-card .card-salary {
    font-size: 28px;
    font-weight: 800;
    color: var(--neutral-dark);
    letter-spacing: -0.5px;
}

.role-card .card-salary span {
    font-size: 14px;
    font-weight: 500;
    color: var(--neutral-body);
}

/* Single Post Page Redesign */
.post-layout {
    display: grid;
    grid-template-columns: 8.5fr 3.5fr;
    gap: 50px;
    margin-top: 40px;
}

.salary-guide-article {
    background-color: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.salary-guide-sidebar {
    position: sticky;
    top: 110px;
    align-self: start;
}

.breadcrumb {
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 24px;
}

.breadcrumb a {
    color: #64748b;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.post-meta-row {
    display: flex;
    gap: 20px;
    align-items: center;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    margin: 16px 0 32px;
}

.chip-category {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    padding: 6px 16px;
    border-radius: 99px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Quick Answer Box */
.quick-answer {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 6px solid var(--primary);
    padding: 30px;
    border-radius: 0 16px 16px 0;
    margin-bottom: 40px;
    box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.05);
}

.quick-answer p {
    font-size: 18px;
    color: #0369a1;
    font-weight: 500;
    line-height: 1.7;
}

.quick-answer strong {
    color: var(--neutral-dark);
    font-weight: 700;
}

/* Sidebar Table of Contents */
.sidebar-toc {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--neutral-border);
    box-shadow: var(--shadow);
}

.sidebar-toc h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--neutral-dark);
    margin-bottom: 20px;
    letter-spacing: -0.3px;
    border-bottom: 2px solid var(--neutral-light);
    padding-bottom: 12px;
}

.sidebar-toc ul {
    list-style: none;
}

.sidebar-toc ul li {
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    padding-left: 18px;
}

.sidebar-toc ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.sidebar-toc ul li a {
    color: var(--neutral-body);
}

.sidebar-toc ul li a:hover {
    color: var(--primary);
    padding-left: 4px;
}

/* Premium Charts & Responsive Tables */
.chart-wrapper {
    background: #ffffff;
    border: 1px solid var(--neutral-border);
    border-radius: 16px;
    padding: 30px;
    margin: 30px 0 40px;
    box-shadow: var(--shadow);
}

.chart-container {
    position: relative;
    height: 350px;
    width: 100%;
    margin-bottom: 24px;
}

table.salary-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 30px 0;
    border: 1px solid var(--neutral-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.01);
}

table.salary-table th, table.salary-table td {
    padding: 16px 24px;
    text-align: left;
}

table.salary-table th {
    background-color: var(--neutral-light);
    color: var(--neutral-dark);
    font-weight: 700;
    font-size: 15px;
    border-bottom: 1px solid var(--neutral-border);
}

table.salary-table td {
    border-bottom: 1px solid var(--neutral-border);
    background-color: #ffffff;
    font-size: 15px;
}

table.salary-table tr:last-child td {
    border-bottom: none;
}

table.salary-table tr:hover td {
    background-color: var(--neutral-light);
}

table.salary-table tr.highlight-row td {
    background-color: #f0f9ff;
    font-weight: 600;
    color: var(--primary-dark);
}

/* Premium Star Rating Widget */
.rating-widget {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    margin: 60px 0;
    box-shadow: 0 15px 35px -10px rgba(251, 191, 36, 0.15);
}

.rating-widget h4 {
    font-size: 22px;
    font-weight: 800;
    color: #92400e;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.stars {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
}

.star {
    font-size: 42px;
    cursor: pointer;
    color: #d1d5db;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.star.active, .star:hover {
    color: #fbbf24;
    transform: scale(1.2);
    text-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
}

/* Accordion FAQs */
.faq-item {
    background-color: #ffffff;
    border: 1px solid var(--neutral-border);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: rgba(2, 132, 199, 0.2);
}

.faq-question {
    background-color: #ffffff;
    padding: 20px 30px;
    font-weight: 700;
    font-size: 16px;
    color: var(--neutral-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.faq-question:hover {
    background-color: var(--neutral-light);
}

.faq-answer {
    background-color: #ffffff;
    padding: 0 30px;
    height: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 0 solid var(--neutral-border);
}

.faq-item.active .faq-answer {
    padding: 20px 30px 24px;
    height: auto;
    border-top-width: 1px;
}

/* Beautiful Hero placeholder */
.hero-image-placeholder {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #0284c7 0%, #0f172a 100%);
    color: white;
    font-size: 32px;
    font-weight: 800;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
    text-align: center;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.hero-image-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(2, 132, 199, 0.4), transparent 50%);
}

/* Responsive fixes */
@media (max-width: 992px) {
    .post-layout {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .salary-guide-article {
        padding: 30px;
    }
    .homepage-hero h1 {
        font-size: 38px;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    .homepage-hero h1 {
        font-size: 32px;
    }
    .salary-guide-article {
        padding: 20px;
    }
}
