/* Card Grid Layout */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: -0.75rem;  /* Negative margin to offset card padding */
}

.row > [class*='col-'] {
    padding: 0.75rem;  /* Consistent padding for grid */
}

/* Card Base */
.prompt-card {
    height: 100%;
    position: relative;
    z-index: 1;
}

/* Card Structure */
.prompt-card .card {
    height: 100%;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    background: #fff;
}

/* Card Link Wrapper */
.card-content-link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
    position: relative;
    z-index: 1;
}

/* Card Body Layout */
.card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.25rem;
}

/* Card Title */
.card-title {
    font-size: 1.1rem;
    line-height: 1.4;
    color: #2d3748;
    margin-bottom: 1rem;
}

/* Categories Section */
.card-text {
    flex-grow: 1;
    margin-bottom: 1rem;
}

/* Categories Container */
.categories-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.categories-label {
    color: #4a5568;
    font-size: 0.875rem;
}

/* Category Badge */
.category-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35em 0.65em;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 4px;
    line-height: 1.2;
    text-decoration: none;
    background-color: #718096;  /* Fallback color */
    background-color: var(--category-bg-color, #718096);  /* Use CSS variable with fallback */
    color: #ffffff;  /* Fallback color */
    color: var(--category-text-color, #ffffff);  /* Use CSS variable with fallback */
    opacity: 0.9;
    transition: all 0.2s ease;
    position: relative;
    z-index: 2;
}

.category-badge:hover {
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: var(--category-text-color, #ffffff);
}

/* Stats Section - Always at bottom */
.card-stats {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;  /* Push to bottom */
    padding-top: 1rem;  /* Space from content above */
    border-top: 1px solid #e2e8f0;  /* Separator line */
}

.stats-group {
    display: flex;
    gap: 1rem;
}

.stat-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #718096;
    font-size: 0.875rem;
}

.stat-item i {
    cursor: pointer;
    transition: all 0.2s ease;
}

.stat-item i:hover {
    transform: scale(1.1);
}

.stat-item i.text-upvoted {
    color: #f97316;  /* Orange color for upvotes */
}

.stat-item i.text-starred {
    color: #fbbf24;  /* Gold color for stars */
}

.stat-item i.text-used {
    color: #3b82f6;  /* Blue color for uses */
}

.card-meta {
    text-align: right;
    font-size: 0.875rem;
    color: #718096;
}

/* Hover Effects */
.prompt-card:hover {
    transform: translateY(-2px);
    z-index: 2;
}

.prompt-card:hover .card {
    border-color: #3182ce;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.prompt-card:hover .card-title {
    color: #3182ce;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

.category-badge:hover {
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .card-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .card-meta {
        text-align: left;
    }
    
    .prompt-card .card-title {
        font-size: 1rem;
    }
} 

/* Top Prompt Badge */
.top-prompt-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background-color: var(--badge-color, #4a5568);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    z-index: 3;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    opacity: 0.95;
    transition: all 0.2s ease;
}

.top-prompt-badge:hover {
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.top-prompt-badge i {
    font-size: 0.875rem;
    color: #FFD700;  /* Gold color for trophy */
}

/* Adjust card positioning for badge */
.prompt-card .card {
    position: relative;
    overflow: visible;  /* Allow badge to overflow */
}

/* Ensure proper z-index stacking */
.prompt-card {
    position: relative;
    z-index: 1;
}

.prompt-card:hover {
    z-index: 2;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .top-prompt-badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
} 

.interaction-buttons .btn-link {
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    color: #718096;
}

.interaction-buttons .btn-link:hover {
    color: #4a5568;
}

.interaction-buttons .stat-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 0.5rem;
}

.interaction-buttons .stat-item i {
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.interaction-buttons .stat-item i:hover {
    transform: scale(1.1);
}

.interaction-buttons .stat-item i.text-upvoted {
    color: #f97316;  /* Orange color for upvotes */
}

.interaction-buttons .stat-item i.text-starred {
    color: #fbbf24;  /* Gold color for stars */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .interaction-buttons {
        width: 100%;
        display: flex;
        justify-content: flex-start;
    }
    
    .interaction-buttons .stat-item:first-child {
        margin-left: 0;
    }
} 

/* User Profile Styles */
.profile-header {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1rem;
}

.profile-header h2 {
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.user-stats {
    display: flex;
    gap: 1.5rem;
    color: #4a5568;
}

.user-stats .stat-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.user-stats .stat-item i {
    font-size: 1rem;
}

/* Section Header Links */
.section-header {
    display: block;
    text-decoration: none;
    color: #2d3748;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.section-header:hover {
    text-decoration: none;
    color: #3182ce;
}

.section-header h3 {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 1.5rem;
}

.section-header i {
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.section-header:hover i {
    transform: translateX(4px);
}

.section-header:hover h3 {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
} 

.btn-subtle {
    color: #a0aec0;
    background: none;
    border: none;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-subtle:hover {
    color: #718096;
    background-color: #f7fafc;
    text-decoration: none;
}

.btn-subtle i {
    font-size: 1rem;
}

/* Update profile header for better alignment */
.profile-header .d-flex {
    border-bottom: none;
    padding-bottom: 0;
}

.profile-header h2 {
    margin-bottom: 0;
    line-height: 1.2;
} 

/* Card Stats Icons - Non-interactive */
.prompt-card .stat-item i {
    font-size: 0.875rem;
    transition: none;
}

.prompt-card .stat-item i:hover {
    transform: none;
    cursor: default;
}

/* Interactive Icons (Prompt Page) */
.interaction-buttons .stat-item i {
    font-size: 1.1rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.interaction-buttons .stat-item i:hover {
    transform: scale(1.1);
}

/* Shared Icon Colors */
.stat-item i.text-upvoted {
    color: #f97316;  /* Orange color for upvotes */
}

.stat-item i.text-starred {
    color: #fbbf24;  /* Gold color for stars */
}

.stat-item i.text-used {
    color: #3b82f6;  /* Blue color for uses */
} 

/* Build Prompt Button and Modal Styles */
.btn-iridescent {
    background: linear-gradient(
        45deg,
        #7928CA,
        #FF0080
    );
    color: white;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    border: none;
    transition: all 0.3s ease;
}

.btn-iridescent:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(121, 40, 202, 0.2);
    color: white;
    background: linear-gradient(
        45deg,
        #6a23b5,
        #e5007a
    );
}

/* Build Modal Styles */
.build-mode-toggle .btn-group {
    border-radius: 8px;
    overflow: hidden;
}

.build-mode-toggle .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

.prompt-preview {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.prompt-preview:hover {
    background: #e9ecef;
}

.prompt-preview .collapsed-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prompt-preview .full-text {
    white-space: pre-wrap;
}

#argumentFields .form-group {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
}

#argumentFields .form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

#argumentFields .argument-description {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

#usedArguments li {
    display: inline-block;
    background: #e9ecef;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    margin: 0.25rem;
    font-size: 0.875rem;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .btn-iridescent {
        width: 100%;
    }
} 

/* Preview Section Styles */
.preview-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.argument-list {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #2d3748;
    background: white;
    border-radius: 6px;
    padding: 0.75rem 1rem;
}

.argument-key {
    color: #2563eb;
    background: none;
    padding: 0;
}

.argument-value {
    font-size: 0.875rem;
}

.prompt-preview {
    background: white;
    border-radius: 6px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.prompt-preview:hover {
    background: #edf2f7;
}

.preview-content {
    font-family: monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #2d3748;
}

.collapsed-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.full-text {
    white-space: pre-wrap;
}

/* Build Forms */
.build-form {
    max-width: 600px;
    margin: 0 auto;
}

/* Loading Button State */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 1rem;
    height: 1rem;
    top: 50%;
    left: 50%;
    margin: -0.5rem 0 0 -0.5rem;
    border: 2px solid #fff;
    border-right-color: transparent;
    border-radius: 50%;
    animation: button-loading-spinner 0.75s linear infinite;
}

@keyframes button-loading-spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Generated Prompt Styles */
.prompt-preview.generated {
    border: 4px solid transparent;
    background: 
        linear-gradient(white, white) padding-box,
        linear-gradient(
            45deg,
            #ff1493,
            #ff69b4,
            #ff8c00,
            #ffd700,
            #32cd32,
            #00bfff,
            #8a2be2
        ) border-box;
    animation: border-gradient 5s ease infinite;
    background-size: 200% 200%;
}

@keyframes border-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Copy Button Styles */
.copy-preview-btn {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.prompt-preview:hover .copy-preview-btn,
.copy-preview-btn:hover {
    opacity: 1;
}

.copy-preview-btn.visible {
    opacity: 1;
}

/* Hide elements using Bootstrap classes instead of inline styles */
.d-none {
    display: none !important;
} 

/* Navbar styling */
.navbar {
    background: linear-gradient(90deg, #1a1a1a, #2d2d2d);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.4rem;
}

/* Update icon styling */
.navbar-brand .bi-terminal {
    font-size: 1.4rem;
    color: #fff;
    opacity: 0.9;
}

.navbar-brand .bi-braces-asterisk {
    font-size: 1.4rem;
    background: linear-gradient(45deg, #7928CA, #FF0080);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar-brand:hover .bi-terminal {
    opacity: 1;
}

.brand-text {
    background: linear-gradient(45deg, #fff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Button styling */
.btn-primary {
    background: linear-gradient(45deg, #7928CA, #FF0080);
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #6a23b5, #e5007a);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(121, 40, 202, 0.2);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Dropdown styling */
.dropdown-menu {
    background: #2d2d2d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.dropdown-item {
    color: #fff;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1);
} 