/* AI Prompt Gallery Frontend Styles */
.aipg-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 16px;
}
.aipg-tabs-container {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}
.aipg-pill-bar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    padding: 6px;
    display: inline-flex;
    gap: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.aipg-tab-btn {
    border: none;
    background: transparent;
    padding: 10px 24px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}
.aipg-tab-btn.active {
    background: #0f172a;
    color: #ffffff;
}
.aipg-icon { width: 18px; height: 18px; }

.aipg-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 20px;
}
@media (min-width: 640px) { .aipg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .aipg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .aipg-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.aipg-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}
.aipg-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -3px rgba(0,0,0,0.08);
}
.aipg-card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    background: #f1f5f9;
    overflow: hidden;
}
.aipg-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.aipg-card-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.aipg-card-title {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
    line-height: 1.3;
}
.aipg-card-prompt {
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 12px;
    flex: 1;
}
.aipg-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}
.aipg-copy-btn {
    background: #7c3aed;
    color: #ffffff;
    border: none;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.aipg-copy-btn:hover { background: #6d28d9; }
.aipg-copy-btn.copied { background: #059669; }

.aipg-loadmore-wrap {
    text-align: center;
    margin: 40px 0;
}
.aipg-loadmore-btn {
    background: #0f172a;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    padding: 14px 40px;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    box-shadow: 0 10px 20px -3px rgba(15, 23, 42, 0.25);
    transition: all 0.2s ease;
}
.aipg-loadmore-btn:hover { background: #1e293b; }
