/* Page: Landing / Index */

/* Hero */
.hero-section {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: var(--space-16) 0 var(--space-12);
}

.hero-section .container {
    max-width: 800px;
    text-align: center;
}

.hero-section h1 {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--black);
    margin-bottom: var(--space-4);
    line-height: 1.2;
}

.hero-section h1 .highlight {
    color: var(--primary);
}

.hero-section .hero-subtitle {
    font-size: var(--text-lg);
    color: var(--gray-600);
    margin-bottom: var(--space-8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: var(--space-10);
    justify-content: center;
    margin-top: var(--space-10);
    padding-top: var(--space-8);
    border-top: 1px solid var(--border);
}

.hero-stat {
    text-align: center;
}

.hero-stat .value {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--black);
}

.hero-stat .label {
    font-size: var(--text-xs);
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: var(--space-1);
}

/* User Dashboard Preview */
.user-dashboard {
    padding: var(--space-10) 0;
}

.progress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-5);
}

.progress-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.progress-card .course-info {
    display: flex;
    gap: var(--space-3);
    align-items: start;
}

.progress-card .course-thumb {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    object-fit: cover;
    background: var(--gray-200);
    flex-shrink: 0;
}

.progress-card .course-details h3 {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--gray-900);
    margin-bottom: 2px;
}

.progress-card .progress-text {
    font-size: var(--text-xs);
    color: var(--gray-600);
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--gray-300);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: var(--radius-sm);
    transition: width 0.5s ease;
}

.progress-card .course-actions {
    margin-top: auto;
}

/* Courses Section */
.courses-section {
    padding: var(--space-10) 0;
}

.filter-form {
    display: flex;
    gap: var(--space-3);
    align-items: center;
}

.filter-form select {
    height: 36px;
    padding: 0 var(--space-8) 0 var(--space-3);
    font-size: var(--text-sm);
    border: 1px solid var(--gray-400);
    border-radius: var(--radius);
    color: var(--gray-800);
    background: var(--white);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-5);
}

.course-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.course-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.course-image {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: var(--gray-200);
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-duration {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    background: var(--black);
    color: var(--white);
    padding: 2px var(--space-2);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
}

.bookmark-btn {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    color: var(--gray-500);
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
}

.bookmark-btn:hover {
    color: var(--error);
}

.course-content {
    padding: var(--space-4);
}

.course-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-2);
}

.course-category {
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    color: var(--primary);
}

.course-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 10px;
}

.course-rating .fa-star.active {
    color: var(--accent);
}

.course-rating .fa-star:not(.active) {
    color: var(--gray-300);
}

.course-rating span {
    color: var(--gray-500);
    margin-left: 2px;
}

.course-title {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-2);
    line-height: var(--leading-tight);
}

.course-title a {
    color: var(--gray-900);
    text-decoration: none;
}

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

.course-description {
    font-size: var(--text-xs);
    color: var(--gray-600);
    line-height: var(--leading-normal);
    margin-bottom: var(--space-3);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-3);
    border-top: 1px solid var(--border);
}

.course-author {
    font-size: var(--text-xs);
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.course-actions .btn {
    font-size: var(--text-xs);
}

.section-footer {
    text-align: center;
    margin-top: var(--space-8);
}

.empty-state {
    text-align: center;
    padding: var(--space-12) var(--space-4);
    color: var(--gray-500);
}

.empty-state i {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-4);
    display: block;
}

.empty-state h3 {
    color: var(--gray-700);
    margin-bottom: var(--space-2);
}

/* Books Section */
.featured-books-section {
    padding: var(--space-10) 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-subtitle {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    color: var(--gray-500);
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-5);
}

.book-card {
    background: var(--surface-page);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-5);
    transition: border-color var(--transition-fast);
}

.book-card:hover {
    border-color: var(--accent);
}

.book-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    margin-bottom: var(--space-3);
}

.book-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.book-meta {
    display: flex;
    gap: var(--space-2);
    font-size: var(--text-xs);
    color: var(--gray-500);
}

.book-content {
    flex: 1;
}

.book-title {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--gray-900);
    margin-bottom: var(--space-1);
}

.book-author {
    font-size: var(--text-xs);
    color: var(--gray-600);
    margin-bottom: var(--space-3);
}

.book-summary-preview,
.book-description {
    font-size: var(--text-xs);
    color: var(--gray-700);
    line-height: var(--leading-normal);
}

.book-summary-preview .summary-section h4 {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: var(--gray-800);
    margin-bottom: var(--space-1);
}

.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 2px var(--space-2);
    font-size: 10px;
    color: var(--primary);
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    margin-top: var(--space-2);
}

.book-footer {
    margin-top: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid var(--border);
}

.book-actions {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.hover-indicator {
    display: none;
}

/* CV Promo */
.career-path-cta {
    padding: var(--space-10) 0;
}

.cta-content {
    background: var(--gray-900);
    border-radius: var(--radius-lg);
    padding: var(--space-8) var(--space-10);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8);
}

.cta-text h2 {
    color: var(--white);
    font-size: var(--text-xl);
    margin-bottom: var(--space-2);
}

.cta-text p {
    color: var(--gray-400);
    font-size: var(--text-sm);
}

.btn-career-path {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    text-decoration: none;
    cursor: pointer;
    transition: background var(--transition-fast);
    white-space: nowrap;
}

.btn-career-path:hover {
    background: var(--accent-hover);
    color: var(--white);
}

/* Mentors */
.mentors-section {
    padding: var(--space-10) 0;
}

.mentors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-5);
}

.mentor-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.mentor-avatar {
    position: relative;
    width: 64px;
    height: 64px;
}

.mentor-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.mentor-info h3 {
    font-size: var(--text-base);
    color: var(--black);
}

.mentor-title, .mentor-specialization {
    font-size: var(--text-xs);
    color: var(--gray-600);
}

.mentor-stats {
    display: flex;
    gap: var(--space-4);
}

.mentor-stats .stat {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--text-xs);
    color: var(--gray-600);
}

.mentor-stats .stat .fa-star {
    color: var(--accent);
}

.mentor-actions {
    display: flex;
    gap: var(--space-2);
    margin-top: auto;
}

/* Book Modal */
.book-modal {
    position: fixed;
    inset: 0;
    background: rgba(17,24,39,0.5);
    z-index: 300;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
}

.book-modal.show {
    display: flex;
}

.book-modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.book-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    padding: var(--space-5);
    border-bottom: 1px solid var(--border);
}

.book-modal-header h3 {
    font-size: var(--text-lg);
}

.modal-close-btn {
    background: none;
    border: none;
    color: var(--gray-500);
    font-size: var(--text-lg);
    cursor: pointer;
    padding: var(--space-1);
}

.book-modal-body {
    padding: var(--space-5);
}

.modal-summary-section {
    margin-bottom: var(--space-5);
}

.modal-summary-section h4 {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--gray-800);
    margin-bottom: var(--space-2);
}

.modal-summary-section p,
.modal-summary-section ul {
    font-size: var(--text-sm);
    color: var(--gray-700);
    line-height: var(--leading-relaxed);
}

.modal-summary-section ul {
    padding-left: var(--space-5);
}

.modal-ai-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius);
    font-size: var(--text-xs);
}

.book-modal-footer {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    border-top: 1px solid var(--border);
}

/* Responsive */
/* ═══ Responsive — Tablet ═══ */
@media (max-width: 768px) {
    .hero-section { padding: var(--space-8) 0 var(--space-6); }
    .hero-section h1 { font-size: var(--text-xl); margin-bottom: var(--space-2); }
    .hero-section .hero-subtitle { font-size: var(--text-sm); margin-bottom: var(--space-5); }
    .hero-actions .btn { font-size: var(--text-sm); padding: 10px 20px; }
    .hero-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3);
    }
    .hero-stat { padding: var(--space-3); }
    .hero-stat .stat-value { font-size: var(--text-xl); }
    .hero-stat .stat-label { font-size: 11px; }

    .user-dashboard, .courses-section, .featured-books-section { padding: var(--space-6) 0; }
    .section-header h2 { font-size: var(--text-lg); }

    .progress-grid { grid-template-columns: 1fr; }

    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3);
    }
    .course-image { height: 130px; }
    .course-image img { height: 130px; }
    .course-content { padding: var(--space-3); }
    .course-title { font-size: var(--text-xs); }
    .course-description { font-size: 11px; -webkit-line-clamp: 2; }
    .course-footer { padding-top: var(--space-2); }
    .course-author { font-size: 10px; }

    .books-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3);
    }
    .book-card { padding: var(--space-3); }
    .book-title { font-size: var(--text-xs); }
    .book-summary-preview { font-size: 11px; }

    .cta-content {
        flex-direction: column;
        text-align: center;
        padding: var(--space-5);
    }
    .career-path-cta { padding: var(--space-6) 0; }

    .filter-form { flex-wrap: wrap; gap: var(--space-2); }
    .filter-form select { font-size: var(--text-xs); height: 34px; }

    .mentors-grid { grid-template-columns: 1fr; }
    .section-footer { margin-top: var(--space-5); }
}

/* ═══ Responsive — Mobile ═══ */
@media (max-width: 480px) {
    .hero-section { padding: var(--space-6) 0 var(--space-4); }
    .hero-section h1 { font-size: var(--text-lg); line-height: 1.3; }
    .hero-section .hero-subtitle { font-size: var(--text-xs); margin-bottom: var(--space-4); max-width: 100%; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .hero-stats { gap: var(--space-2); }
    .hero-stat { padding: var(--space-2); }
    .hero-stat .stat-value { font-size: var(--text-lg); }
    .hero-stat .stat-label { font-size: 10px; }

    .user-dashboard, .courses-section, .featured-books-section { padding: var(--space-4) 0; }
    .section-header { margin-bottom: var(--space-3); }
    .section-header h2 { font-size: var(--text-base); }

    .courses-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .course-image { height: 100px; }
    .course-image img { height: 100px; }
    .course-content { padding: 8px 10px; }
    .course-title { font-size: 12px; }
    .course-description { display: none; }
    .course-meta { margin-bottom: var(--space-1); }
    .course-category { font-size: 10px; }
    .course-footer { font-size: 10px; }
    .course-actions .btn { font-size: 10px; padding: 4px 8px; }
    .bookmark-btn { width: 26px; height: 26px; font-size: 11px; }
    .course-duration { font-size: 10px; padding: 1px 4px; }

    .books-grid { grid-template-columns: 1fr; gap: var(--space-3); }
    .book-card { padding: var(--space-3); }
    .book-icon { width: 32px; height: 32px; font-size: 14px; }
    .book-summary-preview { display: none; }
    .book-actions { flex-direction: column; gap: var(--space-2); }
    .book-actions .btn { width: 100%; justify-content: center; font-size: 12px; }

    .cta-content { padding: var(--space-4); }
    .cta-content h2 { font-size: var(--text-base); }
    .cta-content p { font-size: var(--text-xs); }
    .btn-career-path { font-size: var(--text-sm); padding: 10px 16px; }

    .filter-form select { font-size: 11px; height: 32px; padding: 0 var(--space-6) 0 var(--space-2); }

    .empty-state { padding: var(--space-6) var(--space-3); }
    .empty-state i { font-size: var(--text-2xl); }
    .section-footer { margin-top: var(--space-4); }
    .section-footer .btn { font-size: var(--text-sm); }
}

/* ═══════════════════════════════════════════
   TOOLS SECTION
   ═══════════════════════════════════════════ */
.tools-section {
    padding: var(--space-10) 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.tools-header {
    margin-bottom: var(--space-6);
}

.tools-header h2 {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--gray-900);
    margin-bottom: 6px;
}

.tools-header p {
    font-size: 15px;
    color: var(--gray-600);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.tool-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.tool-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.tool-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.icon-cv        { background: #EFF6FF; color: #2563EB; }
.icon-tracker   { background: #F0FDF4; color: #16A34A; }
.icon-interview { background: #FFF7ED; color: #C2410C; }
.icon-linkedin  { background: #EEF2FF; color: #2563EB; }
.icon-salary    { background: #FDF2F8; color: #BE185D; }

.tool-card-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
    line-height: 1.3;
}

.tool-card-desc {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.55;
    margin-bottom: 16px;
}

.tool-card-features {
    list-style: none;
    margin-bottom: 20px;
    flex: 1;
    padding: 0;
}

.tool-card-features li {
    font-size: 12px;
    color: var(--gray-800);
    padding: 3px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tool-card-features li i {
    color: var(--primary);
    font-size: 10px;
    flex-shrink: 0;
}

.tool-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-top: auto;
    transition: gap 0.2s;
}

.tool-card:hover .tool-card-cta {
    gap: 10px;
}

.tool-card-cta i {
    font-size: 11px;
    transition: transform 0.2s;
}

.tool-card:hover .tool-card-cta i {
    transform: translateX(2px);
}

.tool-card-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 99px;
    letter-spacing: 0.02em;
}

.tag-popular { background: #FEF3C7; color: #92400E; }
.tag-new     { background: #D1FAE5; color: #065F46; }
.tag-ai      { background: var(--primary-light); color: var(--primary); }

@media (max-width: 1024px) {
    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .tools-section {
        padding: var(--space-8) 0;
    }
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .tool-card {
        padding: 20px 16px;
    }
    .tool-card-features {
        display: none;
    }
}

@media (max-width: 480px) {
    .tools-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .tool-card {
        padding: 16px 14px;
    }
    .tool-card-icon {
        width: 40px;
        height: 40px;
        font-size: 17px;
        margin-bottom: 12px;
    }
    .tool-card-name { font-size: 14px; }
    .tool-card-desc { font-size: 12px; }
}
