/* ========================= */
/* INDEX PAGE ONLY */
/* ========================= */

.index-page .grid {
    display: grid;
    grid-template-columns: repeat(5, 220px);
    justify-content: center;
    gap: 70px;
    margin-top: 70px;
    position: relative;
    z-index: 1;
}

.index-page .card {
    width: 220px;
    aspect-ratio: 1 / 1;
    position: relative;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.index-page .card-bg {
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: rgba(20,20,20,0.95);
    border: 1px solid rgba(255,255,255,0.85);
    box-shadow: 0 0 18px rgba(255,255,255,0.18);
    opacity: 0;
    transform: scaleX(1);
    transform-origin: center;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.index-page .card:hover .card-bg {
    opacity: 1;
    transform: scaleX(1.15);
}

.index-page .card-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.index-page .card img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    transition: filter 0.35s ease, transform 0.35s ease;
    filter: drop-shadow(0 0 6px rgba(255,255,255,0.35));
}

.index-page .card:hover img {
    filter:
        drop-shadow(0 0 6px rgba(255,255,255,0.6))
        drop-shadow(0 0 12px rgba(255,255,255,0.4));
}

.index-page .card h3 {
    margin-top: 18px;
    font-size: 16px;
    letter-spacing: 3px;
    color: #ffffff;
}

.index-page .lore-card:hover img {
    transform: rotate(180deg);
    filter:
        brightness(1.2)
        sepia(1)
        saturate(5)
        hue-rotate(5deg)
        drop-shadow(0 0 15px rgba(255,208,0,0.8))
        drop-shadow(0 0 30px rgba(255,208,0,0.6));
}

.index-page .lore-card:hover h3 {
    color: #ffd000;
}

.index-page .navbar-atom {
    width: 36px;
    height: 36px;
    object-fit: contain;
    animation: atomSpin 6s linear infinite;
    transform-origin: 50% 50%;
    display: inline-block;
    filter:
        drop-shadow(0 0 6px rgba(255,208,0,0.7))
        drop-shadow(0 0 12px rgba(255,208,0,0.4));
}

@keyframes atomSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ========================= */
/* FORCE FULL OLDTYPER INDEX */
/* ========================= */

@font-face {
    font-family: "OldTyper";
    src: url("assets/a_OldTyperNr Regular_TURKISH.ttf");
}

body.index-page,
body.index-page * {
    font-family: "OldTyper", monospace !important;
}

/* ========================= */
/* SAFETY */
/* ========================= */

* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

/* ========================= */
/* CONTAINER */
/* ========================= */

.index-page .container {
    width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ========================= */
/* TABLET */
/* ========================= */

@media (max-width: 1200px) {

    .index-page .container {
        width: 95%;
    }

    .index-page .grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }

    .index-page .card {
        width: 100%;
    }

}

/* ========================= */
/* SMALL TABLET */
/* ========================= */

@media (max-width: 900px) {

    .index-page .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .index-page .description {
        font-size: 14px;
        line-height: 1.6;
    }

}

/* ========================= */
/* MOBILE */
/* ========================= */

@media (max-width: 600px) {

    body.index-page {
        font-size: 14px;
    }

    .index-page .container {
        width: 100%;
        padding: 20px;
    }

    .index-page .header img {
        width: 180px;
    }

    .index-page .subtitle {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .index-page .status-panel {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 15px;
    }

    .index-page .status-text {
        font-size: 12px;
    }

    .index-page .search-container input {
        width: 100%;
        font-size: 14px;
    }

    .index-page .description {
        font-size: 13px;
        padding: 0 5px;
    }

    .index-page .grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
    }

    .index-page .card {
        width: 100%;
        max-width: 100%;
    }

    .index-page .card img {
        width: 50px;
        height: 50px;
    }

    .index-page .card h3 {
        font-size: 14px;
        letter-spacing: 2px;
    }

}

/* ========================= */
/* EXTRA SMALL DEVICES */
/* ========================= */

@media (max-width: 400px) {

    .index-page .header img {
        width: 150px;
    }

    .index-page .description {
        font-size: 12px;
    }

}