/* Manios Prompt Selector - Standalone CSS */
/* No external dependencies */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #e0e7ff 0%, #f3e8ff 50%, #fce7f3 100%);
    min-height: 100vh;
    padding: 24px;
    color: #1f2937;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
}

/* Header */
.header {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 32px;
    margin-bottom: 32px;
    border-top: 4px solid #6366f1;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.header h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 12px;
}

.subtitle {
    font-size: 1.125rem;
    color: #6b7280;
}

.header-stats {
    text-align: right;
}

.stat-number {
    font-size: 1.875rem;
    font-weight: 700;
    color: #6366f1;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.info-box {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    padding: 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #1e40af;
}

/* Search */
.search-box {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 16px;
    margin-bottom: 24px;
}

.search-box form {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #9ca3af;
}

.search-input {
    width: 100%;
    padding: 12px 12px 12px 44px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1.125rem;
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.category-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.category-card.selected {
    border-width: 2px;
    box-shadow: 0 0 0 4px rgba(0,0,0,0.05);
}

.category-card.color-red { background: linear-gradient(135deg, #fef2f2 0%, #ffedd5 100%); }
.category-card.color-red.selected { border-color: #ef4444; }

.category-card.color-blue { background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%); }
.category-card.color-blue.selected { border-color: #3b82f6; }

.category-card.color-green { background: linear-gradient(135deg, #f0fdf4 0%, #d1fae5 100%); }
.category-card.color-green.selected { border-color: #10b981; }

.category-card.color-yellow { background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%); }
.category-card.color-yellow.selected { border-color: #ca8a04; }

.category-card.color-purple { background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%); }
.category-card.color-purple.selected { border-color: #a855f7; }

.category-card.color-indigo { background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%); }
.category-card.color-indigo.selected { border-color: #6366f1; }

.category-card.color-gray { background: linear-gradient(135deg, #f9fafb 0%, #f1f5f9 100%); }
.category-card.color-gray.selected { border-color: #6b7280; }

.category-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
}

.category-icon {
    font-size: 3.75rem;
    margin-right: 16px;
    line-height: 1;
}

.category-title-section {
    flex: 1;
}

.category-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.category-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.meta-item {
    font-size: 0.75rem;
    color: #6b7280;
}

.complexity {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 9999px;
    font-weight: 600;
}

.complexity-υψηλή {
    background: #fee2e2;
    color: #dc2626;
}

.complexity-πολύ-υψηλή {
    background: #fecaca;
    color: #b91c1c;
}

.complexity-μεσαία {
    background: #fef3c7;
    color: #ca8a04;
}

.complexity-χαμηλή {
    background: #d1fae5;
    color: #059669;
}

.category-subcats {
    margin-bottom: 16px;
}

.subcats-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.subcats-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.tag {
    font-size: 0.75rem;
    background: rgba(255,255,255,0.7);
    color: #374151;
    padding: 4px 8px;
    border-radius: 9999px;
    border: 1px solid rgba(0,0,0,0.1);
}

.tag-more {
    background: #e5e7eb;
    color: #4b5563;
    font-weight: 600;
}

.category-download {
    padding-top: 12px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

/* Buttons */
.btn-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: #6366f1;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-download:hover {
    background: #4f46e5;
}

.btn-download-large {
    padding: 12px 24px;
    font-size: 1rem;
    width: auto;
}

/* Details Box */
.details-box {
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 32px;
    margin-bottom: 32px;
    border: 2px solid;
}

.details-box.color-red { background: linear-gradient(135deg, #fef2f2 0%, #ffedd5 100%); border-color: #ef4444; }
.details-box.color-blue { background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%); border-color: #3b82f6; }
.details-box.color-green { background: linear-gradient(135deg, #f0fdf4 0%, #d1fae5 100%); border-color: #10b981; }
.details-box.color-yellow { background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%); border-color: #ca8a04; }
.details-box.color-purple { background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%); border-color: #a855f7; }
.details-box.color-indigo { background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%); border-color: #6366f1; }
.details-box.color-gray { background: linear-gradient(135deg, #f9fafb 0%, #f1f5f9 100%); border-color: #6b7280; }

.details-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.details-title-section {
    display: flex;
    align-items: center;
}

.details-icon {
    font-size: 4.5rem;
    margin-right: 16px;
}

.details-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.details-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.code-badge {
    background: rgba(255,255,255,0.7);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-family: 'Courier New', monospace;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.details-section {
    background: rgba(255,255,255,0.7);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.subcats-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.subcat-item {
    font-size: 0.875rem;
    color: #374151;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.bullet {
    width: 8px;
    height: 8px;
    background: #6366f1;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.features-list {
    list-style: none;
}

.feature-item {
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.checkmark {
    color: #10b981;
    font-weight: 700;
    font-size: 1rem;
}

/* Examples */
.examples-section {
    background: rgba(255,255,255,0.7);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.examples-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.example-tag {
    background: white;
    padding: 10px 16px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 0.875rem;
    color: #374151;
    border: 2px solid #e5e7eb;
}

/* Instructions */
.instructions-box {
    background: #fef3c7;
    border-left: 4px solid #eab308;
    padding: 20px;
    border-radius: 8px;
}

.instructions-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 12px;
}

.instructions-list {
    font-size: 0.875rem;
    color: #92400e;
    padding-left: 20px;
}

.instructions-list li {
    margin-bottom: 8px;
}

/* Stats Footer */
.stats-footer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.stat-box {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 16px;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 16px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .details-header {
        flex-direction: column;
        gap: 16px;
    }
    
    .details-title {
        font-size: 1.5rem;
    }
    
    .details-icon {
        font-size: 3rem;
    }
    
    .subcats-list {
        grid-template-columns: 1fr;
    }
    
    .stats-footer {
        grid-template-columns: repeat(2, 1fr);
    }
}