/* style_pencarian.css - CANTIK JELITA SEARCH STYLES */

/* ===== VARIABLES ===== */
:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --secondary-color: #6b7280;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --bg-color: #ffffff;
    --surface-color: #f8fafc;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
}

/* ===== BASE STYLES ===== */
.pencarian-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.pencarian-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.pencarian-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.1)"><polygon points="1000,100 1000,0 0,100"/></svg>');
    background-size: cover;
}

/* ===== BREADCRUMB ===== */
.pencarian-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
}

.breadcrumb-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-link:hover {
    color: white;
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
}

.breadcrumb-current {
    color: white;
    font-weight: 500;
}

/* ===== HEADER STYLES ===== */
.pencarian-header {
    text-align: center;
    margin-bottom: 3rem;
}

.pencarian-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.pencarian-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pencarian-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.search-query {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* ===== SEARCH BOX STYLES ===== */
.jurumiyah-search-box {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.jurumiyah-search-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
}

.jurumiyah-search-input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.jurumiyah-search-container {
    position: relative;
    flex: 1;
}

.jurumiyah-search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.125rem;
    transition: color 0.2s;
}

.jurumiyah-search-input {
    width: 100%;
    padding: 1rem 1.25rem 1rem 3rem;
    font-size: 1.125rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    color: var(--text-primary);
}

.jurumiyah-search-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.jurumiyah-search-input::placeholder {
    color: var(--text-muted);
}

.jurumiyah-search-submit {
    padding: 1rem 2rem;
    background: white;
    color: var(--primary-color);
    border: none;
    border-radius: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.jurumiyah-search-submit:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* ===== SEARCH FILTERS ===== */
.jurumiyah-search-filters {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
}

.jurumiyah-filter-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.jurumiyah-filter-label {
    color: white;
    font-weight: 500;
    white-space: nowrap;
}

.jurumiyah-filter-options {
    display: flex;
    gap: 1.5rem;
}

.jurumiyah-filter-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: color 0.2s;
}

.jurumiyah-filter-option:hover {
    color: white;
}

.jurumiyah-filter-option input {
    display: none;
}

.jurumiyah-filter-checkmark {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.jurumiyah-filter-checkmark::after {
    content: '';
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    background: white;
    opacity: 0;
    transition: opacity 0.2s;
}

.jurumiyah-filter-option input:checked + .jurumiyah-filter-checkmark {
    border-color: white;
}

.jurumiyah-filter-option input:checked + .jurumiyah-filter-checkmark::after {
    opacity: 1;
}

/* ===== RESULTS SECTION ===== */
.pencarian-results {
    padding: 4rem 0;
}

.results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.results-stats {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 1rem;
}

.results-stats i {
    color: var(--primary-color);
}

.results-stats strong {
    color: var(--text-primary);
}

.results-sort {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
}

.sort-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: white;
    color: var(--text-primary);
    cursor: pointer;
}

/* ===== RESULTS GRID ===== */
.results-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.result-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--primary-hover));
    opacity: 0;
    transition: opacity 0.3s;
}

.result-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.result-card:hover::before {
    opacity: 1;
}

.result-badge {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.fasal-number {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.bab-name {
    background: var(--surface-color);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    border: 1px solid var(--border-color);
}

.result-content {
    margin-bottom: 1.5rem;
}

.result-title {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    line-height: 1.4;
}

.result-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.result-title a:hover {
    color: var(--primary-color);
}

.result-preview {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.preview-item {
    display: flex;
    gap: 0.75rem;
}

.preview-label {
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 80px;
    font-size: 0.875rem;
}

.preview-text {
    color: var(--text-primary);
    line-height: 1.5;
    flex: 1;
}

.result-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.meta-item i {
    width: 1rem;
}

.result-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--surface-color);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
    transform: translateY(-1px);
}

/* ===== HIGHLIGHT STYLES ===== */
.highlight {
    background: #fef3c7;
    color: #92400e;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-weight: 600;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
}

.pagination-btn {
    padding: 0.75rem 1.5rem;
    background: white;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    font-weight: 500;
}

.pagination-btn:hover {
    background: var(--surface-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination-numbers {
    display: flex;
    gap: 0.5rem;
}

.pagination-number {
    padding: 0.75rem 1rem;
    background: white;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: all 0.2s;
    font-weight: 500;
    min-width: 3rem;
    text-align: center;
}

.pagination-number:hover {
    background: var(--surface-color);
    border-color: var(--primary-color);
}

.pagination-number.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ===== NO RESULTS ===== */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.no-results-icon {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.no-results h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.no-results p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.no-results-suggestions {
    max-width: 400px;
    margin: 0 auto;
    text-align: left;
}

.no-results-suggestions h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.no-results-suggestions ul {
    color: var(--text-secondary);
    padding-left: 1.5rem;
}

.no-results-suggestions li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* ===== EMPTY STATE ===== */
.search-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.search-empty-state h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.search-empty-state p {
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.125rem;
}

.search-examples {
    max-width: 500px;
    margin: 0 auto;
}

.search-examples h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.example-tags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.example-tag {
    padding: 0.5rem 1rem;
    background: var(--surface-color);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
    font-size: 0.875rem;
}

.example-tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

/* ===== RECENT SEARCHES ===== */
.recent-searches {
    padding: 2rem 0 4rem;
    background: var(--surface-color);
}

.recent-searches-content {
    text-align: center;
}

.recent-searches-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.related-tags {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.related-tag {
    padding: 0.75rem 1.5rem;
    background: white;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
    font-weight: 500;
}

.related-tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== COPY BUTTON STATES ===== */
.copy-btn.copied {
    background: var(--success-color) !important;
    color: white !important;
    border-color: var(--success-color) !important;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .pencarian-hero {
        padding: 2rem 0 3rem;
    }
    
    .pencarian-title {
        font-size: 2rem;
    }
    
    .jurumiyah-search-input-group {
        flex-direction: column;
    }
    
    .jurumiyah-search-submit {
        justify-content: center;
    }
    
    .jurumiyah-filter-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .jurumiyah-filter-options {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .results-info {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .pagination {
        flex-direction: column;
        gap: 1rem;
    }
    
    .pagination-numbers {
        order: -1;
    }
    
    .result-actions {
        justify-content: center;
    }
    
    .preview-item {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .preview-label {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .jurumiyah-search-box {
        padding: 1.5rem;
        border-radius: 1rem;
    }
    
    .result-card {
        padding: 1.5rem;
    }
    
    .result-meta {
        flex-direction: column;
        gap: 0.75rem;
    }
}