/* Guide Page Styles (Tier 4) - Prefixed with sal-guide- */

/* Guide Container */
.sal-guide-container {
    margin: 0 auto;
    padding: 20px;
}

/* Guide Hero Section */
.sal-guide-hero {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    color: white;
    padding: 40px 32px;
    border-radius: 12px;
    margin-bottom: 32px;
}

.sal-guide-hero h1 {
    font-size: 2rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.sal-guide-hero .sal-guide-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.sal-guide-hero .sal-guide-meta {
    font-size: 0.85rem;
    opacity: 0.75;
    margin-top: 16px;
}

/* Quick Answer Box - Featured Snippet Target */
.sal-guide-quick-answer {
    background: #f0f7ff;
    border-left: 4px solid #2b6cb0;
    padding: 24px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 32px;
}

.sal-guide-quick-answer-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #2b6cb0;
    font-weight: 600;
    margin-bottom: 12px;
}

.sal-guide-quick-answer p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #1a202c;
    margin-bottom: 0;
}

.sal-guide-quick-answer strong {
    color: #2b6cb0;
}

/* Guide Section */
.sal-guide-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 24px;
}

.sal-guide-section-title {
    font-size: 1.4rem;
    color: #1a202c;
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sal-guide-section-title .emoji {
    font-size: 1.2rem;
}

/* Ranked List (for Highest Paying Jobs) */
.sal-guide-ranked-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sal-guide-ranked-item {
    display: flex;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #e2e8f0;
    gap: 16px;
}

.sal-guide-ranked-item:last-child {
    border-bottom: none;
}

.sal-guide-rank {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #2b6cb0 0%, #3182ce 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.sal-guide-rank.gold {
    background: linear-gradient(135deg, #d69e2e 0%, #ecc94b 100%);
}

.sal-guide-rank.silver {
    background: linear-gradient(135deg, #718096 0%, #a0aec0 100%);
}

.sal-guide-rank.bronze {
    background: linear-gradient(135deg, #c27803 0%, #dd6b20 100%);
}

.sal-guide-ranked-info {
    flex: 1;
}

.sal-guide-ranked-title {
    font-weight: 600;
    color: #1a202c;
    font-size: 1rem;
    margin-bottom: 4px;
}

.sal-guide-ranked-title a {
    color: inherit;
    text-decoration: none;
}

.sal-guide-ranked-title a:hover {
    color: #2b6cb0;
}

.sal-guide-ranked-range {
    font-size: 0.85rem;
    color: #718096;
}

.sal-guide-ranked-salary {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2b6cb0;
    text-align: right;
}

.sal-guide-ranked-salary .label {
    font-size: 0.7rem;
    color: #718096;
    font-weight: 400;
    display: block;
}

/* Data Table */
.sal-guide-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.sal-guide-table th {
    background: #f7fafc;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #4a5568;
    border-bottom: 2px solid #e2e8f0;
}

.sal-guide-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    color: #1a202c;
}

.sal-guide-table tr:hover {
    background: #f7fafc;
}

.sal-guide-table .salary {
    font-weight: 600;
    color: #2b6cb0;
}

.sal-guide-table .highlight {
    background: #fffbeb;
}

/* Pros and Cons */
.sal-guide-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 768px) {
    .sal-guide-pros-cons {
        grid-template-columns: 1fr;
    }
}

.sal-guide-pros,
.sal-guide-cons {
    padding: 20px;
    border-radius: 8px;
}

.sal-guide-pros {
    background: #f0fff4;
    border: 1px solid #9ae6b4;
}

.sal-guide-cons {
    background: #fff5f5;
    border: 1px solid #feb2b2;
}

.sal-guide-pros h3,
.sal-guide-cons h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sal-guide-pros h3 {
    color: #276749;
}

.sal-guide-cons h3 {
    color: #c53030;
}

.sal-guide-pros ul,
.sal-guide-cons ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sal-guide-pros li,
.sal-guide-cons li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    line-height: 1.5;
}

.sal-guide-pros li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #38a169;
    font-weight: 700;
}

.sal-guide-cons li::before {
    content: "✗";
    position: absolute;
    left: 0;
    color: #e53e3e;
    font-weight: 700;
}

/* Career Timeline */
.sal-guide-timeline {
    position: relative;
    padding-left: 40px;
}

.sal-guide-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #3182ce 0%, #38a169 100%);
    border-radius: 2px;
}

.sal-guide-timeline-step {
    position: relative;
    padding: 16px 0;
    padding-left: 20px;
}

.sal-guide-timeline-marker {
    position: absolute;
    left: -25px;
    top: 20px;
    width: 24px;
    height: 24px;
    background: white;
    border: 3px solid #3182ce;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #3182ce;
}

.sal-guide-timeline-step.milestone .sal-guide-timeline-marker {
    background: #38a169;
    border-color: #38a169;
    color: white;
}

.sal-guide-timeline-content {
    background: #f7fafc;
    padding: 16px;
    border-radius: 8px;
    border-left: 3px solid #e2e8f0;
}

.sal-guide-timeline-step.milestone .sal-guide-timeline-content {
    background: #f0fff4;
    border-left-color: #38a169;
}

.sal-guide-timeline-title {
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 4px;
}

.sal-guide-timeline-years {
    font-size: 0.85rem;
    color: #718096;
    margin-bottom: 8px;
}

.sal-guide-timeline-salary {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2b6cb0;
}

.sal-guide-timeline-gain {
    font-size: 0.85rem;
    color: #38a169;
    margin-left: 8px;
}

/* FAQ Section */
.sal-guide-faq {
    margin-top: 0;
}

.sal-guide-faq-item {
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 0;
}

.sal-guide-faq-item:last-child {
    border-bottom: none;
}

.sal-guide-faq-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 12px;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.sal-guide-faq-question::before {
    content: "Q";
    background: #2b6cb0;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.sal-guide-faq-answer {
    padding-left: 36px;
    color: #4a5568;
    line-height: 1.7;
}

/* Comparison Table */
.sal-guide-comparison {
    overflow-x: auto;
}

.sal-guide-comparison table {
    width: 100%;
    min-width: 500px;
}

.sal-guide-comparison .highlight-row {
    background: #ebf8ff;
}

.sal-guide-comparison .highlight-row td {
    font-weight: 600;
}

/* Stat Cards Row */
.sal-guide-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.sal-guide-stat-card {
    background: #f7fafc;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.sal-guide-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2b6cb0;
    margin-bottom: 4px;
}

.sal-guide-stat-label {
    font-size: 0.85rem;
    color: #718096;
}

/* CTA Section */
.sal-guide-cta {
    background: linear-gradient(135deg, #2b6cb0 0%, #3182ce 100%);
    color: white;
    padding: 32px;
    border-radius: 12px;
    text-align: center;
    margin-top: 32px;
}

.sal-guide-cta h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.sal-guide-cta p {
    opacity: 0.9;
    margin-bottom: 20px;
}

.sal-guide-cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.sal-guide-cta .sal-btn {
    padding: 12px 28px;
}

.sal-guide-cta .sal-btn-primary {
    background: white;
    color: #2b6cb0;
}

.sal-guide-cta .sal-btn-primary:hover {
    background: #f7fafc;
}

.sal-guide-cta .sal-btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.sal-guide-cta .sal-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Related Guides */
.sal-guide-related {
    margin-top: 32px;
}

.sal-guide-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.sal-guide-related-card {
    display: block;
    padding: 20px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sal-guide-related-card:hover {
    border-color: #3182ce;
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.15);
    transform: translateY(-2px);
}

.sal-guide-related-card h4 {
    color: #1a202c;
    margin-bottom: 8px;
    font-size: 1rem;
}

.sal-guide-related-card p {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Hourly Rate Section */
.sal-guide-hourly {
    background: #fffbeb;
    border: 1px solid #fbd38d;
    border-radius: 8px;
    padding: 24px;
}

.sal-guide-hourly-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.sal-guide-hourly-item {
    text-align: center;
    padding: 16px;
    background: white;
    border-radius: 6px;
}

.sal-guide-hourly-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #d69e2e;
}

.sal-guide-hourly-label {
    font-size: 0.8rem;
    color: #718096;
    margin-top: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .sal-guide-hero {
        padding: 28px 20px;
    }

    .sal-guide-hero h1 {
        font-size: 1.5rem;
    }

    .sal-guide-section {
        padding: 20px;
    }

    .sal-guide-ranked-item {
        flex-wrap: wrap;
    }

    .sal-guide-ranked-salary {
        width: 100%;
        text-align: left;
        margin-top: 8px;
    }

    .sal-guide-table {
        font-size: 0.85rem;
    }

    .sal-guide-table th,
    .sal-guide-table td {
        padding: 10px 12px;
    }

    .sal-guide-timeline {
        padding-left: 30px;
    }

    .sal-guide-timeline::before {
        left: 10px;
    }

    .sal-guide-timeline-marker {
        left: -20px;
        width: 20px;
        height: 20px;
    }
}

/* Print styles */
@media print {

    .sal-guide-cta,
    .sal-guide-related {
        display: none;
    }

    .sal-guide-section {
        break-inside: avoid;
    }
}