* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: Arial, sans-serif;
    background: #0f172a;
    color: #f1f5f9;
    line-height: 1.6;
}
.container {
    max-width: 100%;
    margin: 0 auto;
}
header {
    margin-bottom: 3rem;
    text-align: center;
}
h1 {
    font-size: 2rem;
}
.tab-nav {
    text-align: center;
    margin-bottom: 2rem;
}
.tab-button {
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    color: #94a3b8;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin: 0 1rem;
}
.tab-button:hover {
    color: #2563eb;
}
.tab-button.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}
#content-iframe {
    border: none;
    min-height: calc(100vh - 150px);
    width: 100%;
}
.loading {
    text-align: center;
    min-height: 50vh;
    padding-top: 20%;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.error {
    background: #991b1b;
    color: white;
    padding: 1rem;
    margin: 1rem 0;
}
.carousel {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0rem 0 3rem 0;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on WebKit (PS3) */
}
/* Scrollbar styling for WebKit browsers (PS3, old Safari, Chrome) */
.carousel::-webkit-scrollbar {
    height: 12px; /* Visible height */
}
.carousel::-webkit-scrollbar-track {
    background: #1e293b;
    border-radius: 6px;
}
.carousel::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 6px;
    border: 3px solid #1e293b; /* Adds a "border" effect for contrast */
}
.carousel::-webkit-scrollbar-thumb:hover {
    background: #475569;
}
/* Standard scrollbar styling for Firefox/modern browsers */
.carousel {
    scrollbar-width: thin;
    scrollbar-color: #334155 #1e293b;
}
.item-card {
    width: 340px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 0.75rem;
    overflow: hidden;
    display: inline-block;
    vertical-align: top;
    margin-right: 2rem;
}
.item-image-container {
    width: 100%;
    background: #0f172a;
    overflow: hidden;
}
.item-image {
    width: 100%;
    height: auto;
    display: block;
}
.item-content {
    padding: 1rem;
    white-space: normal; /* Allow text wrapping inside card content */
}
.item-name {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}
.item-owner {
    color: #2563eb;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}
.item-desc {
    font-size: 0.95rem;
    color: #94a3b8;
    margin-bottom: 1.2rem;
}
.item-meta {
    font-size: 0.85rem;
    color: #94a3b8;
    padding-top: 1rem;
    border-top: 1px solid #334155;
}
.item-link {
    background: #2563eb;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    font-size: 0.875rem;
}
.no-items {
    text-align: center;
    color: #94a3b8;
    padding: 5rem 1rem;
    font-size: 1.2rem;
}
.patch-instructions {
    max-width: 800px;
    margin: 0 auto;
}
.warning-banner {
    background: #991b1b;
    color: white;
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.note {
    background: #1e293b;
    padding: 1rem;
    border-left: 4px solid #2563eb;
    margin-bottom: 1.5rem;
}
h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.steps {
    list-style: decimal;
    padding-left: 2rem;
}
.steps li {
    margin-bottom: 2rem;
}
.download-btn {
    color: #2563eb;
    font-weight: bold;
    text-decoration: underline;
}
@media (max-width: 1024px) {
    .item-card {
        width: 320px;
        margin-right: 4rem;
    }
    .category-section {
        margin-top: 4rem;
        margin-bottom: 8rem;
    }
}
@media (max-width: 768px) {
    .item-card {
        width: 90%;
        margin-right: auto;
        margin-left: auto;
        margin-bottom: 3rem;
        display: block;
    }
    .carousel {
        white-space: normal;
        text-align: center;
    }
    .category-section {
        margin-top: 3rem;
        margin-bottom: 7rem;
    }
}
