/* Giờ Châm Cứu Plugin Styles */

.gcc-lookup-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.gcc-form-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.gcc-form-header h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 28px;
    font-weight: 600;
}

.gcc-form-description {
    color: #7f8c8d;
    font-size: 16px;
    line-height: 1.5;
}

/* Form Styles */
.gcc-form {
    margin-bottom: 30px;
}

.gcc-form-section {
    margin-bottom: 25px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.gcc-form-section h4 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.gcc-form-section h4 i {
    margin-right: 8px;
    color: #3498db;
}

.gcc-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.gcc-form-group {
    margin-bottom: 25px;
}

.gcc-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
    font-size: 14px;
}

.required {
    color: #e74c3c;
    margin-left: 2px;
}

.gcc-form-group input,
.gcc-form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ecf0f1;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    background-color: #fff;
}

.gcc-form-group input:focus,
.gcc-form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.gcc-help-text {
    display: block;
    margin-top: 6px;
    color: #7f8c8d;
    font-size: 12px;
    font-style: italic;
}

/* Button Styles */
.gcc-form-actions {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
}

.gcc-btn {
    display: inline-block;
    padding: 12px 25px;
    margin: 0 8px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.gcc-btn i {
    margin-right: 6px;
}

.gcc-btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.gcc-btn-primary:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f87);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.gcc-btn-secondary {
    background: #95a5a6;
    color: white;
}

.gcc-btn-secondary:hover {
    background: #7f8c8d;
    transform: translateY(-1px);
}

.gcc-btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

/* Loading Animation */
.gcc-loading {
    text-align: center;
    padding: 50px;
    background: #f8f9fa;
    border-radius: 10px;
    margin: 20px 0;
}

.gcc-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #ecf0f1;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: gcc-spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.gcc-loading p {
    color: #7f8c8d;
    font-size: 16px;
    margin: 0;
}

/* Results Container */
#gcc-results-container {
    margin-top: 30px;
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
}

.gcc-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: #34495e;
    color: white;
}

.gcc-results-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.gcc-results-actions {
    display: flex;
    gap: 10px;
}

.gcc-results-content {
    padding: 25px;
}

/* Result Sections */
.gcc-results {
    display: grid;
    gap: 20px;
}

.gcc-result-section {
    background: white;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.gcc-result-section h5 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.gcc-result-section h5 i {
    margin-right: 8px;
    color: #3498db;
}

.gcc-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.gcc-info-item {
    padding: 8px 0;
    border-bottom: 1px solid #ecf0f1;
}

.gcc-info-item:last-child {
    border-bottom: none;
}

.gcc-info-item.gcc-full-width {
    grid-column: span 2;
}

.gcc-info-item strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Compatibility Styles */
.gcc-compatibility {
    padding: 15px;
    border-radius: 6px;
    margin: 10px 0;
}

.gcc-compatibility.tuong_sinh {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 1px solid #b8dacc;
    color: #155724;
}

.gcc-compatibility.tuong_khac {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    border: 1px solid #f1b0b7;
    color: #721c24;
}

.gcc-compatibility.cung_hanh {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    border: 1px solid #abd5db;
    color: #0c5460;
}

.gcc-compatibility.trung_hoa {
    background: linear-gradient(135deg, #e2e3e5, #d6d8db);
    border: 1px solid #c6c8ca;
    color: #383d41;
}

/* Acupoints Grid */
.gcc-acupoints-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.gcc-acupoint-group {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.gcc-acupoint-group h6 {
    color: #3498db;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gcc-acupoint-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gcc-acupoint-group li {
    padding: 5px 0;
    color: #2c3e50;
    position: relative;
    padding-left: 15px;
}

.gcc-acupoint-group li:before {
    content: '•';
    color: #3498db;
    position: absolute;
    left: 0;
}

/* Element Badges */
.gcc-element-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
}

/* Relationship Icons */
.gcc-relationship-icon {
    margin-right: 5px;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gcc-lookup-form-container {
        margin: 10px;
        padding: 20px;
    }
    
    .gcc-form-row,
    .gcc-info-grid,
    .gcc-acupoints-grid {
        grid-template-columns: 1fr;
    }
    
    .gcc-results-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .gcc-results-actions {
        justify-content: center;
    }
    
    .gcc-form-actions {
        text-align: center;
    }
    
    .gcc-btn {
        display: block;
        width: 100%;
        margin: 5px 0;
    }
}

@media (max-width: 480px) {
    .gcc-form-header h3 {
        font-size: 22px;
    }
    
    .gcc-form-description {
        font-size: 14px;
    }
    
    .gcc-result-section {
        padding: 15px;
    }
    
    .gcc-results-content {
        padding: 15px;
    }
}

/* Animation Effects */
.gcc-result-section {
    animation: gcc-fadeInUp 0.5s ease;
}

@keyframes gcc-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover Effects */
.gcc-result-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

/* Access Status Styles */
.gcc-access-status {
    margin: 15px 0;
    padding: 0;
}

.gcc-status-info {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}

.gcc-status-premium {
    background: linear-gradient(135deg, #00a32a, #008a00);
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gcc-status-free {
    background: linear-gradient(135deg, #0073aa, #005177);
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gcc-status-blocked {
    background: linear-gradient(135deg, #d63638, #b32d2e);
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gcc-upgrade-link {
    color: #ffffff !important;
    text-decoration: underline !important;
    font-weight: 600;
}

.gcc-upgrade-link:hover {
    color: #f0f0f0 !important;
}

/* Access Error Styles */
.gcc-access-error {
    text-align: center;
    padding: 50px 30px;
    background: #fff;
    border-radius: 10px;
    border: 2px solid #d63638;
}

.gcc-error-icon {
    font-size: 48px;
    color: #d63638;
    margin-bottom: 20px;
}

.gcc-access-error h4 {
    color: #d63638;
    font-size: 24px;
    margin-bottom: 15px;
}

.gcc-access-error p {
    color: #646970;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.gcc-upgrade-actions {
    margin-top: 25px;
}

.gcc-upgrade-actions .gcc-btn {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
}

/* Print Styles */
@media print {
    .gcc-form-actions,
    .gcc-results-actions,
    .gcc-loading,
    .gcc-access-status,
    .gcc-upgrade-actions {
        display: none;
    }
    
    .gcc-lookup-form-container {
        box-shadow: none;
        padding: 0;
    }
    
    .gcc-result-section {
        break-inside: avoid;
        margin-bottom: 20px;
    }
}