/* General Page Layout */
.category-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Page Header */
.page-hero {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2.5rem 1.5rem;
    background-color: #f9fafb;
    border: 1px solid #f3f4f6;
    border-radius: 12px;
}
.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}
.page-subtitle {
    font-size: 1.1rem;
    color: #4b5563;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Section Titles */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #2563eb;
    border-radius: 2px;
}

/* Tutorials Grid */
.tutorials-showcase {
    margin-bottom: 3rem;
}
.tutorials-fixed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.tutorial-fixed-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}
.tutorial-fixed-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}
.tutorial-card-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.tutorial-fixed-image {
    height: 140px;
    overflow: hidden;
}
.tutorial-fixed-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.tutorial-fixed-card:hover .tutorial-fixed-image img {
    transform: scale(1.03);
}
.tutorial-fixed-content {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.tutorial-fixed-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.4rem 0;
    line-height: 1.3;
}
.tutorial-fixed-card:hover .tutorial-fixed-content h3 {
    color: #2563eb;
}
.tutorial-fixed-description {
    font-size: 0.85rem;
    color: #4b5563;
    line-height: 1.5;
    flex-grow: 1;
    margin: 0 0 1rem 0;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    display: -webkit-box;
}
.tutorial-tags {
    margin-top: auto;
}
.tutorial-category, .tutorial-difficulty {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    margin-right: 0.4rem;
    margin-top: 0.25rem;
}
.tutorial-category { background-color: #e0f2fe; color: #0c4a6e; }
.tutorial-difficulty.difficulty-beginner { background-color: #dcfce7; color: #166534; }
.tutorial-difficulty.difficulty-intermediate { background-color: #ffedd5; color: #9a3412; }
.tutorial-difficulty.difficulty-advanced { background-color: #fee2e2; color: #991b1b; }

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}
.category-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}
.category-card-image {
    height: 130px;
    overflow: hidden;
    position: relative;
}
.category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.category-card-icon {
    position: absolute;
    top: 1rem;
    right: 0.5rem;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.category-card-icon i {
    font-size: 18px;
    color: #2563eb;
}
.category-card-body {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.category-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.75rem;
}
.category-card-description {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}
.category-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
}
.category-card-count {
    font-size: 0.85rem;
    font-weight: 500;
    color: #4b5563;
}
.category-card-link {
    background-color: #2563eb;
    color: white;
    font-weight: 500;
    font-size: 0.85rem;
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}
.category-card-link:hover {
    background-color: #1d4ed8;
}
.category-card-link i {
    margin-left: 0.4rem;
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}
.category-card-link:hover i {
    transform: translateX(3px);
}

/* Dark Mode */
[data-theme="dark"] body {
    background-color: #030712;
}
[data-theme="dark"] .category-container {
    background-color: #030712;
}
[data-theme="dark"] .page-hero {
    background-color: #111827;
    border-color: #1f2937;
}
[data-theme="dark"] .page-title,
[data-theme="dark"] .section-title,
[data-theme="dark"] .tutorial-fixed-content h3,
[data-theme="dark"] .category-card-title {
    color: #f9fafb;
}
[data-theme="dark"] .tutorial-fixed-card:hover .tutorial-fixed-content h3 {
    color: #60a5fa;
}
[data-theme="dark"] .page-subtitle,
[data-theme="dark"] .tutorial-fixed-description,
[data-theme="dark"] .category-card-description,
[data-theme="dark"] .category-card-count {
    color: #9ca3af;
}
[data-theme="dark"] .tutorial-fixed-card,
[data-theme="dark"] .category-card {
    background-color: #2b374a;
    box-shadow: none;
    border: 1px solid #374151;
}
[data-theme="dark"] .tutorial-fixed-card:hover,
[data-theme="dark"] .category-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}
[data-theme="dark"] .category-card-footer {
    border-top-color: #374151;
}
[data-theme="dark"] .tutorial-category { background-color: #1e40af; color: #bfdbfe; }
[data-theme="dark"] .tutorial-difficulty.difficulty-beginner { background-color: #14532d; color: #a7f3d0; }
[data-theme="dark"] .tutorial-difficulty.difficulty-intermediate { background-color: #7c2d12; color: #fed7aa; }
[data-theme="dark"] .tutorial-difficulty.difficulty-advanced { background-color: #7f1d1d; color: #fecaca; }
[data-theme="dark"] .category-card-link { background-color: #3b82f6; }
[data-theme="dark"] .category-card-link:hover { background-color: #60a5fa; }
[data-theme="dark"] .section-title::after { background-color: #3b82f6; }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .category-container { padding: 2rem 1rem; }
    .page-title { font-size: 2rem; }
    .page-subtitle { font-size: 1rem; }
    .section-title { font-size: 1.75rem; }
    .tutorials-fixed-grid, .category-grid { grid-template-columns: 1fr; }
} 