/**
 * 네이버 순위 체크 CSS 스타일
 */

.ranking-check-container {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.ranking-form {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    margin-bottom: 20px;
}

.ranking-form .form-group {
    flex: 1;
}

.ranking-form .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.ranking-form .form-control {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.ranking-form .form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.check-ranking-btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.check-ranking-btn:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.check-ranking-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 순위 결과 스타일 */
.ranking-result {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.ranking-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.ranking-position {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.position-number {
    font-size: 48px;
    font-weight: 700;
    color: #007bff;
    line-height: 1;
}

.position-label {
    font-size: 18px;
    font-weight: 600;
    color: #6c757d;
}

.ranking-details {
    flex: 1;
}

.ranking-message {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
}

.ranking-description {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
}

/* 순위 히스토리 */
.ranking-history {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

.ranking-history h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
}

.ranking-history ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ranking-history li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f4;
    font-size: 14px;
    color: #555;
}

.ranking-history li:last-child {
    border-bottom: none;
}

/* 발견된 URL 목록 */
.found-urls {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

.found-urls h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
}

.found-urls ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.found-urls li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f4;
}

.found-urls li:last-child {
    border-bottom: none;
}

.url-position {
    background: #007bff;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.url-title {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.url-title:hover {
    text-decoration: underline;
}

/* 로딩 스피너 */
.fa-spinner {
    margin-right: 8px;
}

/* 알림 메시지 */
.alert {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    min-width: 300px;
    max-width: 500px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    border-radius: 8px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .ranking-form {
        flex-direction: column;
        gap: 10px;
    }
    
    .ranking-info {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .position-number {
        font-size: 36px;
    }
    
    .ranking-message {
        font-size: 16px;
    }
    
    .alert {
        left: 20px;
        right: 20px;
        min-width: auto;
    }
}

/* 다크 모드 지원 */
@media (prefers-color-scheme: dark) {
    .ranking-check-container {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .ranking-form .form-control {
        background: #4a5568;
        border-color: #718096;
        color: #e2e8f0;
    }
    
    .ranking-form .form-control:focus {
        border-color: #63b3ed;
        box-shadow: 0 0 0 3px rgba(99, 179, 237, 0.1);
    }
    
    .ranking-result {
        background: #4a5568;
    }
    
    .ranking-message {
        color: #e2e8f0;
    }
    
    .ranking-description {
        color: #a0aec0;
    }
    
    .ranking-history h4,
    .found-urls h4 {
        color: #e2e8f0;
    }
    
    .ranking-history li,
    .found-urls li {
        color: #a0aec0;
        border-bottom-color: #718096;
    }
} 