/* css/common.css */

/* 메인 콘텐츠 스타일 */
main {
    padding: 20px;
}

/* 코인 리스트 스타일 */
/* .coin-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.coin-card {
    background-color: var(--coin-bg-color);
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 0 16px 12px; 
    transition: transform 0.2s, opacity 0.2s;
}

.coin-card:hover {
    transform: scale(1.035);
    opacity: 0.9;
}

.coin-link {
    display: flex;
    align-items: center;
    padding: 20px;
    text-decoration: none;
    color: inherit;
}

.rank {
    width: 30px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--theme-color);
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-container {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coin-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    margin-right: 20px;
}

.name-symbol {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    margin-right: 15px;
}

.coin-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.coin-symbol {
    font-size: 12px;
    color: var(--sub-text-color);
}

.arrow {
    font-size: 18px;
} */

/* 스피너 스타일 */
.image-container .spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--accent-color, #17F6A1);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 에러 메시지 스타일 */
.image-container .error-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    color: #ff4d4d;
    display: none;
}

/* 반응형 디자인 */
@media (max-width: 600px) {
    .coin-link {
        flex-direction: column;
        align-items: flex-start;
    }

    .rank {
        margin-bottom: 10px;
    }

    .coin-img {
        width: 24px;
        height: 24px;
        object-fit: contain;
        margin-right: 20px;
    }

    .name-symbol {
        margin-right: 0;
    }

    .status-container {
        flex-direction: column;
        align-items: center;
    }

    .status {
        margin-bottom: 20px;
    }

    .tabs {
        flex-direction: column;
    }

    .tab {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .tab:last-child {
        margin-bottom: 0;
    }

    /* common.css */
    .header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        background-color: var(--header-bg-color);
    }

    .header-left {
        display: flex;
        align-items: center;
    }

    .header-left .logo {
        width: 50px;
        margin-right: 10px;
    }

    .header-nav a {
        margin: 0 10px;
        text-decoration: none;
        color: var(--nav-link-color);
        font-weight: 600;
    }

    .header-nav a.active {
        color: var(--active-link-color);
        border-bottom: 2px solid var(--active-link-color);
    }
    .dark-mode-btn {
        background: none;
        border: none;
        cursor: pointer;
        font-size: 1.5rem;
    }
    
    .arrow {
        align-self: flex-end;
    }
}
    
    /* 가격 정보 스타일 */
    .price-info {
        margin-top: 10px;
        font-size: 14px;
    color: #00ff00;
    /* 매트릭스 녹색 텍스트 */
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    /* 일정 간격 */
}

.price-info p {
     font-weight: bold;
     margin: 2px 0;
     white-space: nowrap;
 }

.kimchi-premium {
    font-weight: bold;
    color: #ff5722;
    /* 김치프리미엄은 주황색으로 강조 */
}

/* 추가된 스타일: 가격 정보 가로 레이아웃을 위한 스타일 */
.coin-link .price-info {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    /* 요소 간 간격 */
}

.coin-link .price-info p {
    margin: 2px 10px;
    white-space: nowrap;
}