/**
 * Public styles for Bitcoin Education Directory
 */

/* General Styles */
.bed-entries-container {
    width: 100%;
}

/* Filter Form Styles */
.bed-filter-container {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.bed-filter-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bed-search-field {
    position: relative;
}

.bed-search-field input[type="text"] {
    box-sizing: border-box;
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.bed-search-button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #555;
    padding: 0;
}

.bed-filters {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.bed-filter-group h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
}

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

.bed-filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.bed-filter-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.bed-filter-button,
.bed-reset-button,
.bed-button {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.bed-filter-button,
.bed-button {
    background-color: #e67e22;
    color: white;
    border: none;
}

.bed-filter-button:hover,
.bed-button:hover {
    background-color: #323436;
    color: white;
}

.bed-reset-button {
    background-color: transparent;
    color: #555;
    border: 1px solid #ddd;
}

.bed-reset-button:hover {
    background-color: #f5f5f5;
}

/* Entry Grid Styles */
.bed-entries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Entry Card Styles */
.bed-entry-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
}

.bed-entry-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.bed-entry-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.bed-entry-image {
    position: relative;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.bed-entry-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bed-entry-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.bed-entry-header {
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.bed-entry-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    line-height: 1.3;
}

.bed-entry-title a {
    color: #333;
    text-decoration: none;
}

.bed-entry-title a:hover {
    color: #e67e22;
}

.bed-entry-difficulty {
    margin-left: 10px;
    flex-shrink: 0;
}

.bed-difficulty-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.bed-difficulty-beginner {
    background-color: #e7f5e7;
    color: #2e7d32;
}

.bed-difficulty-intermediate {
    background-color: #fff8e1;
    color: #ff8f00;
}

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

.bed-entry-excerpt {
    margin-bottom: 15px;
    font-size: 14px;
    color: #555;
    flex-grow: 1;
}

.bed-entry-meta {
    margin-bottom: 15px;
    font-size: 13px;
    color: #666;
}

.bed-entry-meta > div {
    margin-bottom: 5px;
}

.bed-meta-label {
    font-weight: 600;
    margin-right: 5px;
}

.bed-meta-value a {
    color: #e67e22;
    text-decoration: none;
}

.bed-meta-value a:hover {
    text-decoration: underline;
}

.bed-entry-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.bed-entry-link {
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.bed-view-details {
    background-color: #f5f5f5;
    color: #333;
}

.bed-view-details:hover {
    background-color: #323436;
    color: white;
}

.bed-external-link {
    background-color: #e67e22;
    color: white;
}

.bed-external-link:hover {
    background-color: #323436;
    color: white;
}

/* Pagination Styles */
.bed-pagination {
    margin-top: 30px;
    text-align: center;
}

.bed-pagination .page-numbers {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 3px;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-decoration: none;
    color: #333;
}

.bed-pagination .page-numbers.current {
    background-color: #e67e22;
    color: white;
    border-color: #e67e22;
}

.bed-pagination .page-numbers:hover:not(.current) {
    background-color: #f5f5f5;
}

/* Single Entry Styles */
.bed-single-entry {
    max-width: 800px;
    margin: 0 auto;
}

.bed-single-entry .entry-header {
    margin-bottom: 30px;
}

.bed-single-entry .entry-title {
    margin-bottom: 15px;
}

.bed-single-entry .bed-entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.bed-single-entry .bed-entry-image {
    margin-bottom: 30px;
    padding-top: 0;
    height: auto;
}

.bed-single-entry .bed-entry-image img {
    position: static;
    width: 100%;
    height: auto;
}

.bed-single-entry .entry-content {
    margin-bottom: 30px;
}

.bed-external-resource {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 30px;
}

.bed-external-resource h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.bed-entry-navigation {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.bed-prev-next-links {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.bed-prev-link,
.bed-next-link {
    max-width: 45%;
}

.bed-nav-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 5px;
}

.bed-nav-title {
    font-weight: 600;
}

.bed-back-to-directory {
    text-align: center;
    margin: 20px 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .bed-filters {
        grid-template-columns: 1fr;
    }

    .bed-entries-grid {
        grid-template-columns: 1fr;
    }

    .bed-prev-next-links {
        flex-direction: column;
        gap: 15px;
    }

    .bed-prev-link,
    .bed-next-link {
        max-width: 100%;
    }
}

/* Loading State */
.bed-loading {
    opacity: 0.5;
    pointer-events: none;
}

.bed-loading-spinner {
    display: none;
    text-align: center;
    padding: 20px;
}

.bed-loading .bed-loading-spinner {
    display: block;
}

/* No Results */
.bed-no-entries {
    text-align: center;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 5px;
    font-size: 16px;
    color: #666;
}

.bed-page-wrapper {
    display: flex;
    gap: 30px;
}

.bed-content-area {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}
