/* =====================================================
   PRAZ Categories Portal - Custom Styles
   ===================================================== */

:root {
    --primary-color: #0d6efd;
    --primary-dark: #0a58ca;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --gradient-start: #1a1a2e;
    --gradient-end: #16213e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f6fa;
    color: #333;
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero-section {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='40' stroke='%23ffffff10' stroke-width='0.5' fill='none'/%3E%3C/svg%3E") repeat;
    opacity: 0.3;
}

.hero-subtitle {
    color: #a0aec0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-title .text-primary {
    color: var(--primary-color) !important;
}

.hero-description {
    color: #a0aec0;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* =====================================================
   SEARCH BOX
   ===================================================== */
.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-box {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    padding: 5px 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.search-icon {
    color: #6c757d;
    font-size: 1.2rem;
    margin-right: 15px;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 15px 0;
    background: transparent;
}

.search-input::placeholder {
    color: #a0aec0;
}

.search-spinner {
    margin-left: 10px;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    margin-top: 10px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
}

.search-result-item {
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.search-result-item:hover {
    background: #f8f9fa;
}

.search-result-item:last-child {
    border-bottom: none;
}

.result-main {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.result-badge {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 4px;
    color: white;
}

.result-name {
    font-weight: 500;
    color: #333;
}

.result-name mark {
    background: #ffc107;
    padding: 0 2px;
    border-radius: 2px;
}

.result-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #6c757d;
}

.result-code {
    font-family: monospace;
    background: #f1f3f5;
    padding: 2px 6px;
    border-radius: 4px;
}

.no-results {
    padding: 20px;
    text-align: center;
    color: #6c757d;
}

/* =====================================================
   STATISTICS
   ===================================================== */
.stats-row {
    position: relative;
    z-index: 1;
}

.stat-card {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
}

.stat-label {
    color: #a0aec0;
    font-size: 0.9rem;
}

/* =====================================================
   WELCOME SECTION
   ===================================================== */
.welcome-section {
    padding: 80px 0;
    background: white;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.section-description {
    color: #6c757d;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* =====================================================
   FEATURE CARDS
   ===================================================== */
.feature-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    height: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.feature-card h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: #6c757d;
    margin: 0;
}

/* =====================================================
   CATEGORY SECTION
   ===================================================== */
.category-section {
    padding: 60px 0;
    background: #f5f6fa;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 150px;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: white;
}

.category-card i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.category-card h5 {
    margin-bottom: 5px;
}

.category-card .badge {
    background: rgba(255, 255, 255, 0.2);
    font-weight: 500;
}

.category-card.goods { background: linear-gradient(135deg, #198754, #157347); }
.category-card.services { background: linear-gradient(135deg, #0d6efd, #0a58ca); }
.category-card.works { background: linear-gradient(135deg, #fd7e14, #dc6a12); }
.category-card.consultancy { background: linear-gradient(135deg, #0dcaf0, #0aa2c0); }

/* =====================================================
   PAGE HEADER
   ===================================================== */
.page-header {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
    padding: 40px 0;
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: #a0aec0;
    margin: 0;
}

/* =====================================================
   FILTER TABS
   ===================================================== */
.filter-section {
    background: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    color: #6c757d;
    background: #f8f9fa;
    transition: all 0.3s;
    font-weight: 500;
}

.filter-tab:hover {
    background: #e9ecef;
    color: #333;
}

.filter-tab.active {
    background: var(--primary-color);
    color: white;
}

/* =====================================================
   INDUSTRIES GRID
   ===================================================== */
.industries-section {
    padding: 40px 0;
}

.industry-card {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    height: 100%;
}

.industry-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    color: inherit;
}

.industry-icon {
    width: 50px;
    height: 50px;
    background: #e3f2fd;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.industry-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.industry-content {
    flex: 1;
}

.industry-content h5 {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.industry-stats {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #6c757d;
}

.industry-arrow {
    color: #dee2e6;
    font-size: 1.2rem;
}

/* =====================================================
   BREADCRUMB
   ===================================================== */
.breadcrumb-section {
    background: #f8f9fa;
    padding: 15px 0;
}

.breadcrumb {
    margin: 0;
    background: transparent;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

/* =====================================================
   INDUSTRY HEADER
   ===================================================== */
.industry-header {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
    padding: 40px 0;
}

.industry-header h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
}

.category-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.stat-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.stat-badge.goods { background: #198754; }
.stat-badge.services { background: #0d6efd; }
.stat-badge.works { background: #fd7e14; }
.stat-badge.consultancy { background: #0dcaf0; }

/* =====================================================
   CATEGORIES TABLE
   ===================================================== */
.categories-section {
    padding: 40px 0;
}

.categories-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.categories-table thead {
    background: #f8f9fa;
}

.categories-table th {
    font-weight: 600;
    color: #333;
    padding: 15px;
    border: none;
}

.categories-table td {
    padding: 15px;
    vertical-align: middle;
}

.categories-table tr.highlighted {
    animation: highlight-pulse 2s ease-in-out;
}

@keyframes highlight-pulse {
    0%, 100% { background-color: #fff3cd; }
    50% { background-color: #ffe69c; }
}

.class-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: white;
}

.class-badge.goods { background: #198754; }
.class-badge.service { background: #0d6efd; }
.class-badge.works { background: #fd7e14; }
.class-badge.consultancy { background: #0dcaf0; }

.category-name {
    font-weight: 500;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    background: var(--dark-color);
    color: #a0aec0;
    padding: 30px 0;
    margin-top: 40px;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .filter-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
    }
    
    .filter-tab {
        white-space: nowrap;
    }
    
    .industry-stats {
        flex-direction: column;
        gap: 5px;
    }
}
