@import url('https://fonts.googleapis.com/css2?family=Quantico:ital,wght@0,400;0,700;1,400;1,700&display=swap');

body,
html {
    margin: 0;
    padding: 0;
    overflow: auto;
    background-color: #0b0d10fc;
    color: white;
    font-family: Quantico;
    font-weight: 300;
    width: 100%;
    box-sizing: border-box;
    height: auto;
    min-height: 100vh;
}

*,
*:before,
*:after {
    box-sizing: border-box;
}

::-webkit-scrollbar {
    width: 5px;
    background-color: #f5f5f50a;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
}

::-webkit-scrollbar-thumb:hover {
    background-color: #29f1b79d;
}

.middle-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 15vh;
    flex-direction: column;
}

.logo-wrapper img {
    height: 155%;
    max-height: 1555px;
}

.login-text {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1.5vh 0;
    font-size: 1rem;
    text-align: center;
}

.log-in {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 180px;
    height: 40px;
    background: #ffffff0a;
    gap: 8px;
    border-radius: 4px;
    transition: all 0.5s;
    font-size: 0.9rem;
    color: #FFFA;
    padding: 0 15px;
    text-decoration: none;
}

.log-in:hover {
    cursor: pointer;
    color: #29f1b7;
    background: #29f1b885;
    filter: drop-shadow(0px 0px 5px #29f1b8c7);
    text-shadow: 0px 0px 5px #29f1b8c7;
}

.header-wrapper {
    width: 100%;
    height: 12vh;
    display: flex;
    margin-top: 0;
    padding: 0.2vw 2vw;
    align-items: center;
    box-sizing: border-box;
    position: relative;
    justify-content: space-between;
    padding-top: 1.5vh;
    padding-bottom: 1.5vh;
    background: linear-gradient(90deg, rgba(11, 13, 16, 0.9) 0%, rgba(26, 29, 36, 0.9) 100%);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(41, 241, 183, 0.1);
    z-index: 100;
}

.header-logo {
    width: 6vw;
    height: 100%;
    margin-right: auto;
    display: flex;
    align-items: center;
}

.header-logo img {
    height: 120%;
    max-height: 120px;
    object-fit: contain;
}

.right-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    padding-bottom: 0;
}

.header-status-bar {
    display: none;
}

.action-button {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 120px;
    height: 40px;
    background: #ffffff0a;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #FFFA;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: Quantico, sans-serif;
    font-weight: 600;
    padding: 0 1rem;
    border: none;
}

.action-button:hover {
    color: #29f1b7;
    background: #29f1b885;
    filter: drop-shadow(0 0 5px #29f1b8c7);
    text-shadow: 0 0 5px #29f1b8c7;
}

#user-avatar,
.user-avatar,
#mymods-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

#user-name,
#mymods-user-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.purchase-wrapper {
    margin-top: 2vh;
    margin-bottom: 2vh;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    width: 100%;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
    padding-bottom: 2vh;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    width: 100%;
}

.form-group {
    margin-bottom: 0.8rem;
}

.form-group.full-width {
    grid-column: span 2;
}

.input-label {
    display: block;
    font-size: 0.75rem;
    margin-bottom: 0.3rem;
    color: #a0a0a0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
}

.optional {
    color: #666;
    font-style: italic;
    font-weight: normal;
    text-transform: none;
}

.error-message {
    color: #ff4d4d;
    font-size: 0.75rem;
    margin-top: 0.3rem;
    display: none;
}

select,
input[type="text"],
textarea {
    width: 100%;
    height: 40px;
    font-size: 0.9rem;
    padding: 0 0.8rem;
    background: #1a1d24;
    color: #FFFC;
    border: 1px solid #2a2e3a;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-family: Quantico;
    outline: none;
    text-align: left;
}

.input-error {
    border-color: #ff4d4d !important;
    box-shadow: 0 0 0 2px rgba(255, 77, 77, 0.2) !important;
}

select:hover {
    border-color: #29f1b7;
    background: #21252e;
    cursor: pointer;
}

select:focus,
input[type="text"]:focus,
textarea:focus {
    border-color: #29f1b7;
    box-shadow: 0 0 0 2px rgba(41, 241, 183, 0.2);
}

textarea {
    height: 6rem;
    padding: 0.8rem;
    resize: vertical;
}

.image-upload-container {
    display: flex;
    gap: 0.5rem;
}

.upload-btn {
    width: 80px !important;
    font-size: 0.8rem !important;
    padding: 0 0.5rem !important;
}

.image-upload-container input {
    width: calc(100% - 90px) !important;
}

.anon-toggle {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.8rem;
    background: #1a1d24;
    border-radius: 4px;
    margin-top: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #2a2e3a;
    user-select: none;
}

.anon-toggle:hover {
    background: #21252e;
}

.anon-toggle.active {
    background: rgba(41, 241, 183, 0.1);
    border-color: rgba(41, 241, 183, 0.3);
}

.toggle-switch {
    position: relative;
    width: 2.2rem;
    height: 1.2rem;
    background: #3a3f4d;
    border-radius: 0.6rem;
    margin-right: 0.8rem;
    transition: all 0.3s ease;
}

.anon-toggle.active .toggle-switch {
    background: #29f1b7;
    box-shadow: 0 0 10px rgba(41, 241, 183, 0.5);
}

.toggle-switch::before {
    content: '';
    position: absolute;
    width: 0.8rem;
    height: 0.8rem;
    background: #fff;
    border-radius: 50%;
    top: 0.2rem;
    left: 0.2rem;
    transition: transform 0.3s ease;
}

.anon-toggle.active .toggle-switch::before {
    transform: translateX(1.1rem);
}

.info-tooltip {
    position: relative;
    margin-left: auto;
}

.tooltip-text {
    visibility: hidden;
    width: 220px;
    background: #0b0d10;
    color: #ccc;
    text-align: center;
    border: 1px solid #29f1b7;
    border-radius: 4px;
    padding: 0.5rem;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.75rem;
}

.info-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.submit-btn {
    width: 100%;
    margin-top: 1.5rem;
}

.access-denied-container {
    max-width: 600px;
    padding: 2rem;
    text-align: center;
}

.access-denied-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #ff4d4d;
    text-shadow: 0 0 10px rgba(255, 77, 77, 0.5);
}

.access-denied-message {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.discord-join-button,
.try-again-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
    height: auto;
    padding: 0.8rem 1.5rem;
    background: #ffffff0a;
    column-gap: 0.5rem;
    border-radius: 4px;
    transition: all 0.5s;
    font-size: 1.2rem;
    color: #FFFA;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.discord-join-button:hover,
.try-again-button:hover {
    cursor: pointer;
    color: #29f1b7;
    background: #29f1b885;
    filter: drop-shadow(0px 0px 5px #29f1b8c7);
    text-shadow: 0px 0px 5px #29f1b8c7;
}

.discord-logo {
    width: 1.5rem;
    height: 1.5rem;
    object-fit: contain;
}

.after-verify {
    margin-top: 2rem;
    font-size: 1.1rem;
    color: #aaa;
}

#access-denied-view {
    display: none;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
}

.mymods-content {
    width: 100%;
    padding: 1rem;
    margin: 0;
}

.mods-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    width: 100%;
    padding: 0;
    align-items: stretch;
    justify-items: stretch;
}

.mod-item {
    background: #1a1d24;
    border: 1px solid #2a2e3a;
    border-radius: 6px;
    padding: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.mod-header {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  gap: 0.5rem;
}

.mod-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  flex-grow: 1;
  line-height: 1.3;
  text-align: left !important; /* force lijevo poravnanje */
  display: flex;
  justify-content: flex-start; /* gura tekst na lijevu stranu */
}

.mod-status {
    font-weight: 700;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
    margin-top: 0.2rem;
}

.mod-status-pending {
    color: #ffcc00;
    background: rgba(255, 204, 0, 0.1);
}

.mod-status-approved {
    color: #29f1b7;
    background: rgba(41, 241, 183, 0.1);
}

.mod-status-denied {
    color: #ff4d4d;
    background: rgba(255, 77, 77, 0.1);
}

.mod-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 0.8rem;
    font-size: 0.75rem;
    color: #aaa;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.mod-date {
    font-size: 0.65rem;
    color: #666;
    margin-top: 0.2rem;
}

.mod-image-container {
    margin: 0.3rem 0;
    height: 180px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mod-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #2a2e3a;
}

.mod-actions {
    margin-top: auto;
    display: flex;
    justify-content: flex-start;
    gap: 0.5rem;
    padding-top: 0.5rem;
}

.mod-actions .action-button {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    height: 32px;
    border-radius: 3px !important;
    min-width: 90px;
}

.edit-form div[style*="flex"] button:nth-child(1),
.edit-form div[style*="flex"] button:nth-child(2) {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    height: 32px;
    min-width: 80px;
    border-radius: 3px;
}

.mod-admin-notes {
    margin-top: 0.5rem;
    padding: 0.6rem;
    background: rgba(255, 77, 77, 0.05);
    border-left: 2px solid #ff4d4d;
    border-radius: 0 4px 4px 0;
}

.mod-notes-title {
    font-weight: 700;
    color: #ff4d4d;
    margin-bottom: 0.2rem;
    font-size: 0.7rem;
}

.mod-notes-content {
    font-size: 0.75rem;
    color: #ccc;
    line-height: 1.4;
}

.no-mods {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
    background: #1a1d24;
    border-radius: 4px;
    border: 1px solid #2a2e3a;
}

.edit-btn {
    background: rgba(41, 241, 183, 0.1) !important;
    color: #29f1b7 !important;
    border: 1px solid rgba(41, 241, 183, 0.3) !important;
    min-width: 100px;
}

.edit-btn:hover {
    color: #fff !important;
    background: #29f1b885 !important;
    filter: drop-shadow(0 0 5px #29f1b8c7) !important;
    text-shadow: 0 0 5px #29f1b8c7 !important;
}

.delete-btn {
    background: rgba(255, 77, 77, 0.1) !important;
    color: #ff4d4d !important;
    border: 1px solid rgba(255, 77, 77, 0.3) !important;
    min-width: 100px;
}

.delete-btn:hover {
    color: #fff !important;
    background: rgba(255, 77, 77, 0.3) !important;
    filter: drop-shadow(0 0 5px rgba(255, 77, 77, 0.5)) !important;
    text-shadow: 0 0 5px rgba(255, 77, 77, 0.5) !important;
}

.resubmit-btn {
    background: rgba(255, 204, 0, 0.1) !important;
    color: #ffcc00 !important;
    border: 1px solid rgba(255, 204, 0, 0.3) !important;
    min-width: 100px;
}

.resubmit-btn:hover {
    color: #fff !important;
    background: rgba(255, 204, 0, 0.3) !important;
    filter: drop-shadow(0 0 5px rgba(255, 204, 0, 0.5)) !important;
    text-shadow: 0 0 5px rgba(255, 204, 0, 0.5) !important;
}

.edit-form {
    display: block;
    max-height: 0;
    padding: 0 1rem;
    margin-top: 0;
    background: #1a1d24;
    border: none;
    border-radius: 0 0 4px 4px;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
    position: relative;
    z-index: 1;
}

.edit-form.active {
    max-height: 1000px;
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid #2a2e3a;
    border-top: none;
    opacity: 1;
}

.edit-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.edit-overlay.active {
    display: flex;
}

.edit-form-container {
    background: #1a1d24;
    border: 1px solid #2a2e3a;
    border-radius: 6px;
    padding: 1.5rem;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close-edit {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: transparent;
    border: none;
    color: #ccc;
    font-size: 1.5rem;
    cursor: pointer;
    width: 2rem;
    height: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.close-edit:hover {
    color: #ff4d4d;
    background: rgba(255, 77, 77, 0.1);
    transform: scale(1.1);
}

.form-content {
    padding-top: 1rem;
}

.mymods-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.search-container {
    position: relative;
    width: 250px;
}

.search-input {
    width: 100%;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    background: #1a1d24;
    border: 1px solid #2a2e3a;
    border-radius: 20px;
    color: #fff;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #29f1b7;
    box-shadow: 0 0 0 2px rgba(41, 241, 183, 0.2);
    outline: none;
}

.search-icon {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
}

.edit-btn.disabled,
.delete-btn.disabled {
    opacity: 0.3;
    pointer-events: none;
    cursor: not-allowed;
}

.drag-drop-area {
    width: 100%;
    height: 150px;
    border: 2px dashed #2a2e3a;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #1a1d24;
    position: relative;
    overflow: hidden;
}

.drag-drop-area:hover {
    border-color: #29f1b7;
    background-color: #21252e;
}

.drag-drop-area.active {
    border-color: #29f1b7;
    background-color: rgba(41, 241, 183, 0.05);
}

.drag-drop-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #2a2e3a;
    transition: all 0.3s ease;
}

.drag-drop-text {
    font-size: 0.9rem;
    color: #a0a0a0;
    margin-bottom: 0.5rem;
}

.drag-drop-hint {
    font-size: 0.7rem;
    color: #666;
}

.drag-drop-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    z-index: 0;
}

.drag-drop-content {
    position: relative;
    z-index: 1;
}

.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background-color: #29f1b7;
    width: 0%;
    transition: width 0.3s ease;
}

.upload-success {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(41, 241, 183, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.upload-success.show {
    opacity: 1;
}

.checkmark {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: #29f1b7;
    stroke-miterlimit: 10;
    margin: 10% auto;
    box-shadow: 0 0 10px rgba(41, 241, 183, 0.5);
    animation: fill 0.4s ease-in-out 0.4s forwards, scale 0.3s ease-in-out 0.9s both;
}

.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke-miterlimit: 10;
    stroke: #29f1b7;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {

    0%,
    100% {
        transform: none;
    }

    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0 0 0 100px rgba(41, 241, 183, 0);
    }
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: span 1;
    }

    .header-logo {
        width: 20vw;
    }

    .header-wrapper {
        background: #1a1d24 !important;
        border-bottom: none !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }

    .action-button {
        min-width: 100px;
        font-size: 0.8rem;
        padding: 0 0.8rem;
    }

    .mymods-content {
        padding: 0 0.5rem;
    }

    .mods-list {
        grid-template-columns: 1fr;
    }

    .mod-item {
        overflow: hidden;
        transition: none;
    }

    .mod-actions {
        justify-content: flex-end;
    }

    .mymods-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-container {
        width: 100%;
    }
}

#notifications-container {
    position: fixed;
    top: 80px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.custom-notification {
    width: 300px;
    padding: 15px;
    border-radius: 4px;
    background: #1a1d24;
    border: 1px solid #2a2e3a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.5s ease;
}

.custom-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.custom-notification.hide {
    transform: translateX(120%);
    opacity: 0;
}

/* Boje za različite tipove notifikacija */
.custom-notification.success {
    border-left: 4px solid #29f1b7;
    color: #29f1b7;
}

.custom-notification.error {
    border-left: 4px solid #ff4d4d;
    color: #ff4d4d;
}

.custom-notification.info {
    border-left: 4px solid #ffcc00;
    color: #ffcc00;
}

.notification-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-message {
    font-size: 0.9rem;
    flex: 1;
}

.notification-close {
    margin-left: 15px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.notification-close:hover {
    opacity: 1;
}

.mod-status-resubmitted {
    color: #9c27b0;
    background: rgba(156, 39, 176, 0.1);
}

.status-resubmitted {
    background-color: rgba(156, 39, 176, 0.1);
    color: #9c27b0;
    border-color: rgba(156, 39, 176, 0.3);
}

.status-resubmitted:hover {
    background-color: rgba(156, 39, 176, 0.2);
    box-shadow: 0 0 8px rgba(156, 39, 176, 0.2);
}

.resubmitted-mod {
    background: rgba(156, 39, 176, 0.05);
    border-left: 3px solid rgba(156, 39, 176, 0.2);
}

.preview-page {
    background-color: #0b0d10fc;
    color: white;
    font-family: 'Quantico', sans-serif;
    font-weight: 300;
    box-sizing: border-box;
    padding: 0.5rem 0.5rem 1.5rem 0.5rem;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.middle-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

h1 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #29f1b7;
    text-shadow: 0 0 10px rgba(41, 241, 183, 0.5);
    text-align: center;
    margin-top: 0;
}

.info-box {
    background-color: #1a1d24;
    border: 1px solid #2a2e3a;
    border-radius: 6px;
    padding: 0.6rem;
    margin: 0 auto 2rem auto;
    max-width: 800px;
    font-size: 0.75rem;
    line-height: 1.5;
    color: #eee;
}

.info-box strong {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    color: #29f1b7;
}

.info-box ol {
    padding-left: 1.2rem;
    margin: 0;
}

.info-box li {
    margin-bottom: 0.6rem;
}

.info-box a {
    color: #29f1b7;
    text-decoration: underline;
}

.info-box a:hover {
    text-decoration: none;
}

.mods-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.mod-item {
    background: #1a1d24;
    border: 1px solid #2a2e3a;
    border-radius: 6px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: transform 0.2s ease;
    max-width: none;
    width: 100%;
    margin: 0;
}

.mod-item:hover {
    transform: translateY(-3px);
}

.mod-image-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 ratio */
    overflow: hidden;
    border-radius: 4px;
    background-color: #111;
}

.mod-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    cursor: pointer;
}

.mod-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    line-height: 1.2;
    margin-top: 0.75rem;
}

#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border: 4px solid #29f1b7;
    border-radius: 4px;
}

body.lightbox-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    h1 {
        font-size: 1rem;
    }

    .info-box {
        font-size: 0.7rem;
        padding: 0.5rem;
    }

    .mods-list {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        max-width: 100%;
        gap: 0.6rem;
    }

    .mod-item {
        padding: 0.5rem;
    }

    .mod-name {
        font-size: 0.65rem;
    }

    .mod-image-container {
        padding-top: 56.25%;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 0.85rem;
    }

    .info-box {
        font-size: 0.6rem;
        padding: 0.4rem;
    }

    .mods-list {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

    .mod-item {
        padding: 0.4rem;
    }

    .mod-name {
        font-size: 0.6rem;
    }

    .mod-image-container {
        padding-top: 56.25%;
    }
}

.preview-page .middle-wrapper {
    padding: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.preview-page h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.preview-page p {
    text-align: center;
    margin-bottom: 2rem;
    color: #aaa;
    font-size: 0.9rem;
}

.preview-mods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    width: 100%;
    padding: 0;
}

.preview-mod-item {
    background: #1a1d24;
    border: 1px solid #2a2e3a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.preview-mod-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.preview-mod-image-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
}

.preview-mod-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.preview-mod-item:hover .preview-mod-image {
    transform: scale(1.05);
}

.preview-mod-name {
    padding: 1rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    border-top: 1px solid #2a2e3a;
}

@media (max-width: 768px) {
    .preview-mods-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .preview-mods-grid {
        grid-template-columns: 1fr;
    }
    
    .preview-page h1 {
        font-size: 1.2rem;
    }
    
    .preview-page p {
        font-size: 0.8rem;
    }
}


.preview-page {
    background-color: #0b0d10;
    min-height: 100vh;
}

.preview-header {
    background: linear-gradient(90deg, rgba(11,13,16,0.9) 0%, rgba(26,29,36,0.9) 100%);
    padding: 15px 30px;
    border-bottom: 1px solid rgba(41,241,183,0.1);
}

.preview-logo {
    height: 40px;
}

.preview-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.preview-title {
    font-size: 24px;
    color: #29f1b7;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(41,241,183,0.5);
}

.preview-description {
    color: #aaa;
    text-align: center;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.preview-mods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

.preview-mod-item {
    background: #1a1d24;
    border: 1px solid #2a2e3a;
    border-radius: 8px;
    overflow: hidden;
}

.preview-mod-image-container {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.preview-mod-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.preview-mod-item:hover .preview-mod-image {
    transform: scale(1.05);
}

.preview-mod-name {
    padding: 15px;
    font-size: 14px;
    font-weight: 700;
    color: white;
    text-align: center;
    border-top: 1px solid #2a2e3a;
}

#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    border: 2px solid #29f1b7;
    border-radius: 5px;
}

@media (max-width: 1024px) {
    .preview-mods-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .preview-mods-grid {
        grid-template-columns: 1fr;
    }
    
    .preview-main {
        padding: 20px 15px;
    }
    
    .preview-title {
        font-size: 20px;
    }
}
