/* 기본 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
	font-family: Arial, sans-serif;
    background-color: #191820;
    color: #ffffff;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* 메인 컨텐츠 */
main {
    padding: 2rem;
}

/* 히어로 섹션 */
.hero {
    margin-bottom: 3rem;
}

.hero-content {
    position: relative;
    max-width: 800px;
}

.number-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #ff4d4d;
    color: #ffffff;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.hero p {
    color: #dfdfdf;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* 컨텐츠 섹션 공통 */
.content-section {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.section-header h2 {
    font-size: 1.5rem;
    margin-right: auto;
}

.view-all {
    color: #dfdfdf;
    font-size: 0.9rem;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* 컨텐츠 카드 */
.content-card {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.content-card.dark {
    background-color: #1f1f2c;
}

.content-card.dark:hover {
	cursor : pointer;
}

.card-image {
    height: 180px;
    background-color: #33333e;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-info {
    padding: 1rem;
}

.card-info h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.card-info p {
    color: #dfdfdf;
    font-size: 0.8rem;
}

.card-actions {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    width: 24px;
    height: 24px;
    background-color: #33333e;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* 음악 카드 */
.music-card {
    display: flex;
    flex-direction: column;
}

.music-label {
    font-size: 0.8rem;
    color: #dfdfdf;
    margin-bottom: 0.5rem;
}

.music-image {
    height: 100px;
    border-radius: 8px;
}

.music-image.purple {
    background: linear-gradient(135deg, #d46868, #6f757d);
}

.music-image.gray {
    background-color: #33333e;
}

.font-image.orange {
    background-color: #ff4d4d;
    display: flex;
    align-items: center;
    justify-content: center;
}

.font-sample {
    font-size: 2rem;
    font-weight: bold;
    color: #ffffff;
}

/* 효과음 카드 */
.sound-card {
    background-color: #1f1f2c;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.play-button {
    width: 36px;
    height: 36px;
    background-color: #33333e;
    border-radius: 50%;
    position: relative;
}

.play-button::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid #ffffff;
}

.sound-info {
    margin-bottom: 0.5rem;
}

.sound-info h3 {
    font-size: 0.9rem;
}

.sound-info p {
    font-size: 0.8rem;
    color: #dfdfdf;
}

.waveform {
    height: 40px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 100 30"><path d="M0,15 Q5,5 10,15 T20,15 T30,15 T40,15 T50,15 T60,15 T70,15 T80,15 T90,15 T100,15" fill="none" stroke="%23dfdfdf" stroke-width="1"/></svg>') repeat-x;
    opacity: 0.5;
    margin-bottom: 0.5rem;
}

.sound-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.duration {
    font-size: 0.8rem;
    color: #dfdfdf;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-btn.red {
    background-color: #ff4d4d;
}

/* 반응형 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .main-nav ul {
        flex-wrap: wrap;
    }

    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}


.template-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    cursor: pointer;
}

.template-card {
    border-radius: 12px;
    display: flex;
    position: relative;
    overflow: hidden;
    flex-direction: column;
    height: 18rem;
}

.template-card:hover .overlay {
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

.template-image img {
    transition-duration: 0.3s;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.template-card:hover .template-image img {
    scale: 1.1;
}

.template-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.template-image {
    width: 100%;
    height: 100%;
}

.content_wrap {
    display: flex;
    position: absolute;
    bottom: 0;
    z-index: 2;
    color: white;
    padding: 0.5rem 1.1rem;
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    height: 5.2rem;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1;
    height: 6rem;
    top: 67%;
    transition-duration: 0.3s;
}

span.icon {
    margin-left: 0.7rem;
}

span.icon_wrap span {
    display: flex;
    flex-direction: column;
    align-content: center;
    flex-wrap: wrap;
}

span.icon_wrap {
    display: flex;
    align-items: flex-end;
}

.template-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: rgba(255, 255, 255, 0.1);
    flex-grow: 1;
}

.template-details {
    height: 100%;
}

.template-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.1em;
    color: #ffffff;
    margin-bottom: 0.4rem;
}

.template-writer {
    font-size: 0.8rem;
    color: #e9e9e9;
}

.template-creator {
    font-size: 12px;
    color: #d9d9d9;
}

.template-actions {
    display: flex;
    gap: 8px;
}
