/**
 * File: hc-points.css
 * Location: /hc-login-pro/modules/points/assets/hc-points.css
 *
 * HC Login Pro - Points System Frontend CSS
 * 
 * @package HC_Login_Pro
 */

/* Jseeds 위젯 */
.hc-jseeds-widget {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hc-jseeds-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.hc-jseeds-header h4 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.hc-refresh-jseeds {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.hc-refresh-jseeds:hover {
    background: #005a87;
}

.hc-jseeds-content {
    margin-bottom: 15px;
}

.hc-jseeds-loading {
    text-align: center;
    color: #666;
    font-style: italic;
}

.hc-jseeds-balance {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.hc-jseeds-item {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
}

.hc-jseeds-item h5 {
    margin: 0 0 10px 0;
    color: #555;
    font-size: 14px;
}

.hc-jseeds-amount {
    font-size: 24px;
    font-weight: bold;
    color: #0073aa;
}

.hc-jseeds-footer {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.hc-jseeds-footer button {
    background: #f0f0f0;
    border: 1px solid #ccc;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.hc-jseeds-footer button:hover {
    background: #e0e0e0;
}

/* Jseeds 사용 버튼 */
.hc-use-jseeds {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
}

.hc-use-jseeds:hover {
    background: #218838;
    color: #fff;
    text-decoration: none;
}

.hc-use-jseeds:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* Jseeds 전환 버튼 */
.hc-transfer-jseeds {
    background: #17a2b8;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
}

.hc-transfer-jseeds:hover {
    background: #138496;
    color: #fff;
    text-decoration: none;
}

/* 이력 조회 버튼 */
.hc-view-history {
    background: #6c757d;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    text-decoration: none;
    display: inline-block;
}

.hc-view-history:hover {
    background: #5a6268;
    color: #fff;
    text-decoration: none;
}

/* 모달 */
.hc-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hc-modal-content {
    background-color: #fefefe;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.hc-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.hc-modal-close:hover {
    color: #000;
}

.hc-modal h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

/* 이력 테이블 */
.hc-history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.hc-history-table th,
.hc-history-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.hc-history-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.hc-history-table tr:hover {
    background-color: #f8f9fa;
}

.hc-history-table .positive {
    color: #28a745;
    font-weight: bold;
}

.hc-history-table .negative {
    color: #dc3545;
    font-weight: bold;
}

/* 폼 스타일 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.2);
}

.form-actions {
    text-align: right;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.form-actions button {
    margin-left: 10px;
}

/* Jseeds 타입별 색상 */
.hc-jseeds-general .hc-jseeds-amount {
    color: #0073aa;
}

.hc-jseeds-church .hc-jseeds-amount {
    color: #28a745;
}

.hc-jseeds-shop .hc-jseeds-amount {
    color: #ffc107;
}

.hc-jseeds-acts .hc-jseeds-amount {
    color: #17a2b8;
}

.hc-jseeds-reward .hc-jseeds-amount {
    color: #fd7e14;
}

.hc-jseeds-bonus .hc-jseeds-amount {
    color: #6f42c1;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .hc-jseeds-balance {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hc-jseeds-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .hc-jseeds-footer {
        flex-direction: column;
    }
    
    .hc-modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .hc-history-table {
        font-size: 12px;
    }
    
    .hc-history-table th,
    .hc-history-table td {
        padding: 8px 5px;
    }
}

@media (max-width: 480px) {
    .hc-jseeds-balance {
        grid-template-columns: 1fr;
    }
    
    .hc-jseeds-amount {
        font-size: 20px;
    }
}

/* 애니메이션 */
.hc-jseeds-widget {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hc-modal {
    animation: fadeIn 0.2s ease-in;
}

.hc-modal-content {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 로딩 스피너 */
.hc-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* 알림 메시지 */
.hc-notice {
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 4px;
    border-left: 4px solid;
}

.hc-notice-success {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.hc-notice-error {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.hc-notice-warning {
    background-color: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.hc-notice-info {
    background-color: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

/* 툴팁 */
.hc-tooltip {
    position: relative;
    display: inline-block;
}

.hc-tooltip .hc-tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
}

.hc-tooltip:hover .hc-tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* 프로그레스 바 */
.hc-progress {
    width: 100%;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
}

.hc-progress-bar {
    height: 20px;
    background: linear-gradient(90deg, #0073aa, #005a87);
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* 카드 스타일 */
.hc-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.hc-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.hc-card-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.hc-card-title {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.hc-card-body {
    color: #666;
    line-height: 1.6;
}

.hc-card-footer {
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 15px;
    text-align: right;
} 