/* AI Tools Hub - Custom Styles */

/* Navigation items */
.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.15s ease;
    color: inherit;
    text-decoration: none;
}

.dark .nav-item { color: #9ca3af; }
.nav-item:hover { background: rgba(99, 102, 241, 0.1); }
.dark .nav-item:hover { color: #e5e7eb; }
.nav-item.active { background: rgba(99, 102, 241, 0.15); color: #818cf8; }
.dark .nav-item.active { color: #a5b4fc; }

/* Primary button */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.15s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: inherit;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3); }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.15s ease;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid;
    font-size: inherit;
}
.dark .btn-secondary { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); color: #d1d5db; }
.btn-secondary:hover { background: rgba(99, 102, 241, 0.1); }

.btn-danger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    font-size: inherit;
}
.btn-danger:hover { background: rgba(239, 68, 68, 0.2); }

/* Cards */
.card {
    border-radius: 0.75rem;
    border: 1px solid;
    padding: 1.25rem;
    transition: all 0.2s ease;
}
.dark .card { background: rgba(17, 24, 39, 0.5); border-color: rgba(55, 65, 81, 0.5); }
.light .card, :not(.dark) .card { background: white; border-color: #e5e7eb; }
.card:hover { border-color: rgba(99, 102, 241, 0.3); }

/* Stat cards */
.stat-card {
    border-radius: 0.75rem;
    padding: 1.25rem;
    border: 1px solid;
    position: relative;
    overflow: hidden;
}
.dark .stat-card { background: rgba(17, 24, 39, 0.5); border-color: rgba(55, 65, 81, 0.5); }
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.15;
}

/* Form inputs */
.form-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border-radius: 0.5rem;
    border: 1px solid;
    font-size: 0.875rem;
    transition: all 0.15s ease;
    outline: none;
}
.dark .form-input { background: rgba(17, 24, 39, 0.5); border-color: rgba(55, 65, 81, 0.8); color: #e5e7eb; }
.form-input:focus { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15); }

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.375rem;
}

.form-textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border-radius: 0.5rem;
    border: 1px solid;
    font-size: 0.875rem;
    transition: all 0.15s ease;
    outline: none;
    resize: vertical;
    min-height: 120px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}
.dark .form-textarea { background: rgba(17, 24, 39, 0.5); border-color: rgba(55, 65, 81, 0.8); color: #e5e7eb; }
.form-textarea:focus { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15); }

/* Tags */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}
.dark .tag { background: rgba(99, 102, 241, 0.1); color: #a5b4fc; }

/* Prompt card grid */
.prompt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1rem;
}

/* Variable highlight in prompt text */
.var-highlight {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-weight: 600;
}

/* Copy button animation */
.copy-success {
    animation: copyPulse 0.5s ease;
}
@keyframes copyPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
.dark ::-webkit-scrollbar-thumb { background: #374151; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #4b5563; }

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}
.empty-state i { margin-bottom: 1rem; opacity: 0.3; }
