/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0C0D14;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(34, 36, 55, 0.8);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #4C4D66;
    z-index: 1000;
    min-height: 100px;
}

.nav__wrap {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    gap: 20px;
    flex-wrap: wrap;
}

.nav__logo {
    width: 140px;
    height: 40px;
}

.nav__search {
    width: 500px;
    height: 48px;
    background: #373952;
    border: 2px solid #4A4B63;
    border-radius: 100px;
    display: flex;
    align-items: center;
    padding: 0 12px 0 24px;
    flex-shrink: 1;
    min-width: 280px;
}

.nav__search-input {
    flex: 1;
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 20px;
    outline: none;
}

.nav__search-input::placeholder {
    color: #5C5E74;
}

.nav__search-button {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.nav__search-button:hover {
    transform: scale(1.1);
}

.nav__search-icon {
    width: 24px;
    height: 24px;
}

/* Main Section */
.section--main {
    height: 650px;
    background: url('images/section_1_w100_xh650.png') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
}

.section__wrap {
    max-width: 1200px;
    width: 100%;
    height: 550px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 220px 20px;
}

.section__title {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 100px;
    font-weight: 700;
    line-height: 1.485;
    text-align: center;
    text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}

.section__subtitle {
    background: #9F57B1;
    border-radius: 10px;
    padding: 4px 30px;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.8);
}

.section__subtitle p {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.485;
    text-align: center;
}

/* Content Section */
.section--content {
    padding: 0 20px;
    width: 100%;
}

.section--content .section__wrap {
    max-width: 1200px;
    margin: 0 auto;
    height: auto;
    padding: 100px 0;
}

.thumbnails {
    display: grid;
    grid-template-columns: repeat(1, 282px);
    gap: 24px;
    justify-content: center;
}

.thumbnail {
    width: 282px;
    height: 282px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid #494B63;
    background: #D9D9D9;
    transition: transform 0.3s ease;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail__content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    padding: 60px 20px 20px;
}

.thumbnail__title {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #FFFFFF;
    line-height: 1.21;
    text-align: center;
    margin-bottom: 10px;
    width: 100%;
}

.thumbnail__description {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #FFFFFF;
    line-height: 1.21;
    text-align: center;
    margin-bottom: auto;
    width: 100%;
}

.thumbnail__button {
    background: #373952;
    border: 2px solid #4A4B63;
    border-radius: 100px;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    max-width: 100%;
    text-align: center;
}

.thumbnail__button:hover {
    background: #4A4B63;
    transform: scale(1.05);
}

/* Desktop hover effects */
@media (hover: hover) {
    .thumbnail:hover {
        transform: scale(1.05);
    }

    .thumbnail:hover .thumbnail__content {
        opacity: 1;
        pointer-events: auto;
    }
}

/* Mobile touch effects */
@media (hover: none) {
    .thumbnail {
        transform: none;
    }

    .thumbnail.active .thumbnail__content {
        opacity: 1;
        pointer-events: auto;
    }

    .thumbnail__content {
        background: rgba(0, 0, 0, 0.8);
    }

    .thumbnail__button:active {
        background: #4A4B63;
        transform: scale(0.95);
    }
}

/* Footer */
.footer {
    height: 200px;
    background: #000000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.footer__logo {
    width: 140px;
    height: 40px;
}

.footer__text {
    font-family: 'Rounded Mplus 1c Bold', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.485;
    text-align: center;
}

@media screen and (min-width: 1920px) {
    .section--content {
        padding: 0 360px;
    }
    .thumbnails {
        grid-template-columns: repeat(4, 282px);
    }
}

@media screen and (max-width: 1919px) and (min-width: 1600px) {
    .section--content {
        padding: 0 240px;
    }
    .thumbnails {
        grid-template-columns: repeat(4, 282px);
    }
}

@media screen and (max-width: 1599px) and (min-width: 1200px) {
    .section--content {
        padding: 0 120px;
    }
    .thumbnails {
        grid-template-columns: repeat(3, 282px);
    }
}

@media screen and (max-width: 1199px) and (min-width: 768px) {
    .section--content {
        padding: 0 60px;
    }
    .thumbnails {
        grid-template-columns: repeat(2, 282px);
    }
}

@media screen and (max-width: 767px) {
    .section--content {
        padding: 0 20px;
    }
    .thumbnails {
        grid-template-columns: repeat(1, 282px);
        justify-content: center;
    }
}

@media screen and (max-width: 768px) {
    .nav__wrap {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
    }

    .nav__logo {
        align-self: center;
    }

    .nav__search {
        width: 100%;
    }

    /* 메인 섹션의 상단 여백 조정 */
    .section--main {
        padding-top: 160px;
    }

    .section__wrap {
        padding: 220px 30px;
    }

    .section__title {
        font-size: 60px;
    }

    .section__subtitle {
        width: 100%;
        max-width: 500px;
    }
}

@media screen and (max-width: 480px) {
    .nav__search-input {
        font-size: 16px; /* 모바일에서 자동 확대 방지 */
    }

    .section__title {
        font-size: 40px;
    }
} 