@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Roboto", sans-serif;
}

body {
    background-color: rgb(245, 245, 245);
    transition: background-color 400ms ease;
}

html {
  scroll-behavior: smooth;
}

li {
    list-style-type: none;
}

p {
    line-height: 1.5;
    font-size: 20px;
}

a {
    text-decoration: none;
}

button {
    cursor: pointer;
}

section {
    background-color: transparent;
    padding: 60px 0;
    position: relative;
    z-index: 5;
}

.click {
    transition: all 300ms ease;
}

.click:hover {
    transform: scale(1.1);
}

.click:active {
    transform: scale(0.8);
}

.crossout {
    text-decoration: line-through;
    font-weight: 400;
}

.title {
    font-size: 70px;
    margin-bottom: 12px;
    text-align: left;
    line-height: 1;
    width: 100%;
}

.column {
    display: flex;
    flex-direction: column;
}

.left {
    text-align: left;
}

.orange {
    color: orange !important;
}

.link__hover-effect {
    position: relative;
}

.link__hover-effect:after {
    content: "";
    position: absolute;
    bottom: -3px;
    height: 3px;
    width: 0;
    right: 0;
    transition: all 300ms ease;
}

.link__hover-effect--white:after {
    background-color: white;
}

.link__hover-effect--black:after {
    background-color: #242424;
}

.link__hover-effect:hover:after {
    left: 0;
    width: 100%;
}

.nav__link--anchor, .header__content, .bounty__title--text, .bounty__desc, .gallery__title, .gallery__desc, .pets__title, .pets__desc, .misc__title, .misc__desc, .scroll__icon, .scroll__icon:after {
    transition: color 400ms ease, border-color 400ms ease, background-color 400ms ease;
}

/*

PASSWORD & UPLOAD MODAL

*/

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
}

.modal--open {
    display: flex;
}

.modal__content {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 440px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.modal__close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    transition: color 200ms ease;
}

.modal__close:hover {
    color: #242424;
}

.modal__title {
    font-size: 28px;
    margin-bottom: 8px;
    color: #242424;
}

.modal__subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.modal input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    margin-bottom: 12px;
    outline: none;
    transition: border-color 200ms ease;
}

.modal input[type="password"]:focus {
    border-color: orange;
}

.modal__btn {
    width: 100%;
    padding: 12px;
    background-color: orange;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
}

.modal__error {
    color: #e74c3c;
    font-size: 14px;
    margin-bottom: 12px;
    display: none;
}

/* --- ADMIN PANEL LAYOUT --- */

.admin-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.admin-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #2c3e50;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.admin-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.admin-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.admin-card p {
    margin: 4px 0;
    font-size: 0.9rem;
    color: #444;
    word-break: break-word;
}

.admin-card select {
    width: 100%;
    padding: 8px 10px;
    margin: 10px 0;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 0.9rem;
    background-color: #fafafa;
}

.admin-card__actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.admin-card__actions button {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-approve {
    background-color: #2ecc71;
    color: #ffffff;
}

.btn-approve:hover {
    background-color: #27ae60;
}

.btn-unapprove {
    background-color: #e67e22;
    color: #ffffff;
}

.btn-unapprove:hover {
    background-color: #d35400;
}

.btn-delete {
    background-color: #e74c3c;
    color: #ffffff;
}

.btn-delete:hover {
    background-color: #c0392b;
}

/* 

UPLOAD FORM FIELD STYLING 

*/

.modal__form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
    width: 100%;
    text-align: left;
}

.modal__form-group {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.modal__input,
.modal__textarea,
.modal__select,
.modal__file-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 200ms ease;
}

.modal__input:focus,
.modal__textarea:focus,
.modal__select:focus {
    border-color: orange;
}

.modal__textarea {
    resize: vertical;
    min-height: 80px;
}

.modal__select {
    background-color: #fff;
    cursor: pointer;
}

.modal__file-input {
    background-color: #fafafa;
    padding: 10px;
    cursor: pointer;
}

.no__effect:after {
    display: none !important;
}

.dark--theme {
    background-color: #242424;
}

.dark--theme #landing-page, .dark--theme #bounty, .dark--theme #gallery, .dark--theme #pets, .dark--theme #misc {
    background-color: transparent;
}

.dark--theme #footer {
    background-color: #242424;
}

.gallery__card, .gallery-card h3, .gallery-card p, .gallery-card div {
    transition: all 400ms ease;
}

.dark--theme .gallery-card {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.dark--theme .gallery-card h3 {
    color: #ffffff !important;
}

.dark--theme .gallery-card p {
    color: #e0e0e0 !important;
}

.dark--theme .gallery-card div {
    color: #aaaaaa !important;
}

.dark--theme .gallery-card {
    background: rgba(255, 255, 255, 0.03) !important;
}

.dark--theme .nav__link--anchor, .dark--theme .header__content, .dark--theme .bounty__title--text, .dark--theme .bounty__desc, .dark--theme .gallery__title, .dark--theme .gallery__desc, .dark--theme .pets__title, .dark--theme .pets__desc, .dark--theme .misc__title, .dark--theme .misc__desc, .dark--theme .bounty__cards {
    color: white;
}

.dark--theme .scroll__icon {
    border-color: white;
}

.dark--theme .scroll__icon:after {
    background-color: white;
}

.dark--theme .link__hover-effect:hover:after {
    background-color: white;
}

/*

LANDING PAGE

*/

#landing-page {
    height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    padding-top: 0;
}

.header__content {
    width: 50vw;
    text-align: center;
}

.header__content h1 {
    text-align: center;
}

.header {
    width: 100%;
    max-width: 1200px;
    padding: 0 30px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-height: 0;
    position: relative;
    z-index: 10;
}

.header__content, .header__image {
    width: 50%;
    max-height: 100%;
}

.header__image img {
    width: 100%;
    height: 100%;
    max-height: 65vh;
    border-radius: 12px;
    object-fit: contain;
    display: block;
}

.title {
    width: 100%;
    max-width: 100%;
    font-size: clamp(2rem, 5vh, 4.5rem);
}

.header__para {
    width: 100%;
    font-size: clamp(1rem, 2.5vh, 1.25rem);
}

.scroll {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll__icon {
    width: 20px;
    height: 30px;
    border: 2px solid #242424;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll__icon:after {
    content: "";
    width: 4px;
    height: 6px;
    background-color: #242424;
    border-radius: 2px;
    animation: scroll 1000ms infinite alternate-reverse;
}

@keyframes scroll {
    0% {
        transform: translateY(3px);
    }
    100% {
        transform: translateY(-3px);
    }
}

/*

NAVIGATION

*/

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    height: 100px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

#main-logo {
    width: 250px;
    height: 100px;
}

.nav__link--list {
    display: flex;
}

.nav__link {
    margin: 0 12px;
}

.nav__link--anchor {
    font-size: 16px;
    color: #242424;
    font-weight: 700;
}

.fa-adjust {
    font-size: 20px;
}

/*

GALLERY

*/

.gallery__card {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.gallery__card--text {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.gallery__username {
    font-size: 26px;
    text-align: center;
    font-weight: 800;
}

.gallery__description {
    font-size: 20px;
    text-align: center;
    font-weight: 200;
}

.gallery__card--image {
    width: 50%;
}

.gallery__image {
    width: 100%;
}

/* --- FULLSCREEN IMAGE LIGHTBOX --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

.lightbox.active {
    display: flex;
}

.lightbox__img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

/*

GALLERY PAGE

*/

.main {
    width: 100%;
    max-width: 1200px;
    padding: 0 30px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.gallery__title {
    padding-top: 50px;
    text-align: left;
    font-size: 30px;
}

.gallery__desc {
    padding-bottom: 25px;
}

.gallery__date {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 8px;
  font-style: italic;
}

/*

BOUNTY PAGE

*/

.bounty__title--text {
    font-size: 30px;
    padding-top: 50px;
}

.bounty__desc {
    padding-bottom: 25px;
}

/*

PETS PAGE

*/

.pets__title {
    font-size: 30px;
    padding-top: 50px;
}

.pets__desc {
    padding-bottom: 25px;
}

/*

MISC PAGE

*/

.misc__title {
    font-size: 30px;
    padding-top: 50px;
}

.misc__desc {
    padding-bottom: 25px;
}

/*

FOOTER PAGE

*/

#footer {
    background-color: #242424 !important;
}

.footer__content--image {
    width: 200px;
    height: 85px;
}

.footer__content {
    display: flex;
    flex-direction: column;
    height: 200px;
    justify-content: space-evenly;
    color: white;
    font-weight: 400;
}

.footer__link--list {
    display: flex;
    gap: 15px;
    text-decoration: none;
    color: white;
}

.footer__link a {
    color: white;
    font-weight: 400;
}

.footer__copyright {
    font-size: 10px;
}

.footer__copyright--text {
    font-weight: 200;
}

/*

SHAPES

*/

.shape {
    position: fixed;
    z-index: 1;
    pointer-events: none;
}

.shape__overwatch {
    width: 60px;
    height: auto;
}

.shape--0 {
    top: 15vh;
    left: 5vw;
}

.shape--1 {
    top: 15vh;
    left: 50vw;
}

.shape--2 {
    top: 15vh;
    left: 80vw;
}

.shape--3 {
    top: 50vh;
    left: 5vw;
}

.shape--4 {
    top: 50vh;
    left: 50vw;
}

.shape--5 {
    top: 50vh;
    left: 80vw;
}

.shape--6 {
    top: 80vh;
    left: 5vw;
}

.shape--7 {
    top: 80vh;
    left: 50vw;
}

.shape--8 {
    top: 80vh;
    left: 80vw;
}

#bounty, #gallery, #pets, #misc {
    z-index: 10;
}

/*

MOBILE FRIENDLY

*/

@media (max-width: 768px) {
    #landing-page {
        height: 100vh;
        min-height: 100dvh;
        padding-bottom: 0;
    }

    .header {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .nav__link:first-child {
        display: none;
    }

    .main__nav {
        height: 80px;
    }

    #main-logo {
        width: 150px;
        height: 60px;
    }

    .header__content {
        padding: 0 20px;
        width: 100%;
    }

    .title {
        font-size: 30px;
    }

    .header__para {
        font-size: 15px;
    }

    .header__image {
        height: 100%;
        max-height: 40vh;
    }

    .header__image img {
        max-height: 100%;
    }
}

@media (max-width: 480px) {
    #landing-page {
        height: 100vh;
        min-height: 100dvh;
    }

    .header {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 12px;
    }

    .nav__link:nth-child(1), .nav__link:nth-child(2), .nav__link:nth-child(4), .nav__link:nth-child(5) {
        display: none;
    }

    .header__image {
        width: 80%;
        max-height: 35vh;
    }

    .header__content {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}