/* ==========================================================================
   Base Styles
   ========================================================================== */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: #272B30;
    color: white;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   Typography
   ========================================================================== */
.main-title {
    text-align: center;
    padding: 20px 0 0 0;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0;
}

.sub-title {
    text-align: center;
    font-size: 1.2rem;
    color: white;
    margin-bottom: 2rem;
    font-weight: 300;
    margin-top: 0.5rem;
}

.category-title {
    font-size: 2rem;
    color: white;
    margin: 0;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
}

.category-page-title {
    font-size: 2rem;
    margin: 0;
}

.category-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: color 0.3s ease;
}

.category-link:hover {
    color: #375a7f !important;
}

.weapon-title {
    font-size: 14px;
    text-align: center;
    margin-bottom: -25px;
    color: white;
}

.category-name {
    display: none;
}

/* ==========================================================================
    Main Menu & Category Grid
    ========================================================================== */
 .main-menu {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
  }

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.category-icon {
    background: transparent;
    border: none;
    border-radius: 15px;
    padding: 0;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 190px;
    overflow: hidden;
}

.category-icon:hover {
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.8);
}


.icon-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 190px;
}

.category-image {
    width: 100%;
    height: 220px;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: brightness(0.8) saturate(1.2);
    border-radius: 15px;
}

.weapons-category-image {
    width: 275px;
    height: 190px;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: brightness(0.8) saturate(1.2);
    border-radius: 15px;
}



/* ==========================================================================
   Category View & Weapons Grid
   ========================================================================== */
.category-view {
    padding: 2rem 0;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    cursor: pointer;
    user-select: none;
}
.category-header .back-btn {
    margin-left: auto !important;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.weapons-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    padding: 20px 0;
    max-width: 1400px;
    margin: 0 auto;
}

.weapon-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.weapon-card:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* ==========================================================================
   Image & Charm Styles
   ========================================================================== */
.image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: brightness(0.8) saturate(1.2);
    border-radius: 4px;
    border: 2px solid #000;
    cursor: pointer;
}

.image-container img:hover {
    opacity: 0.9;
}

.charm-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: brightness(0.8) saturate(1.2);
    border-radius: 15px;
}

.weapon-card:hover .charm-image {
    transform: scale(1.1);
    filter: brightness(1.1) saturate(1.4);
}

.charm-info {
    margin-top: 0;
    margin-bottom: 0;
    text-align: center;
}
/* ==========================================================================
   Modal Styles
   ========================================================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
}

.close {
    position: absolute;
    right: 35px;
    top: 15px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 35px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
    text-decoration: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.fullscreen-btn {
    position: absolute;
    top: 15px;
    right: 50px;
    color: #f1f1f1;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background 0.3s;
}

.fullscreen-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev {
    left: 0;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Discord Modal */
.modal-content-small {
    background-color: #272B30;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    border-radius: 8px;
    color: white;
}

.modal-content-small h3 {
    margin-top: 0;
    color: #375a7f;
}

.modal-content-small p {
    margin: 10px 0;
}

.modal-content-small a {
    color: #375a7f;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    margin-top: auto;
    flex-shrink: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-text {
    text-align: center;
    color: #888;
    margin: 0;
    font-size: 0.9rem;
}

.footer-link,
.social-link {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover,
.social-link:hover {
    color: #375a7f;
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1rem;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 900px;
    }
    .weapons-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1000px;
    }
}

@media (max-width: 768px) {
    .main-title {
        font-size: 2rem;
    }
    .sub-title {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem 0;
        max-width: 400px;
    }
    .weapons-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 15px 0;
        max-width: 500px;
    }
    .weapon-title {
        font-size: 12px;
        margin-bottom: -20px;
    }
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.8rem;
        padding: 15px 0 0 0;
    }
    .sub-title {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 0.5rem 0;
        max-width: 280px;
    }
    .weapons-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px 0;
        max-width: 300px;
    }
    .weapon-title {
        font-size: 11px;
        margin-bottom: -15px;
    }
    .weapons-category-image {
        height: 150px;
        width: 220px;
    }
    .icon-container {
        min-height: 150px;
    }
    .category-icon {
        height: 150px;
    }
}

/* ==========================================================================
   Unused/Combined Styles (for potential removal or refactoring)
   ========================================================================== */
/* The following styles were either duplicates or appear to be unused.
   They have been commented out for review and can be deleted if no longer needed. */

/*
.gallery-button-container {
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
}

.gallery-button {
    background-color: #333;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.gallery-button:hover {
    background-color: #555;
}

.gallery-modal {
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.gallery-image {
    margin: 10px;
    max-width: 300px;
    max-height: 300px;
}

.gallery-btn {
    display: block;
    margin: 0 auto 20px auto;
    padding: 10px 20px;
    font-size: 18px;
}

.category-section {
    margin-bottom: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.category-section.collapsed .category-icon {
    transform: rotate(-90deg);
}

.category-content {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    max-height: 2000px;
    opacity: 1;
    overflow: hidden;
}

.category-section.collapsed .category-content {
    max-height: 0;
    opacity: 0;
    padding: 0;
    border-top: none;
}
*/

/* ==========================================================================
    Patch Notes Styles
    ========================================================================== */
.patch-notes {
    width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Responsive design for patch notes */
@media (max-width: 850px) {
    .patch-notes {
        width: 95%;
        max-width: 800px;
    }
}

@media (max-width: 480px) {
    .patch-notes {
        width: 90%;
        padding: 1rem 0;
    }

    .patch-entry {
        padding: 1rem;
    }
}

.patch-entry {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 4px solid #375a7f;
    margin-bottom: 0.5rem;
}

.patch-version {
    color: #375a7f;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.patch-changes {
    list-style-type: none;
    padding: 0;
}

.patch-changes li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.patch-changes li:last-child {
    border-bottom: none;
}