/* Notes Page Styles */

/* Navigation */
.notes-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.back-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: var(--primary-color);
    transform: translateX(-4px);
}

.nav-actions {
    display: flex;
    gap: 1rem;
}

.bookmark-btn,
.share-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bookmark-btn:hover,
.share-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.notes-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-link.next {
    margin-left: auto;
}

/* Example Boxes */
.example-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid #4ade80;
}

.example-box h4 {
    color: #4ade80;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.example-box p {
    color: var(--text-secondary-color);
    line-height: 1.6;
    margin: 0;
}

/* Tools Section */
.tools-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.tools-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.tool-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.tool-link {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary-color);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tool-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--primary-color);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.tool-link.external {
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.3);
}

.tool-link.external:hover {
    background: rgba(74, 222, 128, 0.2);
    color: #22c55e;
}

/* Case Studies */
.case-study {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 2rem 0;
    border-left: 4px solid #3b82f6;
}

.case-study h4 {
    color: #3b82f6;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.case-study p {
    color: var(--text-secondary-color);
    line-height: 1.6;
    margin: 0.75rem 0;
}

.case-study ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.case-study li {
    color: var(--text-secondary-color);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.case-study strong {
    color: var(--primary-color);
}

/* Tools Showcase */
.tools-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.tool-highlight {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.tool-highlight h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.tool-highlight ul {
    list-style: none;
    padding: 0;
}

.tool-highlight li {
    color: var(--text-secondary-color);
    margin-bottom: 0.75rem;
    line-height: 1.5;
    padding-left: 0;
}

.tool-highlight a {
    color: #4ade80;
    text-decoration: none;
    font-weight: 500;
}

.tool-highlight a:hover {
    text-decoration: underline;
}

/* Enhanced Beginner Tools */
.beginner-tools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.tool-category {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.tool-category h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.tool-category ul {
    list-style: none;
    padding: 0;
}

.tool-category li {
    color: var(--text-secondary-color);
    margin-bottom: 0.75rem;
    line-height: 1.5;
    padding-left: 0;
}

.tool-category a {
    color: #4ade80;
    text-decoration: none;
    font-weight: 500;
}

.tool-category a:hover {
    text-decoration: underline;
}

.tool-category strong {
    color: var(--primary-color);
    font-weight: 600;
}

.download-notes-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 2rem;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.3);
    text-decoration: none;
    min-height: 48px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.download-notes-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 222, 128, 0.4);
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.download-notes-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.download-notes-btn.loading i {
    animation: spin 1s linear infinite;
}

.download-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin-top: 1rem;
    margin-bottom: 0;
    text-align: center;
}

/* Download Section Styling */
.download-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.download-section:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(74, 222, 128, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 222, 128, 0.1);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Header */
.notes-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.notes-title-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.notes-icon {
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.8;
}

.notes-title-content {
    text-align: center;
}

.notes-title-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin: 1rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.notes-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.notes-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.meta-item i {
    color: var(--primary-color);
}

.notes-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.level-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.level-badge.beginner {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
}

.level-badge.intermediate {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.level-badge.advanced {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.notes-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin: 1rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.reading-time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.reading-time i {
    color: var(--primary-color);
}

/* Table of Contents */
.table-of-contents {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    padding: 2rem;
    margin-bottom: 3rem;
}

.toc-header h2 {
    margin: 0 0 1.5rem;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.toc-content .toc-list {
    list-style: none;
    counter-reset: toc-counter;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.toc-content .toc-list li {
    counter-increment: toc-counter;
    margin-bottom: 0.75rem;
}

.toc-content .toc-list a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    min-height: 120px;
    transform: translateY(0);
}

.toc-content .toc-list a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4ade80, #22c55e);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    border-radius: 1.25rem 1.25rem 0 0;
}

.toc-content .toc-list a::after {
    content: counter(toc-counter);
    background: var(--primary-color);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.toc-content .toc-list a:hover::before {
    transform: scaleX(1);
}

.toc-content .toc-list a:hover::after {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(74, 222, 128, 0.4);
}

.toc-content .toc-list a.active {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.2), rgba(34, 197, 94, 0.1));
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 8px 16px rgba(74, 222, 128, 0.25);
}

.toc-content .toc-list a::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: 0;
}

.toc-content .toc-list a:hover::after {
    left: 100%;
}

.toc-content .toc-list a .toc-text {
    margin: 0;
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.toc-content .toc-list a:hover .toc-text {
    color: #4ade80;
}

/* Main Content */
.notes-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.chapter {
    margin-bottom: 4rem;
    scroll-margin-top: 2rem;
    position: relative;
}

.chapter h2 {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    position: relative;
}

.chapter h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
}

.chapter h4 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
}

.chapter p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.chapter ul,
.chapter ol {
    color: rgba(255, 255, 255, 0.8);
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.chapter li {
    margin-bottom: 0.5rem;
}

.chapter strong {
    color: white;
    font-weight: 600;
}

/* Special Boxes */
.highlight-box,
.warning-box,
.tool-highlight,
.best-practices,
.example-box {
    margin: 2rem 0;
    padding: 1.5rem;
    border-radius: 1rem;
    border-left: 4px solid;
}

.highlight-box {
    background: rgba(116, 103, 252, 0.1);
    border-color: var(--primary-color);
}

.warning-box {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
}

.tool-highlight {
    background: rgba(34, 197, 94, 0.1);
    border-color: #22c55e;
}

.best-practices {
    background: rgba(245, 158, 11, 0.1);
    border-color: #f59e0b;
}

.example-box {
    background: rgba(168, 85, 247, 0.1);
    border-color: #a855f7;
}

.highlight-box h4,
.warning-box h4,
.tool-highlight h4,
.best-practices h4,
.example-box h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: white;
}

.good-example {
    background: rgba(34, 197, 94, 0.2);
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 0.5rem 0;
    color: #22c55e;
    font-family: 'Courier New', monospace;
}

.bad-example {
    background: rgba(239, 68, 68, 0.2);
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 0.5rem 0;
    color: #ef4444;
    font-family: 'Courier New', monospace;
}

/* Tool Links */
.tool-link,
.tool-button {
    display: inline-block;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    margin: 0.25rem 0.5rem 0.25rem 0;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.3);
}

.tool-link:hover,
.tool-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 222, 128, 0.4);
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.tool-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Grid Layouts */
.info-grid,
.intent-grid,
.content-types,
.link-types,
.metrics-grid,
.tools-grid {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.info-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.intent-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.content-types,
.link-types {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.metrics-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.tools-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Cards */
.info-card,
.intent-card,
.content-type,
.link-type,
.metric-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.info-card:hover,
.intent-card:hover,
.content-type:hover,
.link-type:hover,
.metric-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    transform: translateY(-4px);
}

/* Tool Cards - Category Page Style */
.tool-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1.25rem;
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4ade80, #22c55e);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    border-radius: 1.25rem 1.25rem 0 0;
}

.tool-card:hover {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.15), rgba(34, 197, 94, 0.08));
    border-color: #4ade80;
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(74, 222, 128, 0.2);
}

.tool-card:hover::before {
    transform: scaleX(1);
}

.tool-card i {
    font-size: 3rem;
    color: #4ade80;
    margin-bottom: 1.5rem;
    display: block;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.tool-card:hover i {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(74, 222, 128, 0.3));
}

.tool-card h4 {
    margin: 0 0 1rem;
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.tool-card:hover h4 {
    color: #4ade80;
}

.tool-card p {
    margin: 0 0 2rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
    transition: all 0.3s ease;
}

.tool-card:hover p {
    color: rgba(255, 255, 255, 0.95);
}

/* Tables */
.comparison-table {
    overflow-x: auto;
    margin: 2rem 0;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-table th {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
    font-weight: 600;
}

.comparison-table td {
    color: rgba(255, 255, 255, 0.8);
}

/* Process Lists */
.process-list,
.setup-steps {
    counter-reset: process-counter;
    list-style: none;
    padding: 0;
}

.process-list li,
.setup-steps li {
    counter-increment: process-counter;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 4rem;
}

.process-list li::before,
.setup-steps li::before {
    content: counter(process-counter);
    position: absolute;
    left: 1.5rem;
    top: 1.5rem;
    background: var(--primary-color);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.process-list li strong,
.setup-steps li strong {
    color: white;
    display: block;
    margin-bottom: 0.5rem;
}

/* Summary Section */
.summary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 3rem;
}

.key-takeaways,
.next-steps {
    margin: 2rem 0;
}

.key-takeaways h3,
.next-steps h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Knowledge Check Section */
.knowledge-check {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1.25rem;
    padding: 2rem;
    text-align: center;
    margin: 2.5rem 0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.knowledge-check::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4ade80, #22c55e);
    border-radius: 1.25rem 1.25rem 0 0;
}

.knowledge-check:hover {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.15), rgba(34, 197, 94, 0.08));
    border-color: #4ade80;
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(74, 222, 128, 0.2);
}

.check-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.check-icon {
    font-size: 3rem;
    color: #4ade80;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.knowledge-check:hover .check-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(74, 222, 128, 0.3));
}

.knowledge-check h2 {
    color: white;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    transition: all 0.3s ease;
}

.knowledge-check:hover h2 {
    color: #4ade80;
}

.knowledge-check p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.knowledge-check:hover p {
    color: rgba(255, 255, 255, 0.95);
}

.check-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.stat {
    text-align: center;
    transition: all 0.3s ease;
}

.stat strong {
    display: block;
    color: #4ade80;
    font-size: 1.25rem;
    font-weight: 700;
}

.stat span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.knowledge-check-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: white;
    padding: 1rem 2rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    margin: 1rem 0;
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.3);
}

.knowledge-check-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 222, 128, 0.4);
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.disclaimer {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    margin-top: 1rem;
}

/* Progress Bar */
.progress-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 3rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Chapter Progress */
.chapter-progress {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.chapter-progress-fill {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Completion Message */
.completion-message {
    text-align: center;
    margin: 4rem 0;
}

.completion-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1.25rem;
    padding: 3rem;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.completion-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4ade80, #22c55e);
    border-radius: 1.25rem 1.25rem 0 0;
}

.completion-content i {
    font-size: 4rem;
    color: #4ade80;
    margin-bottom: 1.5rem;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.completion-content h3 {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 1rem;
}

.completion-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .toc-content .toc-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .notes-content {
        max-width: 90%;
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    .notes-nav {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .nav-actions {
        align-self: flex-end;
    }
    
    .notes-header h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .reading-time {
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
    }
    
    .table-of-contents {
        padding: 1.5rem;
        margin: 0 -1rem 2rem;
    }
    
    .toc-content .toc-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .toc-content .toc-list a {
        min-height: 100px;
        padding: 1.5rem 1rem;
        flex-direction: row;
        text-align: left;
        justify-content: flex-start;
        gap: 1rem;
    }
    
    .toc-content .toc-list a::after {
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .toc-content .toc-list a .toc-text {
        font-size: 1rem;
        margin: 0;
    }
    
    .chapter {
        margin-bottom: 3rem;
    }
    
    .chapter h2 {
        font-size: 1.5rem;
    }
    
    .chapter h3 {
        font-size: 1.25rem;
    }
    
    .chapter h4 {
        font-size: 1.125rem;
    }
    
    .info-grid,
    .intent-grid,
    .content-types,
    .link-types,
    .metrics-grid,
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .info-card,
    .intent-card,
    .content-type,
    .link-type,
    .metric-card,
    .tool-card {
        padding: 1.25rem;
    }
    
    .tool-card {
        min-height: 200px;
    }
    
    .check-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .knowledge-check {
        padding: 1.5rem 1rem;
        margin: 2rem -1rem;
    }
    
    .summary {
        padding: 2rem 1.5rem;
        margin: 0 -1rem;
    }
    
    .process-list li,
    .setup-steps li {
        padding: 1.25rem;
        padding-left: 3.5rem;
    }
    
    .process-list li::before,
    .setup-steps li::before {
        left: 1rem;
        width: 28px;
        height: 28px;
        font-size: 0.875rem;
    }
    
    .highlight-box,
    .warning-box,
    .tool-highlight,
    .best-practices,
    .example-box {
        padding: 1.25rem;
        margin: 1.5rem -1rem;
    }
    
    .comparison-table {
        margin: 1.5rem -1rem;
    }
    
    .comparison-table table {
        font-size: 0.875rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .nav-actions {
        gap: 0.5rem;
        align-self: stretch;
        justify-content: flex-end;
    }
    
    .bookmark-btn,
    .share-btn {
        padding: 0.375rem;
        font-size: 0.875rem;
    }
    
    .download-section {
        margin: 2rem -0.5rem;
        padding: 1rem;
    }
    
    .download-notes-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
        width: 100%;
        justify-content: center;
    }
    
    .download-description {
        font-size: 0.8rem;
    }
    
    .notes-header {
        padding: 1rem 0;
        margin-bottom: 2rem;
    }
    
    .notes-header h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .subtitle {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .reading-time {
        font-size: 0.8rem;
    }
    
    .table-of-contents {
        margin: 0 -0.5rem 2rem;
        border-radius: 0;
    }
    
    .toc-header h2 {
        font-size: 1.25rem;
    }
    
    .toc-content .toc-list a {
        padding: 1rem;
        min-height: 80px;
    }
    
    .toc-content .toc-list a::after {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .toc-content .toc-list a .toc-text {
        font-size: 0.9rem;
    }
    
    .chapter {
        margin-bottom: 2.5rem;
        scroll-margin-top: 1rem;
    }
    
    .chapter h2 {
        font-size: 1.375rem;
        padding-bottom: 0.375rem;
    }
    
    .chapter h3 {
        font-size: 1.125rem;
        margin: 1.5rem 0 0.75rem;
    }
    
    .chapter h4 {
        font-size: 1rem;
        margin: 1.25rem 0 0.5rem;
    }
    
    .chapter p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .chapter ul,
    .chapter ol {
        padding-left: 1.25rem;
    }
    
    .chapter li {
        margin-bottom: 0.375rem;
        font-size: 0.95rem;
    }
    
    .highlight-box,
    .warning-box,
    .tool-highlight,
    .best-practices,
    .example-box {
        padding: 1rem;
        margin: 1.25rem -0.5rem;
        border-radius: 0.75rem;
    }
    
    .highlight-box h4,
    .warning-box h4,
    .tool-highlight h4,
    .best-practices h4,
    .example-box h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .good-example,
    .bad-example {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
    
    .tool-link,
    .tool-button {
        padding: 0.625rem 1.25rem;
        font-size: 0.8rem;
        margin: 0.25rem 0.25rem 0.25rem 0;
    }
    
    .tool-links {
        gap: 0.375rem;
    }
    
    .info-card,
    .intent-card,
    .content-type,
    .link-type,
    .metric-card {
        padding: 1rem;
    }
    
    .tool-card {
        padding: 1.5rem 1rem;
        min-height: 180px;
    }
    
    .tool-card i {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .tool-card h4 {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }
    
    .tool-card p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .comparison-table {
        margin: 1.25rem -0.5rem;
    }
    
    .comparison-table table {
        font-size: 0.8rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem 0.375rem;
    }
    
    .process-list li,
    .setup-steps li {
        padding: 1rem 0.75rem;
        padding-left: 3rem;
        margin-bottom: 0.75rem;
    }
    
    .process-list li::before,
    .setup-steps li::before {
        left: 0.75rem;
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }
    
    .summary {
        padding: 1.5rem 1rem;
        margin: 0 -0.5rem;
    }
    
    .key-takeaways,
    .next-steps {
        margin: 1.5rem 0;
    }
    
    .key-takeaways h3,
    .next-steps h3 {
        font-size: 1.25rem;
    }
    
    .knowledge-check {
        padding: 1.25rem 0.875rem;
        margin: 2rem -0.5rem;
    }
    
    .check-container {
        max-width: 100%;
    }
    
    .check-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .knowledge-check h2 {
        font-size: 1.25rem;
    }
    
    .knowledge-check p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .check-stats {
        gap: 0.75rem;
    }
    
    .stat strong {
        font-size: 1rem;
    }
    
    .stat span {
        font-size: 0.8rem;
    }
    
    .knowledge-check-btn {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
        width: 100%;
        justify-content: center;
    }
    
    .disclaimer {
        font-size: 0.8rem;
    }
    
    .completion-content {
        padding: 2rem 1rem;
        margin: 0 -0.5rem;
    }
    
    .completion-content i {
        font-size: 3rem;
    }
    
    .completion-content h3 {
        font-size: 1.5rem;
    }
    
    .completion-content p {
        font-size: 1rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .tool-link,
    .tool-button,
    .knowledge-check-btn,
    .download-notes-btn {
        min-height: 44px;
        padding: 0.75rem 1rem;
    }
    
    .bookmark-btn,
    .share-btn {
        min-width: 44px;
        min-height: 44px;
    }
    
    .toc-content .toc-list a {
        min-height: 44px;
        padding: 1rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .highlight-box,
    .warning-box,
    .tool-highlight,
    .best-practices,
    .example-box {
        border-width: 3px;
    }
    
    .tool-card,
    .knowledge-check,
    .completion-content {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}