/* Skills Gap Analyzer - Styles */
/* Color Palette */
:root {
    --primary-color: #C62E2E;
    --secondary-color: #1e1e1e;
    --accent-color: #C1E172;
    --background-color: #f8f9fa;
    --text-color: #1e1e1e;
    --text-muted: #6c757d;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #a02525 100%);
    padding: 80px 0 60px;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin: 0 auto 30px;
}

.hero-icon {
    margin-top: 30px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Tool Section */
.tool-section {
    padding: 60px 0;
}

.tool-card {
    background: var(--white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
}

.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.tool-header h2 {
    font-size: 2rem;
    color: var(--text-color);
    font-weight: 700;
}

.input-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--background-color);
}

.input-section:last-of-type {
    border-bottom: none;
}

.input-section h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.section-description {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.skill-checkbox {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: var(--background-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.skill-checkbox:hover {
    border-color: var(--primary-color);
    background: rgba(198, 46, 46, 0.05);
}

.skill-checkbox.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.skill-checkbox input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.skill-checkbox label {
    cursor: pointer;
    user-select: none;
    flex: 1;
    font-weight: 500;
}

/* Custom Skill Input */
.custom-skill-input {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.custom-skill-input input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.custom-skill-input input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.custom-skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.custom-skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--accent-color);
    color: var(--secondary-color);
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.9rem;
}

.custom-skill-tag button {
    background: none;
    border: none;
    color: var(--secondary-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

/* Industry Selector */
.industry-selector {
    margin-top: 15px;
}

.form-select {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Priority Options */
.priority-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.priority-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px;
    background: var(--background-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.priority-item:hover {
    background: rgba(198, 46, 46, 0.05);
}

.priority-item input[type="checkbox"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.priority-item span {
    font-weight: 500;
    color: var(--text-color);
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-action,
.btn-cta-primary,
.btn-cta-secondary {
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #a02525;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--background-color);
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--white);
    border-color: var(--primary-color);
}

.btn-action {
    background: var(--primary-color);
    color: white;
    width: 100%;
    font-size: 1.1rem;
    padding: 16px;
    margin-top: 20px;
}

.btn-action:hover {
    background: #a02525;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-action:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    transform: none;
}

/* Results Section */
.results-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 3px solid var(--primary-color);
}

.results-section h3 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 30px;
    font-weight: 700;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #a02525 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.summary-icon {
    font-size: 2.5rem;
}

.summary-content h4 {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 5px;
}

.summary-value {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.gap-results {
    margin-top: 30px;
}

.gap-skill-item {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.gap-skill-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.gap-skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.gap-skill-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
}

.gap-skill-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-demand {
    background: var(--primary-color);
    color: white;
}

.badge-salary {
    background: var(--accent-color);
    color: var(--secondary-color);
}

.badge-difficulty {
    background: var(--background-color);
    color: var(--text-color);
}

.gap-skill-description {
    color: var(--text-muted);
    margin-bottom: 12px;
}

.gap-skill-resources {
    margin-top: 10px;
}

.gap-skill-resources h5 {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 8px;
    font-weight: 600;
}

.resource-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.resource-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 4px 10px;
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.resource-link:hover {
    background: var(--primary-color);
    color: white;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--text-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--background-color);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-color);
    font-weight: 600;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* How To Section */
.how-to-section {
    padding: 80px 0;
    background: var(--background-color);
}

.steps-container {
    max-width: 900px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    gap: 25px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.step-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text-color);
    font-weight: 600;
}

.step-content p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #a02525 100%);
    padding: 80px 0;
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-primary {
    background: white;
    color: var(--primary-color);
    font-size: 1.1rem;
    padding: 16px 32px;
}

.btn-cta-primary:hover {
    background: var(--accent-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-cta-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    font-size: 1.1rem;
    padding: 16px 32px;
}

.btn-cta-secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: var(--white);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-color);
}

.faq-question {
    width: 100%;
    background: var(--background-color);
    border: none;
    padding: 20px;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(198, 46, 46, 0.05);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--white);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 20px;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

/* Content Section */
.content-section {
    padding: 80px 0;
    background: var(--background-color);
}

.content-article {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    padding: 50px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.content-article h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-color);
    font-weight: 700;
}

.content-article h3 {
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-color);
    font-weight: 600;
}

.content-article p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .tool-card {
        padding: 25px;
    }

    .tool-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .custom-skill-input {
        flex-direction: column;
    }

    .summary-cards {
        grid-template-columns: 1fr;
    }

    .gap-skill-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons button,
    .action-buttons a {
        width: 100%;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .step-item {
        flex-direction: column;
        text-align: center;
    }

    .step-number {
        margin: 0 auto;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
    }

    .content-article {
        padding: 30px 20px;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.7rem;
    }

    .tool-header h2 {
        font-size: 1.5rem;
    }

    .input-section h3 {
        font-size: 1.3rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus Styles for Accessibility */
button:focus,
input:focus,
select:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .hero-section,
    .features-section,
    .how-to-section,
    .cta-section,
    .faq-section,
    .content-section {
        display: none;
    }

    .tool-card {
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
}