/*
Theme Name: Gemini Prompts (Bootstrap Edition)
Theme URI: https://example.com
Author: Gemini
Author URI: https://example.com
Description: A clean, premium theme for Gemini Prompts using Bootstrap 5.
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gemini-prompts
*/

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa; /* Bootstrap gray-100 */
}

/* Prompt Card Styling */
.prompt-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e9ecef;
}

.prompt-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.08) !important;
    border-color: #dee2e6;
}

/* Ensure preview text doesn't overflow on small cards */
.prompt-preview {
    position: relative;
    max-height: 6rem;
    overflow: hidden;
    word-break: break-word; /* Break long words */
}

.prompt-preview::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2rem;
    background: linear-gradient(to top, #f8f9fa, transparent);
}

/* Sidebar Sticky - ONLY on Desktop */
@media (min-width: 992px) {
    .sticky-sidebar-lg {
        position: sticky;
        top: 6rem;
        z-index: 10;
    }
}

/* Navigation */
.navbar-nav .nav-link {
    font-weight: 500;
    color: #6c757d;
}
.navbar-nav .nav-link:hover {
    color: #0d6efd;
}

/* Pagination */
.pagination .page-numbers {
    
    position: relative;
    display: block;
    color: #6c757d;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #dee2e6;
    padding: 0.375rem 0.75rem;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    float: left;
}

.pagination .page-numbers:hover {
    z-index: 2;
    color: #0a58ca;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.pagination .page-numbers.current {
    z-index: 3;
    color: #fff;
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    border-radius: 0.375rem;
    justify-content: center;
    font-size: 2rem;
}

/* Code Pre Tag Fixes for Mobile */
pre {
    white-space: pre-wrap;       /* Since CSS 2.1 */
    white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
    white-space: -pre-wrap;      /* Opera 4-6 */
    white-space: -o-pre-wrap;    /* Opera 7 */
    word-wrap: break-word;       /* Internet Explorer 5.5+ */
}