/* ========================================
   WIKIFRAGANCIAS - PROFESSIONAL COMPONENTS
   ======================================== */

/* === LAYOUT SYSTEM === */
.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.main-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    margin-top: 30px;
}

.main-content {
    min-width: 0;
}

.sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

@media (max-width: 992px) {
    .main-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }
}

/* === CARDS === */
.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.card-header {
    padding: 20px;
    background: linear-gradient(135deg, #d05278 0%, #8b4a6b 100%);
    color: #fff;
    font-weight: 600;
    font-size: 18px;
    border-bottom: none;
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

/* Product/Item Cards Grid */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.item-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.item-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    transform: translateY(-4px);
    text-decoration: none;
}

.item-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f8f9fa;
}

.item-card-body {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.item-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 5px;
    min-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.item-card-subtitle {
    font-size: 12px;
    color: #d05278;
    font-weight: 500;
}

.item-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e9ecef;
    font-size: 11px;
    color: #666;
}

/* === ALPHABET BUTTONS === */
.alphabet-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.alphabet-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f8f9fa;
    color: #2c2c2c;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.alphabet-btn:hover {
    background: #d05278;
    color: #fff;
    transform: scale(1.1);
    text-decoration: none;
}

.alphabet-btn.active {
    background: linear-gradient(135deg, #d05278 0%, #8b4a6b 100%);
    color: #fff;
    border-color: #8b4a6b;
}

/* === SIDEBAR WIDGETS === */
.sidebar-widget {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    overflow: hidden;
}

.sidebar-widget-header {
    padding: 15px 20px;
    background: linear-gradient(135deg, #d05278 0%, #8b4a6b 100%);
    color: #fff;
    font-weight: 600;
    font-size: 16px;
}

.sidebar-widget-body {
    padding: 20px;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list-item {
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.sidebar-list-item:last-child {
    border-bottom: none;
}

.sidebar-list-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #2c2c2c;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sidebar-list-item a:hover {
    color: #d05278;
}

.sidebar-list-item .badge {
    background: #d05278;
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
}

/* === BREADCRUMBS === */
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
    list-style: none;
}

.breadcrumbs-item {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.breadcrumbs-item:not(:last-child)::after {
    content: "›";
    margin-left: 8px;
    color: #999;
}

.breadcrumbs-link {
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs-link:hover {
    color: #d05278;
    text-decoration: underline;
}

.breadcrumbs-item:last-child {
    color: #2c2c2c;
    font-weight: 500;
}

/* === FILTERS & SORTING === */
.filters-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-label {
    font-weight: 600;
    color: #2c2c2c;
    font-size: 14px;
}

.filter-select {
    padding: 8px 35px 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-select:hover {
    border-color: #d05278;
}

.filter-select:focus {
    outline: none;
    border-color: #d05278;
    box-shadow: 0 0 0 3px rgba(208, 82, 120, 0.1);
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #d05278 0%, #8b4a6b 100%);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(208, 82, 120, 0.3);
    color: #fff;
    text-decoration: none;
}

.btn-secondary {
    background: #f8f9fa;
    color: #2c2c2c;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background: #e9ecef;
    color: #2c2c2c;
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    color: #d05278;
    border: 2px solid #d05278;
}

.btn-outline:hover {
    background: #d05278;
    color: #fff;
    text-decoration: none;
}

.btn-sm {
    padding: 6px 15px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

/* === BADGES === */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-primary {
    background: rgba(208, 82, 120, 0.1);
    color: #d05278;
}

.badge-success {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.badge-info {
    background: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
}

.badge-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

/* === STATISTICS WIDGETS === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-align: center;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #d05278;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* === EMPTY STATES === */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.empty-state-icon {
    font-size: 64px;
    color: #d05278;
    margin-bottom: 20px;
}

.empty-state-title {
    font-size: 24px;
    color: #2c2c2c;
    margin-bottom: 10px;
    font-weight: 600;
}

.empty-state-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }

    .item-card-image {
        height: 180px;
    }

    .item-card-title {
        font-size: 13px;
        min-height: 36px;
    }

    .item-card-body {
        padding: 10px;
    }

    .alphabet-nav {
        gap: 5px;
        padding: 15px;
    }

    .alphabet-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .filters-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* === LOADING STATES === */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 16px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.skeleton-title {
    height: 24px;
    border-radius: 4px;
    margin-bottom: 12px;
    width: 70%;
}

.skeleton-card {
    height: 300px;
    border-radius: 12px;
}
