/* /resources/css/res-styles.css - Resources module styles */

/* Hero Section */
.res-hero {
    background-color: var(--color-background-light);
    padding: var(--space-2xl) 0 var(--space-xl);
    text-align: center;
}

.res-hero .container {
    max-width: 800px;
}

.res-title {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    margin-bottom: var(--space-md);
}

.res-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
}

/* Content Section */
.res-content {
    padding: var(--space-xl) 0;
}

.res-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-2xl);
}

.res-main {
    max-width: 900px;
}

/* Search Box */
.res-search {
    background-color: #fff;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.res-search h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

.res-search-input {
    width: 100%;
    padding: var(--space-md);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.res-search-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.res-results-count {
    margin-top: var(--space-sm);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Category Sections */
.res-category {
    margin-bottom: var(--space-2xl);
}

.res-category-title {
    font-size: 1.75rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-border);
}

/* Resource Grid */
.res-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(520px, 1fr));
    gap: var(--space-lg);
}

/* Resource Card */
.res-card {
    background-color: #fff;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.res-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.res-card__header {
    margin-bottom: var(--space-md);
}

.res-card__meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    flex-wrap: wrap;
}

/* Difficulty Badges */
.res-difficulty {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.res-difficulty--beginner {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.res-difficulty--intermediate {
    background-color: #fff3e0;
    color: #ef6c00;
}

.res-difficulty--advanced {
    background-color: #ffebee;
    color: #c62828;
}

.res-time {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.res-card__title {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    margin: 0;
    line-height: 1.3;
}

.res-card__title a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s;
}

.res-card__title a:hover {
    color: var(--color-primary);
}

.res-card__excerpt {
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: var(--space-md);
    flex-grow: 1;
}

.res-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    transition: gap 0.2s;
}

.res-card__link:hover {
    gap: 0.75rem;
}

/* Empty State */
.res-empty-state {
    text-align: center;
    padding: var(--space-2xl);
    background-color: #fff;
    border-radius: var(--radius-lg);
}

.res-empty-state svg {
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.res-empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.res-empty-state p {
    color: var(--color-text-muted);
}

/* Sidebar */
.res-sidebar {
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.res-sidebar-cta {
    background-color: var(--color-primary);
    color: #fff;
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    text-align: center;
}

.res-sidebar-cta--alt {
    background-color: var(--color-background);
    color: var(--color-text);
    border: 2px solid var(--color-border);
}

.res-sidebar-cta h3 {
    margin-bottom: var(--space-sm);
    font-size: 1.25rem;
}

.res-sidebar-cta p {
    margin-bottom: var(--space-md);
    opacity: 0.9;
}

.res-sidebar-cta--alt p {
    opacity: 1;
    color: var(--color-text-muted);
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .res-row {
        grid-template-columns: 1fr;
    }

    .res-sidebar {
        width: 100%;
    }

    .res-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .res-title {
        font-size: 2rem;
    }

    .res-category-title {
        font-size: 1.5rem;
    }

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

    .res-card {
        padding: var(--space-md);
    }

    .res-card__title {
        font-size: 1.125rem;
    }
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .res-hero {
        background-color: var(--color-background);
    }

    .res-search,
    .res-card,
    .res-empty-state {
        background-color: var(--color-background);
        border: 1px solid var(--color-border);
    }
}
