/*
    ======================================
    + Creators Style CSS
    @ Team. PLAYWORLD 2024. 07. 29.
    ======================================
*/

/* PC (Default) */
/* Body Background */
body {
    background: url(../images/svg/creators_background.svg) center no-repeat fixed;
    background-size: cover;
}
/* // Body Background */

/* Section 1 : Intro */
.section-intro {
    width: 100%;
    height: 100vh;
}

.intro__wrap {
    justify-content: center;
    width: 60%;
    height: 100%;
    margin: 0 auto;
}

.intro__text-wrap {
    justify-content: center;
    align-items: flex-start;
    width: 100%;
}

.intro__title {
    position: relative;
    font-weight: 800;
    font-size: 3.5rem;
}

.intro__title:nth-child(2) {
    margin-top: 1.5%;
}

.intro__title::after {
    content: '';
    position: absolute;
    bottom: 5.5%;
    left: 0;
    width: 100%;
    height: 27%;
    background-color: var(--default-blue);
    z-index: -1;
}

.intro__description {
    margin-top: 1.5%;
    font-weight: 600;
    font-size: 1.5rem;
}
/* // Section 1 : Intro */

/* Section 2 : Contents - Creators */
.section-contents__creators {
    display: table;
    width: 100%;
}

.creators__wrap {
    width: 75%;
    margin: 0 auto;
}

.creators__filter-container {
    position: relative;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    gap: 15px;
}

.creators__filter-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 6.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.creators__filter-button:hover {
    background: rgba(250, 250, 250, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.creators__filter-button.active {
    background: var(--default-blue);
    color: white;
}

.creators__filter-button.active .creators__filter-text {
    color: white;
}

.creators__filter-text {
    margin-right: 8px;
    color: #818181;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.creators__filter-icon {
    width: 1.2rem;
    height: 1.2rem;
    transition: transform 0.3s ease;
}

.creators__filter-button.active .creators__filter-icon {
    -webkit-filter: brightness(0) invert(1);
            filter: brightness(0) invert(1);
    transform: rotate(180deg);
}

.creators__filter-box {
    position: absolute;
    top: 0;
    right: 7.5rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 2.5rem;
    background: rgba(246, 246, 246, 0.95);
    border-radius: 20px;
    padding: 15px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    -webkit-backdrop-filter: blur(20px);
            backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    white-space: nowrap;
    overflow: hidden;
    max-width: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.creators__filter-box.show {
    max-width: 800px;
    opacity: 1;
    visibility: visible;
}

.creators__filter-contents-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 450px;
}

.creators__filter-first-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.creators__filter-second-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.creators__filter-contents-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.creators__filter-contents-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
}

.creators__filter-contents-text,
.creators__filter-contents-select {
    height: 32px;
    padding: 0 12px;
    font-size: 0.85rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.creators__filter-contents-text {
    width: 140px;
}

.creators__filter-contents-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: rgba(255, 255, 255, 0.8) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" class="bi bi-chevron-down" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708"/></svg>') no-repeat right 10px center / 0.75rem;
    width: 150px;
}

.creators__filter-contents-text:focus,
.creators__filter-contents-select:focus {
    background-color: #fff;
    border-color: var(--default-blue);
    box-shadow: 0 0 0 2px rgba(var(--default-blue-rgb), 0.2);
}

.creators__filter-contents-text::-webkit-input-placeholder {
    color: #999;
    font-weight: 400;
}

.creators__filter-contents-text::-moz-placeholder {
    color: #999;
    font-weight: 400;
}

.creators__filter-contents-text:-ms-input-placeholder {
    color: #999;
    font-weight: 400;
}

.creators__filter-contents-text::-ms-input-placeholder {
    color: #999;
    font-weight: 400;
}

.creators__filter-contents-text::placeholder {
    color: #999;
    font-weight: 400;
}

.creators__filter-button-wrap {
    display: flex;
    gap: 8px;
    margin-left: 10px;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    padding-left: 15px;
}

.creators__filter-contents-button {
    height: 32px;
    padding: 0 16px;
    color: white;
    background: var(--default-blue);
    border: none;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.creators__filter-contents-button:hover {
    background: var(--default-blue-hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(var(--default-blue-rgb), 0.3);
}

.creators__filter-reset-button {
    height: 32px;
    padding: 0 12px;
    color: #666;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.creators__filter-reset-button:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.creators__arrange {
    flex-wrap: wrap;
    width: 100%;
    margin: 2rem auto 0;
    gap: 50px;
}

.creators__loading {
    margin: 2% auto;
    text-align: center;
    font-size: 1.5rem;
    color: #888;
}

/* Error */
.creators__error-wrap {
    width: 100%;
    height: 25vh;
}

.error__title {
    font-size: 2rem;
    font-weight: 700;
}

.error__description {
    margin-top: 2%;
    font-size: 1.5rem;
    font-weight: 500;
}
/* // Error */

.creators__contents-wrap {
    flex: 0 0 calc(33.33% - 34px);
    box-sizing: border-box;
}

.creators__contents-wrap:nth-child(3n + 1) {
    align-items: flex-start;
}

.creators__contents-wrap:nth-child(3n + 2) {
    align-items: center;
}

.creators__contents-wrap:nth-child(3n) {
    align-items: flex-end;
}

.creators__contents {
    width: 250px;
    height: 314.5px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 25%);
    border-radius: 39px 39px 40px 0;
    transform: scale(1.0);
    transition: all 0.5s;
}

.creators__contents:hover {
    transform: scale(1.03);
}

.creators__contents-wrap.hidden {
    display: none;
}

.creators__contents-profile {
    height: 240px;
    background: #fff;
    background-size: cover;
    border-radius: 39px 39px 0 0;
}

.creators__contents-info-wrap {
    justify-content: space-evenly;
    align-items: center;
    height: 74.5px;
    background: var(--default-blue);
    border-radius: 0 0 40px 0;
}

.creators__contents-details {
    width: 65%;
}

.creators__contents-name {
    position: relative;
    margin-bottom: 0.5%;
    color: #fff;
    font-weight: 600;
    font-size: 1.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.5s;
}

.creators__contents-count-subscribers {
    height: 0;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    transition: all 0.5s;
}

.creators__contents-link {
    width: 10%;
    transform: scale(1.0);
    transition: all 0.5s;
}

.creators__contents-link:hover {
    box-shadow: 0 0 25px rgba(0, 0, 0, 15%);
    transform: scale(1.05);
}

.pagination {
    margin-top: 2.5%;
    text-align: center;
}

.pagination a {
    margin: 0 10px;
    font-size: 1.35rem;
    font-weight: 500;
}

.pagination a.active {
    color: #787878;
    font-weight: 700;
}
/* // Section 2 : Contents - Creators */
/* // PC (Default) */

/* Tablet (1024px 이하) */
@media (max-width: 1024px) {
    .intro__wrap {
        width: 75%;
    }

    .creators__wrap {
        width: 85%;
    }
    
    .intro__title {
        font-size: 3rem;
    }
    
    .intro__description {
        font-size: 1.3rem;
    }
    
    .creators__arrange {
        gap: 40px;
    }
    
    .creators__contents-wrap {
        flex: 0 0 calc(50% - 20px);
    }
    
    .creators__contents {
        width: 100%;
        max-width: 250px;
    }
}
/* // Tablet (1024px 이하) */

/* Tablet Portrait (768px 이하) */
@media (max-width: 768px) {
    .intro__wrap {
        width: 80%;
    }

    .creators__wrap {
        width: 80%;
    }
    
    .intro__title {
        font-size: 2.5rem;
    }
    
    .intro__description {
        font-size: 1.2rem;
    }
    
    .creators__filter-container {
        justify-content: center;
        margin-bottom: 25px;
    }

    .creators__filter-button {
        width: 150px;
    }
    
    .creators__filter-box {
        position: absolute;
        top: calc(100% + 15px);
        right: 0;
        left: 0;
        width: -webkit-fit-content;
        width: -moz-fit-content;
        width: fit-content;
        max-width: none;
        margin: 0 auto;
    }
    
    .creators__filter-contents-wrap {
        min-width: auto;
        width: 100%;
    }
    
    .creators__filter-first-row, 
    .creators__filter-second-row {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .creators__filter-contents-input-wrap {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
        width: 180px;
    }
    
    .creators__filter-contents-text {
        width: calc(100% - 24px);
    }

    .creators__filter-contents-select {
        width: 100%;
    }
    
    .creators__filter-button-wrap {
        border-left: none;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        padding-left: 0;
        padding-top: 15px;
        margin-left: 0;
        justify-content: center;
    }
    
    .creators__arrange {
        gap: 30px;
    }
    
    .creators__contents-wrap {
        flex: 0 0 calc(50% - 15px);
    }
}
/* // Tablet Portrait (768px 이하) */

/* Mobile Landscape (480px 이하) */
@media (max-width: 480px) {
    /* Body Background */
    body {
        background: url('/static/images/svg/creators_mobile_background.svg') center no-repeat fixed;
        background-size: cover;
    }
    /* // Body Background */

    .intro__wrap {
        width: 80%;
    }

    .creators__wrap {
        width: 80%;
    }
    
    .intro__title {
        font-size: 2rem;
        font-weight: 900;
    }
    
    .intro__description {
        margin-top: 5%;
        font-size: 1rem;
        font-weight: 500;
    }

    .creators__filter-container {
        margin-bottom: 30px;
    }
    
    .creators__arrange {
        justify-content: center;
        align-items: center;
        gap: 0;
    }
    
    .creators__contents-wrap {
        flex: unset;
        margin-bottom: 20%;
    }
    
    .creators__contents {
        width: 235px;
        max-width: none;
    }

    /* Error */
    .creators__error-wrap {
        width: 90%;
        height: 20vh;
        margin: 0 auto;
    }

    .error__title {
        text-align: center;
        font-size: 1.15rem;
        font-weight: 700;
    }

    .error__description {
        margin: 0.5rem 1.5% 0;
        text-align: center;
        font-size: 1rem;
        font-weight: 500;
    }
    /* // Error */
}
/* // Mobile Landscape (480px 이하) */

/* Mobile Portrait (360px 이하) */
@media (max-width: 360px) {
    .intro__title {
        font-size: 1.8rem;
    }
    
    .intro__description {
        font-size: 0.95rem;
    }
    
    .creators__filter-contents-label {
        font-size: 0.8rem;
    }
    
    .creators__filter-contents-text,
    .creators__filter-contents-select {
        font-size: 0.8rem;
        height: 30px;
    }
    
    .creators__filter-contents-button,
    .creators__filter-reset-button {
        font-size: 0.8rem;
        height: 30px;
    }

    .creators__contents {
        width: 220px;
    }
}
/* // Mobile Portrait (360px 이하) */

/* Small Mobile (320px 이하) */
@media (max-width: 320px) {
    .intro__wrap {
        width: 90%;
    }

    .creators__wrap {
        width: 90%;
    }
    
    .intro__title {
        font-size: 1.6rem;
    }
    
    .intro__description {
        font-size: 0.9rem;
    }
    
    .creators__filter-box {
        padding: 12px 15px;
    }
    
    .creators__filter-contents-text {
        width: calc(100% - 24px);
    }
    
    .creators__filter-contents-select {
        width: 100%;
    }

    .creators__filter-button-wrap {
        flex-direction: column;
        gap: 8px;
    }
    
    .creators__filter-contents-button,
    .creators__filter-reset-button {
        width: 100%;
    }

    .creators__contents {
        width: 200px;
    }
}
/* // Small Mobile (320px 이하) */