:root {
    --gnome-blue: #4a90d9;
    --gnome-blue-dark: #2a76dd;
    --bg-color: #ffffff;
    --text-color: #333333;
    --border-color: #dddddd;
    --official-info-bg: #e6e6ff;
    --official-info-border: #7e7eef;
}

body {
    font-family: "Cantarell", "Ubuntu", "Droid Sans", system-ui, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Navbar (Classic Official Look) */
.navbar {
    background-color: var(--gnome-blue);
    color: white;
    padding: 0;
    height: 45px;
    display: flex;
    align-items: center;
}

.nav-content {
    display: flex;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 20px;
}

.gnome-logo {
    height: 32px;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    height: 45px;
}

.nav-links li {
    display: flex;
    align-items: center;
}

.nav-links li.active {
    background: #2a76dd;
}

.nav-links li a {
    display: block;
    padding: 0 15px;
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    height: 45px;
    line-height: 45px;
}

.nav-links li a:hover {
    background: rgba(255,255,255,0.1);
}

/* Unofficial Disclaimer Banner */
.unofficial-banner {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 6px 15px;
    font-size: 0.7rem;
    font-weight: bold;
    line-height: 1.2;
}

.hidden {
    display: none !important;
}

.static-page {
    padding: 40px 0;
    line-height: 1.6;
}

.static-page h2 {
    color: var(--gnome-blue-dark);
    margin-bottom: 25px;
}

.static-page h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #444;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.guide-item {
    background: #fdfdfd;
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 6px;
}

.guide-item h4 {
    margin: 0 0 10px 0;
    color: var(--gnome-blue-dark);
}

.guide-item p {
    font-size: 0.85rem;
    margin: 0;
    color: #666;
}

.static-page ol {
    margin: 25px 0;
    padding-left: 20px;
}

.static-page li {
    margin-bottom: 12px;
}

.warning-alert {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 20px;
    border-radius: 8px;
    margin-top: 40px;
}

/* Info Box (Official Style) */
.info-box-official {
    background-color: var(--official-info-bg);
    border: 1px solid var(--official-info-border);
    border-radius: 4px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    font-size: 0.85rem;
    color: #444;
}

.info-icon {
    font-size: 1.8rem;
    color: #999;
}

.publish-link {
    color: var(--gnome-blue-dark);
    font-weight: bold;
    text-decoration: underline;
}

/* Main Content */
.main-content {
    padding-bottom: 60px;
}

/* Search */
.search-section {
    margin-bottom: 15px;
}

.search-container {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding: 6px 10px;
    background: white;
}

.search-icon {
    color: #bbb;
    margin-right: 10px;
    font-size: 0.9rem;
}

.search-container input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 0.95rem;
}

/* Controls (Official Layout) */
.list-controls-official {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f1f1f1;
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    font-size: 0.8rem;
    color: #555;
}

.sorting select {
    font-size: 0.8rem;
    padding: 1px 4px;
}

/* Catalog List */
.catalog-list {
    display: flex;
    flex-direction: column;
}

.extension-item {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    gap: 15px;
    cursor: pointer;
}

.extension-item:hover {
    background-color: #f9f9f9;
}

.extension-item img {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
}

.ext-info h3 {
    margin: 0;
    color: var(--gnome-blue-dark);
    font-size: 0.95rem;
    display: inline-block;
}

.ext-info .author {
    color: #999;
    font-size: 0.8rem;
    margin-left: 5px;
}

.ext-info p {
    margin: 5px 0 0 0;
    color: #444;
    font-size: 0.85rem;
}

.shell-compat {
    font-size: 0.75rem;
    color: #777;
    margin-top: 3px;
    font-weight: bold;
}

/* Modal */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    padding: 25px;
    border-radius: 4px;
    max-width: 700px;
    width: 90%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.modal-header img {
    width: 64px;
    height: 64px;
}

.modal-title-box {
    display: flex;
    flex-direction: column;
}

.modal-header h2 {
    margin: 0;
    color: var(--gnome-blue-dark);
    font-size: 1.4rem;
}

.badge-container {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.version-badge, .shell-badge {
    color: #666;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    width: fit-content;
    font-weight: bold;
}

.version-badge { background: #eee; }
.shell-badge { background: #e0f0ff; color: #2a76dd; }

.author {
    color: #888;
    font-size: 0.9rem;
}

.uuid-label {
    color: #999;
    font-size: 0.75rem;
    font-family: monospace;
    margin-top: 2px;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.slider {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    margin: 20px 0;
}

.slider img {
    max-height: 300px;
    max-width: 100%;
    object-fit: contain;
    border: 1px solid var(--border-color);
}

.audit-results {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed var(--border-color);
}

.audit-results h3 {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.report-item {
    margin-bottom: 15px;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    border-left: 3px solid var(--gnome-blue);
}

.report-header {
    font-weight: bold;
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.report-content {
    font-size: 0.85rem;
    color: #666;
    white-space: pre-wrap;
}

.actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.btn {
    padding: 6px 12px;
    border-radius: 3px;
    text-decoration: none;
    background: #f1f1f1;
    color: #333;
    font-weight: 600;
    border: 1px solid #ccc;
    cursor: pointer;
    font-size: 0.85rem;
}

.btn-primary-official {
    background: var(--gnome-blue);
    color: white !important;
    border-color: var(--gnome-blue-dark);
}

.btn-primary-official:hover {
    background: var(--gnome-blue-dark);
}

.hint {
    margin-top: 15px;
    color: #2e7d32;
    font-size: 0.85rem;
    font-weight: bold;
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .navbar {
        height: auto;
        min-height: 45px;
    }

    .nav-content {
        flex-direction: column;
        padding: 10px 15px;
    }

    .logo {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .nav-links {
        height: auto;
        width: 100%;
        justify-content: center;
    }

    .nav-links li a {
        height: 40px;
        line-height: 40px;
        padding: 0 10px;
    }

    .info-box-official {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .info-icon {
        font-size: 1.5rem;
    }

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

    .modal-content {
        width: 95%;
        padding: 15px;
    }

    .modal-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 0.8rem;
    }

    .logo-text .thin {
        display: none;
    }

    .nav-links li a {
        font-size: 0.75rem;
        padding: 0 5px;
    }

    .list-controls-official {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}


