/* Static/css/my_collections.css */

/* Imports */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

/* Colors */
:root {
    --yellow: #fff;
    --orange:  #fff ;
    --beige:  #fff ;
    
    --dark: #343a40;
    --light-gray: #f8f9fa;
    --border-color: #e9ecef;
    --card-bg: #fff;
    --text-muted: #c9ad7f;
}

/* General Styles */


/* Container */
.my-collections-container {
    max-width: 1400px; /* Increased max width */
    margin: 20px auto;
    padding: 20px;
    width: 95%; /* Take up most of the screen */
}

/* Overview Cards */
.overview-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.overview-card {
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05); /* Reduced shadow */
    text-align: left;
    border: 1px solid var(--border-color); /* Subtle border */
    background-color: var(--card-bg);
}

.overview-card.yellow {
    background-color: var(--yellow);
}

.overview-card.orange {
    background-color: var(--orange);
    color: white;
}

.overview-card.dark {
    background-color: var(--dark);
    color: white;
}

.overview-card .card-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
}

.overview-card .card-content {
    font-size: 1em;
}

.overview-card .number {
    font-size: 1.5em;
    font-weight: bolder;
}

.overview-card .card-button {
    background-color: var(--dark);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.overview-card .progress-bar {
    height: 10px;
    background-color: #ddd;
    border-radius: 5px;
    margin-bottom: 5px;
    overflow: hidden;
}

.overview-card .progress {
    height: 100%;
    background-color: green;
    border-radius: 5px;
}

/* Header section */
.my-collections-header {
    width: 100%;
    margin: 0.5em 0;
    padding: 0.5em 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.my-collections-title {
    border-bottom: 2px solid;
    padding: 0.25em 0.75em;
    font-size: 1.75em;
    margin: 0;
    white-space: nowrap; /* prevent text from wrapping */
}

.my-collections-publisher {
    margin: 0;
    padding: 0;
    font-size: 1.1em;
}

/* Filter Sort Container */
.filter-sort-container {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    padding: 10px;
    background-color: white;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.filter {
    position: relative;
    display: inline-block;
}

.filter i {
    color: #777;
}

.filter-dropdown {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 200px;
    padding: 10px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
}

.filter:hover .filter-dropdown {
    display: block;
}

.filter-option {
    padding: 5px 0;
}

.filter-option label {
    margin-left: 5px;
}

.filter-sort-container div {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
}

.sort {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
}

.view {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
}

.more {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
}

/* No results */
.no-results-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

/* Collections Grid */
.collections-grid {
    max-width: 100%;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    gap: 1em;
}

/* Individual Collection Item */
.collection-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.75em;
    border-radius: 0.5em;
    overflow: hidden; /* Ensure content stays within the rounded corners */
    background-color: var(--card-bg); /* White card background */
    box-shadow: 0 0.125em 0.25em rgba(0,0,0,.075); /* subtle shadow */
    border: 1px solid var(--border-color);
}

.collection-header {
    flex: 0 0 auto;
}

.collection-image-link {
    text-decoration: none;
    display: block; /* Make the link fill the header */
}

.collection-cover-image {
    width: 100%;
    height: auto;
    display: block;
}

.collection-no-cover {
    min-height: 10em;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    padding: 0.5em;
    color: #fff;
}

/* Collection Details */
.collection-details {
    flex: 1 1 auto;
    padding: 0.75em;
}

.collection-details h3 {
    margin-top: 0;
    margin-bottom: 0.5em;
    font-size: 1.25em;
}

.collection-details h3 a {
    text-decoration: none;
}

.collection-details p {
    color: var(--text-muted);
    margin-bottom: 0.3em;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: auto;
    padding-top: 1em;
    margin-bottom: 2em;
}


/* Collections Grid */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    gap: 20px;
}

/* Collection Item */
.item.features-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: #f9f9f9;
    transition: transform 0.2s ease-in-out;
}

.item.features-image:hover {
    transform: scale(1.02); /* Subtle hover effect */
}

/* Image Section */
.item-img img {
    height: auto;
    width: 100%;
    object-fit: cover;
}

/* Content Section */
.item-content {
    padding: 15px;
    background-color: #fff;
}

.item-title_1 {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 10px;
}

.collection-details-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #555;
}




/* Collections Grid */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    gap: 20px;
}

/* Collection Item */
.item.features-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Slightly darker shadow for better visibility */
    background-color: #f9f9f9;
    transition: transform 0.2s ease-in-out;
}

.item.features-image:hover {
    transform: scale(1.02); /* Subtle hover effect */
}

/* Image Section */
.item-img img {
    height: auto;
    width: 100%;
    object-fit: cover;
}

/* Content Section */
.item-content {
    padding: 15px;
    background-color: #fff;
}

/* Title Styles */
.item-title_1 {
    font-weight: bold; /* Bold title */
    font-size: 20px; /* Increased font size for emphasis */
    margin-bottom: 10px;
    color: #333; /* Darker text color for better contrast */
}

/* Collection Details Row */
.collection-details-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px; /* Increased font size for readability */
    color: #555; /* Slightly darker text color for contrast */
}

.collection-details-row span {
    font-weight: bold; /* Bold text for values */
}

/* Badge Styles */
.badge-new {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #ffda61; /* Yellow background */
    color: black; /* Dark text color for better readability */
    padding: 5px 10px;
    border-radius: 12px;
    font-weight: bold; /* Bold badge text */
    display: flex;
    align-items: center;
}
