@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@600;700&display=swap');

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
    font-size: 14px;
    color: #333;
}

.site-header {
    background: linear-gradient(135deg, #667eea 0%, #ff6b9d 100%);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.site-header h1 {
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 1.5em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-header h1 img {
    height: 40px;
}

.nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9em;
    transition: opacity 0.3s;
}

.nav a:hover {
    opacity: 0.8;
}

.container {
    display: grid;
    grid-template-columns: 220px 1fr 220px;
    gap: 20px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.panel {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8e8e8;
}

.panel-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 12px 15px;
    font-weight: 600;
    font-size: 13px;
    color: white;
}

.panel-content {
    padding: 0;
}

.menu-item {
    padding: 10px 15px;
    color: #555;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    transition: all 0.2s ease;
    cursor: pointer;
}

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

.menu-item:hover {
    background: #f8f9fa;
    color: #667eea;
    padding-left: 20px;
}

.menu-item.active {
    background: linear-gradient(135deg, #667eea 0%, #ff6b9d 100%);
    color: white;
    font-weight: 600;
}

.main-content {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8e8e8;
    min-height: 600px;
}

.content-header {
    border-bottom: 2px solid #667eea;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.content-header h2 {
    color: #333;
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 5px;
}

.content-header .date {
    color: #888;
    font-size: 12px;
}

.article-content {
    line-height: 1.8;
    color: #444;
}

.article-content p {
    margin-bottom: 1.2em;
}

.article-content h3 {
    color: #667eea;
    font-size: 1.1rem;
    margin: 25px 0 10px 0;
    font-family: 'Poppins', sans-serif;
}

.info-box {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(255, 107, 157, 0.08) 100%);
    border-left: 4px solid #667eea;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.info-box-title {
    color: #667eea;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 14px;
}

.info-box-content {
    color: #555;
    font-size: 13px;
    line-height: 1.6;
}

.quick-link-item {
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
}

.quick-link-item:last-child {
    border-bottom: none;
}

.quick-link-item a {
    color: #555;
    text-decoration: none;
    font-size: 13px;
    display: block;
    transition: all 0.2s;
}

.quick-link-item a:hover {
    color: #667eea;
    padding-left: 5px;
}

.status-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}

.status-row:last-child {
    border-bottom: none;
}

.status-label {
    color: #888;
}

.status-value {
    color: #333;
    font-weight: 600;
    text-align: right;
}

.did-you-know {
    padding: 15px;
}

.did-you-know p {
    color: #666;
    font-size: 12px;
    line-height: 1.6;
    font-style: italic;
}

.catalog-toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 18px 0 22px;
    flex-wrap: wrap;
}

.catalog-search {
    flex: 1 1 280px;
    min-width: 0;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #dde2e7;
    background: #fbfcfd;
    font: inherit;
}

.catalog-search:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
}

.catalog-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #eceff3;
    background: #fafbfc;
    color: #555;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.catalog-link:hover {
    color: #667eea;
    border-color: #d8dff0;
}

.catalog-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0 24px;
}

.catalog-category-card {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    background: white;
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.catalog-category-card:hover {
    transform: translateY(-1px);
    border-color: #d5dff5;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.10);
}

.catalog-category-card.active {
    border-color: transparent;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(255, 107, 157, 0.12) 100%);
    box-shadow: 0 10px 24px rgba(102, 126, 234, 0.12);
}

.catalog-category-thumb,
.catalog-thumb-frame,
.catalog-stage-frame {
    position: relative;
    overflow: hidden;
}

.catalog-category-thumb {
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    border-radius: 10px;
    border: 1px solid #e2e7ee;
    background: #f7fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.catalog-category-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.catalog-thumb-fallback,
.catalog-stage-fallback,
.catalog-category-fallback {
    background: linear-gradient(135deg, #667eea 0%, #ff6b9d 100%);
    color: white;
    display: grid;
    place-items: center;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.catalog-category-fallback {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 12px;
}

.catalog-thumb-fallback {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    font-size: 12px;
}

.catalog-stage-fallback {
    width: 100%;
    max-width: 280px;
    height: 300px;
    border-radius: 16px;
    font-size: 34px;
}

.catalog-category-copy strong {
    display: block;
    color: #333;
    font-size: 14px;
    font-weight: 700;
}

.catalog-category-copy span {
    display: block;
    margin-top: 4px;
    color: #777;
    font-size: 12px;
}

.catalog-preview-shell {
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.catalog-preview-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    background: #fafbfc;
    border-bottom: 1px solid #eef1f4;
}

.catalog-preview-header strong {
    color: #333;
    font-size: 14px;
    font-weight: 700;
}

.catalog-preview-header span {
    color: #888;
    font-size: 12px;
}

.catalog-preview-body {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(0, 1.05fr);
}

.catalog-stage {
    padding: 22px;
    border-right: 1px solid #eef1f4;
    background: linear-gradient(180deg, #fcfdff 0%, #f7f9fb 100%);
}

.catalog-stage-frame {
    min-height: 360px;
    border: 1px solid #e3e9ef;
    border-radius: 12px;
    background: linear-gradient(180deg, #eef3f7 0%, #e4ebf2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.catalog-stage-image {
    width: auto;
    height: clamp(220px, 30vw, 320px);
    max-width: 100%;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
}

.catalog-stage-object .catalog-stage-frame {
    min-height: 280px;
    padding: 18px;
}

.catalog-stage-image-object {
    height: clamp(140px, 18vw, 220px);
}

.catalog-stage-meta {
    margin-top: 16px;
    text-align: center;
}

.catalog-stage-meta h3 {
    margin: 0;
    color: #333;
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
}

.catalog-stage-meta p {
    margin: 6px 0 0;
    color: #666;
    font-size: 13px;
}

.catalog-stage-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
}

.catalog-stage-chip,
.catalog-stage-price {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.catalog-stage-chip {
    background: #f1f4f8;
    color: #536171;
}

.catalog-stage-price {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(255, 107, 157, 0.12) 100%);
    color: #667eea;
}

.catalog-thumb-area {
    padding: 16px;
}

.catalog-thumb-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.catalog-thumb-button {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #e2e7ee;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.catalog-thumb-button:hover {
    border-color: #ccd7ee;
    background: #fafcff;
    transform: translateY(-1px);
}

.catalog-thumb-button.active {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.10) 0%, rgba(255, 107, 157, 0.10) 100%);
}

.catalog-thumb-frame {
    height: 88px;
    border-radius: 8px;
    border: 1px solid #edf1f5;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.catalog-thumb-image {
    width: auto;
    height: 78px;
    max-width: 100%;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
}

.catalog-thumb-image-object {
    height: 64px;
}

.catalog-thumb-name {
    margin-top: 8px;
    color: #4d5663;
    font-size: 12px;
    line-height: 1.35;
    text-align: center;
}

.catalog-empty {
    padding: 28px 20px;
    text-align: center;
    color: #777;
    font-size: 13px;
}

.footer {
    background: white;
    padding: 20px;
    text-align: center;
    margin-top: 20px;
    border-top: 1px solid #e8e8e8;
}

.footer p {
    color: #888;
    font-size: 12px;
}

@media (max-width: 1024px) {
    .container {
        grid-template-columns: 200px 1fr;
    }

    .sidebar-right {
        display: none;
    }
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .sidebar-left {
        display: none;
    }

    .site-header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .catalog-category-grid {
        grid-template-columns: 1fr;
    }

    .catalog-preview-body {
        grid-template-columns: 1fr;
    }

    .catalog-stage {
        border-right: none;
        border-bottom: 1px solid #eef1f4;
    }

    .catalog-stage-frame {
        min-height: 300px;
    }

    .catalog-stage-image {
        height: 240px;
    }

    .catalog-thumb-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .catalog-thumb-frame {
        height: 84px;
    }

    .catalog-thumb-image {
        height: 74px;
    }

    .catalog-thumb-image-object {
        height: 58px;
    }
}
