/* Resources Page Styles */

.resources-hero {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: white;
    padding: 120px 0 60px;
    margin-top: 80px;
    text-align: center;
}

.resources-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.resources-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    color: #e2e8f0;
}

/* Search and Filter Controls */
.resources-controls {
    background: white;
    padding: 40px 0;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 80px;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-bar {
    display: flex;
    max-width: 600px;
    margin: 0 auto 30px;
    position: relative;
}

.search-bar input {
    flex: 1;
    padding: 14px 50px 14px 20px;
    font-size: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

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

.search-bar button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.search-bar button:hover {
    color: var(--primary-color);
}

.filter-controls {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-group select {
    padding: 10px 16px;
    font-size: 0.95rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
    min-width: 180px;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-clear {
    padding: 10px 20px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-clear:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

/* Active Filters */
.active-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    min-height: 30px;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.filter-tag button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    line-height: 1;
}

.filter-tag button:hover {
    opacity: 0.8;
}

/* Results Count */
.results-count {
    text-align: center;
    font-size: 0.95rem;
    color: #6c757d;
    margin-top: 15px;
    font-weight: 500;
}

/* Resources Grid */
.resources-listing {
    padding: 60px 0;
    background: #f7fafc;
    min-height: 500px;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.resource-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(45, 55, 72, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(45, 55, 72, 0.12);
    border-color: #cbd5e0;
}

.resource-card-header {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.content-type-badge {
display: inline-block;
padding: 6px 14px;
border-radius: 16px;
font-size: 0.75rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
}

.content-type-customer-success {
background: #d4edda;
color: #155724;
border: 1px solid #c3e6cb;
}

.content-type-opinion {
background: #e7e3fc;
color: #5a32a3;
border: 1px solid #d4cbf5;
}

.content-type-recommendation {
background: #fff3cd;
color: #856404;
border: 1px solid #ffeaa7;
}

.content-type-industry-insight {
background: #d1ecf1;
color: #0c5460;
border: 1px solid #bee5eb;
}

.content-type-how-to {
background: #e2d9f3;
color: #4a2c7b;
border: 1px solid #d4c5e8;
}

.content-type-framework {
background: #f8d7da;
color: #721c24;
border: 1px solid #f5c6cb;
}

.industry-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #edf2f7;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}

.resource-card h2 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.3;
    color: #2d3748;
    font-weight: 700;
}

.resource-card h2 a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.3s ease;
}

.resource-card h2 a:hover {
    color: var(--primary-color);
}

.resource-preview {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #718096;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.resource-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.resource-tag {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: #f7fafc;
    color: #4a5568;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    font-weight: 500;
}

.resource-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.resource-meta {
    font-size: 0.85rem;
    color: #6c757d;
}

.read-more-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.read-more-link:hover {
    gap: 10px;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 80px 20px;
}

.no-results h3 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 15px;
}

.no-results p {
    font-size: 1.1rem;
    color: #6c757d;
}

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

.pagination button {
    padding: 10px 16px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination button:hover:not(:disabled) {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination button.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination .page-info {
    font-size: 0.95rem;
    color: #6c757d;
    padding: 0 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .resources-hero {
        padding: 100px 0 40px;
    }

    .resources-hero h1 {
        font-size: 2rem;
    }

    .resources-hero p {
        font-size: 1rem;
    }

    .resources-controls {
        position: relative;
        top: 0;
    }

    .search-bar {
        margin-bottom: 20px;
    }

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

    .filter-group {
        width: 100%;
    }

    .filter-group select {
        width: 100%;
        min-width: auto;
    }

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

    .resource-card {
        padding: 20px;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 8px;
    }

    .pagination button {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}
