@import url("theme.css");
@import url("helper.css");


/* ========================================================= Search Box ==================== */
#search_box {
    max-width: calc(100% - 20px);
    width: calc(100% - 20px);
    margin: 0px auto;
    border-radius: 10px;
    padding-top: 5px;
}

#search_box.mini {
    max-width: 60%;
    width: 60%;
}

#search_box .search_box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 50vh;
    overflow: hidden;
    margin: 20px;
    gap: 5px;
}

#search_box .search_box input[type="text"] {
    width: 100%;
    border: none;
    padding: 10px 15px;
    border: 1px solid var(--color-border);
    border-radius: 50vh;
    overflow: hidden;
    font-size: 14px;
}

#search_box .search_box input[type="text"]:focus {
    outline: none;
}

#search_box .search_box label[for="submit"] {
    width: max-content;
    display: flex;
    gap: 5px;
    margin: 0px;
    color: var(--color-white);
}

#search_box .search_box label[for="submit"] i,
#search_box .search_box label[for="submit"] span {
    color: var(--color-white);
}

#search_box .search_box #submit {
    display: none;
}

#search_box .search_tags {
    display: flex;
    margin: 10px;
    font-size: 14px;
    width: 100%;
    flex-wrap: wrap;
}

#search_box .search_tags span {
    color: var(--color-text);
    font-weight: bold;
}

#search_box .search_tags a {
    margin: 15px 15px 0 0;
    color: var(--color-primary);
    background-color: rgb(245, 248, 255);
    border-radius: 50vh;
    padding: 3px 10px;
    letter-spacing: 1px;
    transition: all 0.2s;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 0 10px;
}



#search_box .search_tags a img {
    height: 35px;
    width: 35px;
    object-fit: contain;
}



#search_box .search_tags a:hover,
#search_box .search_tags a.active {
    color: var(--color-white);
    background-color: var(--color-primary);
}

@media screen and (max-width: 768px) {
    #search_box.mini {
        max-width: calc(100% - 20px);
        width: calc(100% - 20px);
    }

    #search_box .search_box label[for="submit"] span {
        display: none;
    }
}

/* ========================================================= Search Box END ==================== */
/* ========================================================= Prompt Items ==================== */



/* Prompts Section */
.prompts_section {
    min-height: 80vh;
    margin-top: 40px;
}

/* Header */
.prompts_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 10px;
}

.section_title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3436;
    margin: 0;
    position: relative;
    padding-left: 15px;
}

.section_title:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 25px;
    background: linear-gradient(to bottom, #6c5ce7, #fd79a8);
    border-radius: 3px;
}

.filter_btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.filter_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.filter_btn i {
    font-size: 1.2rem;
    color: white;
}

/* Filter Dropdown */
.filter_dropdown {
    display: none;
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    margin-bottom: 30px;
    animation: slideDown 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter_select {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e6ff;
    border-radius: 10px;
    font-size: 1rem;
    color: #2d3436;
    margin-bottom: 20px;
    background: #f8f9ff;
    transition: all 0.3s ease;
}

.filter_select:focus {
    border-color: #6c5ce7;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
    outline: none;
}

.apply_filter_btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.apply_filter_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}

/* Prompts Grid */
.prompts_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    padding: 10px;
}

/* Grid Cards */
.prompt_card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: white;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.prompt_card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.prompt_link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Image Container with Gradient Overlay */
.image_container {
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
}

.prompt_image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.prompt_card:hover .prompt_image {
    transform: scale(1.08);
}

/* Gradient Overlay for Views */
.image_overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 10px;
    z-index: 2;
}

/* Views Badge */
.views_badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 8px 15px;
    border-radius: 20px;
    color: white;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.views_badge * {
    font-size: 1rem;
}

.views_badge i {
    color: var(--color-while);
}

.views_badge span {
    color: var(--color-while);
}

/* Card Info */
.prompt_info {
    padding: 10px;
    background: white;
}

.prompt_title {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3436;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prompt_description {
    color: #636e72;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prompt_meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #b2bec3;
    font-size: 13px;
    padding-top: 10px;
    border-top: 1px solid #f1f2f6;
    /* display: none; */
}

.prompt_date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.prompt_date i {
    color: #00cec9;
}

/* Category Badge */
.category_badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(108, 92, 231, 0.95);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 3;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: none;
}

/* Loading Indicator */
.loading_indicator {
    text-align: center;
    padding: 40px;
    display: none;
    grid-column: 1 / -1;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f1f2f6;
    border-top: 4px solid #6c5ce7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading_indicator p {
    color: #636e72;
    font-size: 0.9rem;
}

/* End Message */
.end_message {
    text-align: center;
    padding: 50px 20px;
    color: #636e72;
    font-style: italic;
    grid-column: 1 / -1;
    display: none;
}

.end_message i {
    font-size: 2.5rem;
    color: #dfe6e9;
    margin-bottom: 15px;
    display: block;
}

/* Empty State */
.empty_state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.empty_state i {
    font-size: 3rem;
    color: #dfe6e9;
    margin-bottom: 15px;
}

.empty_state h3 {
    color: #636e72;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.empty_state p {
    color: #b2bec3;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .prompts_grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }

    .image_container {
        height: 380px;
    }
}

@media (max-width: 768px) {
    .prompts_grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 15px;
    }

    .image_container {
        height: 320px;
    }
}

@media (max-width: 576px) {
    .prompts_grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 10px;
    }

    .views_badge * {
        font-size: 10px;
    }

    .prompt_title {
        font-size: 13px;

    }

    .image_container {
        height: 280px;
    }

}

/* Fade-in Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.prompt_card {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

/* ========================================================= Prompt Items END==================== */