/* Article Archive Styles */
.sp-article-archive {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 20px;
}

.sp-archive-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e5e7eb;
}

.sp-archive-header h1 {
    font-size: 3rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 15px;
}

.sp-archive-description {
    font-size: 1.2rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* Tag Cloud Filter Section */
.sp-filter-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 20px;
    padding: 35px;
    margin-bottom: 50px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.sp-tag-cloud-container {
    max-width: 100%;
}

.sp-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 20px;
}

/* Loading Spinner */
.sp-filter-loading {
    text-align: center;
    padding: 40px;
}

.sp-loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.sp-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e5e7eb;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tag Cloud Styles */
.sp-tag-cloud {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sp-tag-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sp-tag-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    margin: 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}

.sp-tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.sp-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    color: #374151;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sp-tag:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.sp-tag.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.sp-tag-count {
    background: rgba(0, 0, 0, 0.1);
    color: inherit;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.sp-tag.active .sp-tag-count {
    background: rgba(255, 255, 255, 0.2);
}

/* Special section styling */
.sp-tag-section-small .sp-tag {
    font-size: 0.9rem;
    padding: 6px 12px;
}

.sp-tag-section-small .sp-tag-count {
    font-size: 0.75rem;
    padding: 1px 6px;
}

/* Active Filters Display */
.sp-active-filters {
    margin-top: 20px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.sp-active-filters-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sp-filters-label {
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.sp-filter-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sp-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #3b82f6;
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 500;
}

.sp-filter-tag-remove {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.sp-filter-tag-remove:hover {
    background: rgba(255, 255, 255, 0.2);
}

.sp-clear-all-filters {
    background: #ef4444;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.sp-clear-all-filters:hover {
    background: #dc2626;
}

/* Search Box Styles */
.sp-search-box {
    display: flex;
    max-width: 350px;
    position: relative;
}

.sp-search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 25px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.sp-search-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.sp-search-button {
    background: #3b82f6;
    color: white;
    border: 2px solid #3b82f6;
    border-left: none;
    border-radius: 25px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-search-button:hover {
    background: #2563eb;
    border-color: #2563eb;
}

/* Articles Results Section */
.sp-articles-results-section {
    margin-top: 40px;
}

.sp-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.sp-results-title {
    font-size: 2rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.sp-results-count {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 500;
}

.sp-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.sp-article-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    height: fit-content;
}

.sp-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.sp-article-card.featured {
    border: 2px solid #f59e0b;
    background: linear-gradient(135deg, #fef3c7 0%, #ffffff 100%);
}

.sp-featured-badge {
    background: #f59e0b;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    display: inline-block;
}

.sp-article-content {
    padding: 25px;
}

.sp-article-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.sp-article-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.sp-article-excerpt {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.sp-article-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-top: auto;
}

.sp-article-date {
    color: #9ca3af;
    font-size: 0.9rem;
    font-weight: 500;
}

.sp-article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.sp-article-tag {
    background: #f3f4f6;
    color: #374151;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.sp-article-tag.type-tag {
    background: #dbeafe;
    color: #1e40af;
}

.sp-article-tag.category-tag {
    background: #f0fdf4;
    color: #166534;
}

.sp-article-tag.difficulty-tag {
    background: #fef3c7;
    color: #92400e;
}

.sp-article-tag.archetype-tag {
    background: #f3e8ff;
    color: #7c3aed;
}

.sp-article-tag.reading-time {
    background: #e5e7eb;
    color: #6b7280;
}

/* Load More Button */
.sp-load-more-container {
    text-align: center;
    margin-top: 40px;
}

.sp-load-more {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.sp-load-more:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

/* No Results */
.sp-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.sp-no-results h3 {
    font-size: 1.5rem;
    color: #374151;
    margin-bottom: 10px;
}

/* Loading Overlay */
.sp-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sp-article-archive {
        padding: 20px 15px;
    }

    .sp-filter-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .sp-search-box {
        max-width: 100%;
    }

    .sp-articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sp-results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .sp-tag-group {
        justify-content: center;
    }

    .sp-article-meta {
        flex-direction: column;
        gap: 10px;
    }
}

.sp-filter-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.sp-search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 0;
    min-width: 300px;
    transition: border-color 0.2s ease;
}

.sp-search-box:focus-within {
    border-color: #b60f0a;
}

.sp-search-input {
    border: none;
    padding: 12px 16px;
    font-size: 1rem;
    background: transparent;
    flex: 1;
    outline: none;
}

.sp-search-button {
    background: #b60f0a;
    color: white;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.sp-search-button:hover {
    background: #a30e09;
}

.sp-filter-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.sp-filter-tab {
    padding: 12px 24px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    transition: all 0.2s ease;
}

.sp-filter-tab:hover,
.sp-filter-tab.active {
    background: #b60f0a;
    color: white;
    border-color: #b60f0a;
    text-decoration: none;
}

.sp-clear-filters {
    padding: 8px 16px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    text-decoration: none;
    color: #6b7280;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.sp-clear-filters:hover {
    background: #e5e7eb;
    color: #374151;
    text-decoration: none;
}

.sp-archetype-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto;
}

.sp-archetype-option {
    padding: 15px 20px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    color: #374151;
    text-align: center;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.sp-archetype-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #b60f0a;
    text-decoration: none;
    color: #b60f0a;
}

.sp-archetype-option.active {
    background: #b60f0a;
    color: white;
    border-color: #b60f0a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(182, 15, 10, 0.2);
}

.sp-archetype-count {
    display: block;
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 5px;
}

/* Section Navigation Tabs */
.sp-section-nav {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 40px;
    padding: 8px;
    background: #f8fafc;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.sp-section-tab {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 0.95rem;
}

.sp-section-tab:hover,
.sp-section-tab.active {
    background: #fff;
    color: #b60f0a;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sp-section-tab.active {
    font-weight: 600;
}

/* Article Type Sections */
.sp-article-type-section {
    margin-bottom: 60px;
    display: none;
}

.sp-article-type-section.active {
    display: block;
}

.sp-article-type-header {
    text-align: center;
    margin-bottom: 40px;
}

.sp-article-type-header h2 {
    font-size: 2.2rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 15px;
}

.sp-article-type-description {
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Foundational Guides Section */
.sp-foundational-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 50px;
    border: 2px solid #e5e7eb;
}

.sp-foundational-header {
    text-align: center;
    margin-bottom: 35px;
}

.sp-foundational-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 15px;
    position: relative;
}

.sp-foundational-header h2::after {
    content: '';
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #b60f0a, #dc2626);
    display: block;
    margin: 15px auto 0;
    border-radius: 2px;
}

.sp-foundational-description {
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.sp-foundational-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
}

.sp-foundational-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    border: 2px solid transparent;
}

.sp-foundational-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(182, 15, 10, 0.15);
    text-decoration: none;
    color: inherit;
    border-color: #b60f0a;
}

.sp-foundational-content {
    padding: 30px;
}

.sp-foundational-badge {
    display: inline-block;
    background: linear-gradient(135deg, #b60f0a, #dc2626);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.sp-foundational-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
    line-height: 1.3;
}

.sp-foundational-excerpt {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.sp-foundational-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #9ca3af;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
}

.sp-archetype-count-badge {
    background: #fef3e2;
    color: #b45309;
    padding: 6px 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.8rem;
}

/* General Psychology Section */
.sp-general-psychology-section {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 50px;
    border: 2px solid #bbf7d0;
}

.sp-general-psychology-header {
    text-align: center;
    margin-bottom: 35px;
}

.sp-general-psychology-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 15px;
    position: relative;
}

.sp-general-psychology-header h2::after {
    content: '';
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #059669, #10b981);
    display: block;
    margin: 15px auto 0;
    border-radius: 2px;
}

.sp-general-psychology-description {
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.sp-general-psychology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
}

.sp-general-psychology-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    border: 2px solid transparent;
}

.sp-general-psychology-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(5, 150, 105, 0.15);
    text-decoration: none;
    color: inherit;
    border-color: #059669;
}

.sp-general-psychology-content {
    padding: 30px;
}

.sp-general-psychology-badge {
    display: inline-block;
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.sp-general-psychology-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
    line-height: 1.3;
}

.sp-general-psychology-excerpt {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.sp-general-psychology-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #9ca3af;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
}

/* Articles Grid */
.sp-articles-section {
    margin-top: 60px;
}

.sp-articles-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.sp-articles-section-header h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 10px;
}

.sp-articles-section-description {
    font-size: 1rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

.sp-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.sp-article-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.sp-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
}

.sp-article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f3f4f6;
}

.sp-article-content {
    padding: 25px;
}

.sp-article-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 10px;
    line-height: 1.3;
}

.sp-article-excerpt {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.sp-article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #9ca3af;
    padding-top: 15px;
    border-top: 1px solid #f3f4f6;
}

.sp-article-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sp-article-tag {
    background: #f0f4ff;
    color: #3b82f6;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.sp-article-tag.archetype-tag {
    background: #fef3e2;
    color: #b45309;
}

.sp-article-tag.comprehensive-tag {
    background: linear-gradient(135deg, #fef3f3, #fee);
    color: #b60f0a;
    font-weight: 600;
    border: 1px solid #fdc2c4;
}

.sp-article-tag.reading-time {
    background: #f0fdf4;
    color: #166534;
}

/* Loading states */
.sp-loading {
    opacity: 0.6;
    pointer-events: none;
}

.sp-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #b60f0a;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* No results state */
.sp-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.sp-no-results h3 {
    font-size: 1.5rem;
    color: #374151;
    margin-bottom: 15px;
}

.sp-no-results p {
    font-size: 1rem;
    margin-bottom: 25px;
}

/* Pagination */
.sp-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
}

.sp-pagination a,
.sp-pagination .current {
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    text-decoration: none;
    color: #374151;
    font-weight: 500;
}

.sp-pagination a:hover,
.sp-pagination .current {
    background: #b60f0a;
    color: white;
    border-color: #b60f0a;
    text-decoration: none;
}

/* Tag Cloud Styles */
.sp-tag-cloud {
    margin-top: 30px;
}

.sp-tag-section {
    margin-bottom: 25px;
}

.sp-tag-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sp-tag-section-small .sp-tag-section-title {
    font-size: 0.9rem;
    color: #6b7280;
}

.sp-tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.sp-tag {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 25px;
    padding: 8px 16px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sp-tag:hover {
    background: #b60f0a;
    color: white;
    border-color: #b60f0a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(182, 15, 10, 0.3);
}

.sp-tag.active {
    background: #b60f0a;
    color: white;
    border-color: #b60f0a;
    box-shadow: 0 4px 12px rgba(182, 15, 10, 0.3);
}

.sp-tag-count {
    background: rgba(0, 0, 0, 0.1);
    color: currentColor;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.sp-tag.active .sp-tag-count,
.sp-tag:hover .sp-tag-count {
    background: rgba(255, 255, 255, 0.2);
}

/* Active Filters */
.sp-active-filters {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.sp-active-filters-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.sp-filters-label {
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.sp-filter-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sp-filter-tag {
    background: #fef3e2;
    color: #b45309;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sp-filter-tag-remove {
    background: none;
    border: none;
    color: currentColor;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.sp-filter-tag-remove:hover {
    background: rgba(0, 0, 0, 0.1);
}

.sp-clear-all-filters {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #6b7280;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.sp-clear-all-filters:hover {
    background: #e5e7eb;
    color: #374151;
}

/* Results Section */
.sp-articles-results-section {
    margin-top: 40px;
}

.sp-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.sp-results-title {
    font-size: 2rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.sp-results-count {
    color: #6b7280;
    font-size: 1rem;
    font-weight: 500;
}

.sp-articles-results {
    position: relative;
}

/* Loading States */
.sp-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    border-radius: 16px;
    z-index: 10;
}

.sp-loading-spinner {
    text-align: center;
}

.sp-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f4f6;
    border-top: 3px solid #b60f0a;
    border-radius: 50%;
    margin: 0 auto 15px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.sp-loading-spinner p {
    color: #6b7280;
    font-weight: 500;
    margin: 0;
}

/* Load More Button */
.sp-load-more-container {
    text-align: center;
    margin-top: 40px;
}

.sp-load-more {
    background: #b60f0a;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(182, 15, 10, 0.2);
}

.sp-load-more:hover {
    background: #a30e09;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(182, 15, 10, 0.3);
}

/* Enhanced Article Cards */
.sp-article-card.featured {
    position: relative;
    border: 2px solid #fbbf24;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
}

.sp-featured-badge {
    position: absolute;
    top: -8px;
    left: 20px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

/* Enhanced Article Tags */
.sp-article-tag.type-tag {
    background: #dbeafe;
    color: #1d4ed8;
}

.sp-article-tag.category-tag {
    background: #f3e8ff;
    color: #7c3aed;
}

.sp-article-tag.difficulty-tag {
    background: #ecfdf5;
    color: #059669;
}

.sp-article-tag.archetype-tag {
    background: #fef3e2;
    color: #b45309;
}

/* No Results */
.sp-no-results {
    text-align: center;
    padding: 80px 20px;
    color: #6b7280;
}

.sp-no-results h3 {
    font-size: 1.5rem;
    color: #374151;
    margin-bottom: 15px;
}

.sp-no-results p {
    font-size: 1rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .sp-archive-header h1 {
        font-size: 2.2rem;
    }

    .sp-filter-section {
        padding: 25px;
        margin-bottom: 35px;
    }

    .sp-tag-group {
        gap: 6px;
    }

    .sp-tag {
        padding: 6px 12px;
        font-size: 0.9rem;
    }

    .sp-filter-header {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .sp-search-box {
        min-width: auto;
        width: 100%;
    }

    .sp-results-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .sp-active-filters-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .sp-foundational-section {
        padding: 25px;
        margin-bottom: 35px;
    }

    .sp-foundational-header h2 {
        font-size: 1.8rem;
    }

    .sp-foundational-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sp-foundational-card {
        min-width: auto;
    }

    .sp-foundational-content {
        padding: 20px;
    }

    .sp-general-psychology-section {
        padding: 25px;
        margin-bottom: 35px;
    }

    .sp-general-psychology-header h2 {
        font-size: 1.8rem;
    }

    .sp-general-psychology-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sp-general-psychology-card {
        min-width: auto;
    }

    .sp-general-psychology-content {
        padding: 20px;
    }

    .sp-filter-header {
        flex-direction: column;
        align-items: stretch;
    }

    .sp-search-box {
        min-width: auto;
        width: 100%;
    }

    .sp-filter-controls {
        flex-direction: column;
        align-items: center;
    }

    .sp-articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sp-archetype-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .sp-section-nav {
        flex-wrap: wrap;
        gap: 8px;
    }

    .sp-section-tab {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}