/* 로딩 오버레이 및 효과 스타일 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    z-index: 1000;
    display: none;
    text-align: center;
    padding-top: 200px;
}

.loading-content {
    color: white;
}

.loading-message {
    font-size: 18px;
    margin: 20px 0;
}

.loading-keyword {
    color: #ffffff;
    font-weight: bold;
}

.loading-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 4px solid #333;
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-sites {
    margin-top: 10px;
    color: #ccc;
}

/* 결과 영역 스타일 */
.generated-links {
    background-color: rgba(0, 20, 40, 0.4);
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #0073e6;
    box-shadow: 0 0 10px rgba(0, 115, 230, 0.4);
}

.generated-links h3 {
    color: #fff;
    margin-top: 0;
    font-size: 1.5rem;
    text-shadow: 0 0 5px #0073e6;
    font-weight: bold;
    margin-bottom: 15px;
}

.link-item {
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid rgba(0, 115, 230, 0.3);
    box-shadow: 0 0 5px rgba(0, 115, 230, 0.3);
}

.link-item strong {
    color: white;
    font-size: 16px;
}

.link-url {
    margin: 10px 0;
    word-break: break-all;
    background-color: rgba(20, 20, 40, 0.6);
    padding: 8px;
    border-radius: 4px;
}

.link-url a {
    color: #00a1ff;
    text-decoration: none;
    word-break: break-all;
    text-shadow: 0 0 3px rgba(0, 161, 255, 0.5);
}

.link-url a:hover {
    color: #4cc9ff;
    text-shadow: 0 0 6px rgba(0, 161, 255, 0.8);
}

.link-item button {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    background: linear-gradient(45deg, #0050b3, #0073e6);
    border: 2px solid #00a1ff;
    border-radius: 4px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.5);
}

.submit-all {
    margin-bottom: 20px;
}

.submit-all button {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, #00a86b, #00d084);
    border: 2px solid #00d084;
    border-radius: 6px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
}

#totalPointsInfo {
    color: white;
    margin: 10px 0;
    text-align: center;
    font-size: 14px;
}

/* 링크 수량 선택 옵션 스타일 */
#linkCountOptions {
    background-color: rgba(0, 20, 40, 0.4);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    border: 1px solid #0073e6;
    box-shadow: 0 0 10px rgba(0, 115, 230, 0.4);
}

.link-count-selector {
    margin: 15px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.form-check-input {
    margin-right: 5px;
}

.form-check-label {
    color: #fff;
    text-shadow: 0 0 5px rgba(0, 115, 230, 0.5);
}

@media (max-width: 768px) {
    .link-count-selector {
        flex-direction: column;
        gap: 5px;
    }
}