/*
Theme Name: Career Explorer
Theme URI: https://careeexplorer.co.za
Author: Career Explorer Team
Author URI: https://careeexplorer.co.za
Description: A comprehensive career guidance platform for South African students
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: career-explorer
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
    color: #212529;
    line-height: 1.6;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/* Header */
.header {
    background: linear-gradient(135deg, #007bff 0%, #28a745 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}
.nav-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
    font-weight: 500;
}
.nav-links a:hover {
    opacity: 0.8;
}
.auth-buttons {
    display: flex;
    gap: 1rem;
}
/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    font-family: inherit;
}
.btn-primary {
    background: #007bff;
    color: white;
}
.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}
.btn-success {
    background: #28a745;
    color: white;
}
.btn-success:hover {
    background: #1e7e34;
    transform: translateY(-2px);
}
.btn-warning {
    background: #ffc107;
    color: #212529;
}
.btn-warning:hover {
    background: #e0a800;
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}
.btn-outline:hover {
    background: white;
    color: #007bff;
}
.btn-secondary {
    background: #6c757d;
    color: white;
}
.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}
/* Pages */
.page {
    display: none;
    min-height: calc(100vh - 80px);
}
.page.active {
    display: block;
}
/* Landing Page */
.hero {
    background: linear-gradient(135deg, #007bff 0%, #28a745 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
}
.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}
.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}
.hero-stat {
    text-align: center;
}
.hero-stat h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #ffc107;
}
.hero-stat p {
    opacity: 0.8;
    font-size: 0.9rem;
}
/* Features Section */
.features-section {
    padding: 6rem 0;
    background: white;
}
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 1rem;
}
.section-header p {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.feature-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #f1f3f4;
}
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007bff, #28a745);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}
.feature-card h3 {
    color: #007bff;
    font-weight: 600;
    margin-bottom: 1rem;
}
/* Testimonials */
.testimonials-section {
    padding: 6rem 0;
    background: #f8f9fa;
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}
.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    position: relative;
}
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: #007bff;
    font-family: serif;
}
.testimonial-content {
    margin-bottom: 1.5rem;
    font-style: italic;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007bff, #28a745);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}
.testimonial-info h4 {
    font-weight: 600;
    color: #007bff;
}
.testimonial-info p {
    color: #6c757d;
    font-size: 0.9rem;
}
/* Pricing Section */
.pricing-section {
    padding: 6rem 0;
    background: white;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}
.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    position: relative;
    transition: transform 0.3s;
}
.pricing-card.popular {
    border: 3px solid #28a745;
    transform: scale(1.05);
}
.pricing-card.popular::before {
    content: 'Most Popular';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #28a745;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}
.pricing-card:hover {
    transform: translateY(-5px);
}
.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-5px);
}
.pricing-plan {
    font-size: 1.25rem;
    font-weight: 600;
    color: #007bff;
    margin-bottom: 1rem;
}
.pricing-price {
    font-size: 3rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.5rem;
}
.pricing-period {
    color: #6c757d;
    margin-bottom: 2rem;
}
.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}
.pricing-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f3f4;
}
.pricing-features li:last-child {
    border-bottom: none;
}
.pricing-features li.included {
    color: #28a745;
}
.pricing-features li.excluded {
    color: #6c757d;
    opacity: 0.5;
}
/* Footer */
.footer {
    background: #212529;
    color: white;
    padding: 3rem 0 1rem;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-section h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #28a745;
}
.footer-section ul {
    list-style: none;
}
.footer-section ul li {
    padding: 0.25rem 0;
}
.footer-section ul li a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-section ul li a:hover {
    color: #28a745;
}
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}
.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.3s;
}
.social-links a:hover {
    background: #007bff;
}
.footer-bottom {
    border-top: 1px solid #495057;
    padding-top: 2rem;
    text-align: center;
    color: #adb5bd;
}
/* User Profile Badge */
.user-profile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #28a745;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}
.plan-badge {
    background: #ffc107;
    color: #212529;
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}
.plan-badge.premium {
    background: #28a745;
    color: white;
}
/* Quiz Enhancements */
.quiz-container {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 900px;
    margin: 2rem auto;
}
.quiz-progress {
    width: 100%;
    height: 12px;
    background: #e9ecef;
    border-radius: 6px;
    margin-bottom: 2rem;
    overflow: hidden;
}
.quiz-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #28a745);
    border-radius: 6px;
    transition: width 0.5s ease;
}
.quiz-question {
    display: none;
    margin-bottom: 2rem;
}
.quiz-question.active {
    display: block;
    animation: slideIn 0.3s ease-in;
}
@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}
.quiz-question h3 {
    margin-bottom: 1.5rem;
    color: #007bff;
    font-size: 1.5rem;
    font-weight: 600;
}
.quiz-options {
    display: grid;
    gap: 1rem;
}
.quiz-option {
    padding: 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}
.quiz-option:hover {
    border-color: #007bff;
    background: #f8f9ff;
    transform: translateY(-2px);
}
.quiz-option.selected {
    border-color: #007bff;
    background: #007bff;
    color: white;
}
/* Dashboard Enhancements */
.dashboard {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}
.dashboard-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    height: fit-content;
}
.dashboard-card h3 {
    color: #007bff;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}
.progress-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: conic-gradient(#28a745 0deg, #28a745 0deg, #e9ecef 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem auto;
    position: relative;
}
.progress-circle::before {
    content: '';
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: white;
    position: absolute;
}
.progress-text {
    position: relative;
    z-index: 1;
    font-weight: 700;
    color: #007bff;
}
.premium-upsell {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    margin-top: 2rem;
}
.premium-upsell h4 {
    margin-bottom: 1rem;
    font-weight: 600;
}
.premium-upsell .btn {
    background: white;
    color: #fd7e14;
    font-weight: 600;
}
.premium-upsell .btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}
/* Career Cards Enhanced */
.career-matches {
    display: grid;
    gap: 1.5rem;
}
.career-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-left: 5px solid #007bff;
    transition: transform 0.3s;
    position: relative;
}
.career-card:hover {
    transform: translateY(-5px);
}
.career-card.locked::after {
    content: '🔒';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
}
.career-match-score {
    background: linear-gradient(135deg, #007bff, #28a745);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}
.career-salary {
    color: #28a745;
    font-weight: 600;
    font-size: 1.1rem;
}
.career-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}
/* Tutor Registration */
.tutor-reg-section {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}
.tutor-reg-section h4 {
    color: #007bff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.verification-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}
.verification-status.pending {
    background: #fff3cd;
    color: #856404;
}
.verification-status.approved {
    background: #d1e7dd;
    color: #0f5132;
}
/* Institution Cards Enhanced */
.institution-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    transition: transform 0.3s;
}
.institution-card:hover {
    transform: translateY(-5px);
}
.institution-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1.5rem;
}
.institution-type {
    background: #ffc107;
    color: #212529;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}
.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 15px;
    margin: 1.5rem 0;
}
.requirement-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border-radius: 10px;
}
.requirement-status {
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
}
.requirement-status.pass {
    background: #d1e7dd;
    color: #0f5132;
}
.requirement-status.fail {
    background: #f8d7da;
    color: #721c24;
}
/* Admin Dashboard */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}
.admin-stat {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    text-align: center;
}
.admin-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007bff, #28a745);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}
.admin-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 0.5rem;
}
.admin-table {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.admin-table table {
    width: 100%;
    border-collapse: collapse;
}
.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}
.admin-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #007bff;
}
/* Form Enhancements */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #495057;
    font-weight: 500;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
}
/* Modal Enhancements */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    backdrop-filter: blur(5px);
}
.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-content {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}
.modal-header h3 {
    color: #007bff;
    font-weight: 600;
}
.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #6c757d;
    transition: color 0.3s;
}
.close-modal:hover {
    color: #007bff;
}
/* Filters */
.filters-bar {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}
.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}
/* Tutor Card Enhancements */
.tutor-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    transition: transform 0.3s;
    position: relative;
}
.tutor-card:hover {
    transform: translateY(-5px);
}
.tutor-header {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}
.tutor-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007bff, #28a745);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 600;
    flex-shrink: 0;
}
.tutor-info h4 {
    font-weight: 600;
    color: #007bff;
}
.tutor-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin: 0.25rem 0;
}
.tutor-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #28a745;
}
.tutor-subjects {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}
.subject-tag {
    background: #f1f3f4;
    color: #495057;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.free-lesson-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: #ffc107;
    color: #212529;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    transform: rotate(10deg);
}
/* Dream Career Widget */
.dream-career-widget {
    background: #f8f9ff;
    border-left: 5px solid #007bff;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}
.dream-career-widget h3 {
    color: #007bff;
}
.progress-bar-container {
    width: 100%;
    background: #e9ecef;
    border-radius: 10px;
    height: 20px;
    margin: 0.5rem 0;
}
.progress-bar {
    background: #28a745;
    height: 100%;
    border-radius: 10px;
    color: white;
    text-align: center;
    font-size: 0.8rem;
    line-height: 20px;
}
/* Achievements/Gamification */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 1rem;
    text-align: center;
}
.badge-icon {
    font-size: 2.5rem;
    opacity: 0.3;
    color: #6c757d;
    transition: all 0.3s;
}
.badge-icon.achieved {
    opacity: 1;
    color: #ffc107;
    transform: scale(1.1);
}
.badge-icon small {
    display: block;
    font-size: 0.7rem;
    margin-top: 0.25rem;
}
/* Resource Hub */
.resource-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s;
}
.resource-card:hover {
    transform: translateY(-5px);
}
.resource-card.locked {
    opacity: 0.6;
    cursor: not-allowed;
}
.resource-icon {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 1rem;
}
/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    .dashboard {
        grid-template-columns: 1fr;
    }
    .nav-links {
        display: none;
    }
    .features-grid,
    .testimonials-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    .pricing-card.popular {
        transform: none;
    }
    .pricing-card.popular:hover {
        transform: translateY(-5px);
    }
    .modal-content {
        padding: 2rem;
        margin: 1rem;
    }
}
/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.text-muted { color: #6c757d; }
.text-success { color: #28a745; }
.text-danger { color: #dc3545; }
.text-primary { color: #007bff; }
.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.hidden { display: none !important; }
.fw-bold { font-weight: 700; }
.fw-semibold { font-weight: 600; }