/* 
 * PrimeVue Component Explorer by https://dariuszsikorski.pl
 */

:root {
    --primary-color: #4f46e5;
    --primary-light: #eef2ff;
    --primary-dark: #3730a3;
    --primary-gradient: linear-gradient(135deg, #6366f1, #4f46e5);
    
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    --text-primary: var(--gray-800);
    --text-secondary: var(--gray-600);
    --text-light: var(--gray-500);
    
    --bg-body: var(--gray-50);
    --bg-card: #ffffff;
    --bg-header: #ffffff;
    --bg-sidebar: #ffffff;
    --bg-footer: var(--gray-900);
    
    --border-color: var(--gray-200);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --radius-sm: 0.25rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    --header-height: 4rem;
    --sidebar-width: 240px;
    --transition: all 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

button {
    cursor: pointer;
    font-family: inherit;
}

/* App container */
.App {
    display: grid;
    grid-template-areas:
        "header header"
        "sidebar main"
        "footer footer";
    grid-template-columns: var(--sidebar-width) 1fr;
    grid-template-rows: var(--header-height) 1fr auto;
    min-height: 100vh;
}

/* Header styles */
.App_header {
    grid-area: header;
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.App_headerContent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
}

.App_headerLeft {
    display: flex;
    align-items: center;
}

.App_headerRight {
    display: flex;
    align-items: center;
}

.App_logo {
    display: flex;
    align-items: center;
    margin-right: 1rem;
}

.App_logoImage {
    height: 2rem;
}

.App_title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-right: 2rem;
    white-space: nowrap;
}

.App_search {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin-right: 1.5rem;
}

.App_searchInput {
    width: 100%;
    padding: 0.625rem 2.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    font-size: 0.875rem;
    transition: var(--transition);
    background-color: var(--gray-50);
}

.App_searchInput:focus {
    outline: none;
    background-color: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
    font-size: 0.875rem;
}

.App_clearSearch {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-500);
    font-size: 0.75rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: none;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.App_clearSearch:hover {
    background-color: var(--gray-200);
    color: var(--gray-700);
}

.App_scaleControl {
    background: none;
    border: none;
    color: var(--gray-500);
    font-size: 0.875rem;
    padding: 0 0.75rem;
    height: 2.5rem;
    border-radius: var(--radius);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    margin-left: 0.5rem;
    margin-right: 15px;
    white-space: nowrap;
}

.App_scaleControl i {
    /* Icon already has margin-right from JS */
}

.App_scaleControl:hover {
    background-color: var(--gray-100);
    color: var(--primary-color);
}

.App_stats {
    font-size: 0.875rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.App_stats span {
    font-weight: 600;
    color: var(--primary-color);
}

/* Sidebar styles */
.App_sidebar {
    grid-area: sidebar;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    height: calc(100vh - var(--header-height));
    position: sticky;
    top: var(--header-height);
    overflow-y: auto;
}

.App_nav {
    padding: 1.5rem 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.App_navTitle {
    padding: 0 1.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.App_navList {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.App_navItem {
    padding: 0.5rem 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.App_navItem:hover {
    background-color: var(--gray-100);
}

.App_navItem.is-active {
    background-color: var(--primary-light);
    position: relative;
}

.App_navItem.is-active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--primary-color);
}

.App_navText {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.App_navText span {
    margin-left: 0.5rem;
}

.App_navBadge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.375rem;
    margin-left: auto;
}

.App_navFooter {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.App_navLink {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.App_navLink i {
    margin-right: 0.5rem;
}

.App_navLink:hover {
    color: var(--primary-color);
}

/* Main content */
.App_main {
    grid-area: main;
    position: relative;
    padding: 2rem 1.5rem 4rem;
    background-color: var(--bg-body);
    min-height: calc(100vh - var(--header-height));
    transition: zoom 0.33s ease-in-out;
}

.App_topGradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8rem;
    background: linear-gradient(to bottom, rgba(249, 250, 251, 0.8), transparent);
    pointer-events: none;
    z-index: 1;
}

.App_components {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

/* Category sections */
.App_category {
    margin-bottom: 3rem;
    animation: fadeIn 0.5s ease-out;
}

.App_categoryHeader {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.App_categoryTitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    position: relative;
}

.App_categoryTitle::before {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 3rem;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 9999px;
}

.App_categoryCount {
    margin-left: 0.75rem;
    background-color: var(--gray-100);
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.App_categoryGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Component card */
.Component {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    animation: fadeIn 0.5s ease-out;
    animation-fill-mode: both;
}

.Component:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.Component::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: var(--transition);
}

.Component:hover::before {
    opacity: 1;
}

.Component_link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.Component_imageContainer {
    position: relative;
    background-color: var(--gray-100);
    overflow: hidden;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.Component_image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.Component:hover .Component_image {
    transform: scale(1.05);
}

.Component_info {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

.Component_title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.Component_category {
    font-size: 0.75rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
}

.Component_category i {
    font-size: 0.75rem;
    margin-right: 0.25rem;
}

/* Multi-image component indicator */
.Component.is-multi .Component_imageContainer::after {
    content: '';
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.8);
}

/* No results state */
.App_noResults {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

.App_noResultsIcon {
    font-size: 3rem;
    color: var(--gray-300);
    margin-bottom: 1rem;
}

.App_noResultsText {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
}

.App_resetButton {
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--radius);
    transition: var(--transition);
}

.App_resetButton:hover {
    background-color: var(--primary-dark);
}

/* Scroll to top button */
.App_scrollToTop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 50;
}

.App_scrollToTop.is-visible {
    opacity: 1;
    visibility: visible;
}

.App_scrollToTop:hover {
    background-color: var(--primary-dark);
    transform: translateY(-4px);
}

/* Footer styles */
.App_footer {
    grid-area: footer;
    background-color: var(--bg-footer);
    color: var(--gray-400);
    padding: 3rem 1.5rem;
}

.App_footerContent {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.App_footerText {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.App_footerCopyright {
    color: var(--gray-500);
}

.App_footerLinks {
    display: flex;
    gap: 1.5rem;
}

.App_footerLink {
    color: var(--gray-300);
    font-size: 0.875rem;
    transition: var(--transition);
}

.App_footerLink:hover {
    color: white;
}

/* Utility classes */
.is-hidden {
    display: none !important;
}

.is-visible {
    display: flex !important;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* For staggered animations of component cards */
@keyframes fadeInStaggered {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media queries for responsiveness */
@media (max-width: 1024px) {
    .App {
        grid-template-areas:
            "header header"
            "main main"
            "footer footer";
        grid-template-columns: 1fr;
    }
    
    .App_sidebar {
        position: fixed;
        left: 0;
        top: var(--header-height);
        z-index: 90;
        width: var(--sidebar-width);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .App_sidebar.is-open {
        transform: translateX(0);
    }
    
    .App_headerContent {
        padding: 0 1rem;
    }
    
    .App_title {
        font-size: 1rem;
        margin-right: 1rem;
    }
    
    .App_stats {
        display: none;
    }
    
    .App_main {
        padding: 1.5rem 1rem 3rem;
    }
    
    .App_categoryGrid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .App_headerContent {
        justify-content: space-between;
    }
    
    .App_logo {
        margin-right: 0.5rem;
    }
    
    .App_title {
        display: none;
    }
    
    .App_search {
        max-width: none;
        margin-right: 0;
    }
    
    .App_categoryGrid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .Component_imageContainer {
        height: 160px;
    }
    
    .App_footerContent {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .App_footerLinks {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .App_headerContent {
        padding: 0 0.75rem;
    }
    
    .App_logoImage {
        height: 1.5rem;
    }
    
    .App_categoryGrid {
        grid-template-columns: 1fr;
    }
    
    .App_main {
        padding: 1rem 0.75rem 2rem;
    }
    
    .App_scrollToTop {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .App_footerLinks {
        flex-wrap: wrap;
        gap: 1rem;
    }
}
