/* Domain Price Checker Frontend Styles */

.dpc-shortcode-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* 表单区域 */
.dpc-form-section {
    margin-bottom: 30px;
}

.dpc-form-section h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.dpc-form-group {
    margin-bottom: 20px;
}

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

.dpc-form-group input[type="text"],
.dpc-form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #fff;
}

.dpc-form-group input[type="text"]:focus,
.dpc-form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.dpc-submit-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dpc-submit-btn:hover {
    background: linear-gradient(135deg, #2980b9, #21618c);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.dpc-submit-btn:active {
    transform: translateY(0);
}

/* 结果容器 */
.dpc-results-container {
    margin-top: 30px;
}

.dpc-loading {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
}

.dpc-loading::before {
    content: "";
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid #ecf0f1;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 15px;
    vertical-align: middle;
}

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

.dpc-results {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.dpc-results:empty {
    display: none;
}

/* 结果表格 */
.dpc-results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.dpc-results-table th {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    color: white;
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dpc-results-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #ecf0f1;
    vertical-align: middle;
}

.dpc-results-table tr:last-child td {
    border-bottom: none;
}

.dpc-results-table tr:hover {
    background-color: #f8f9fa;
}

.dpc-results-table .price {
    font-weight: 700;
    color: #27ae60;
    font-size: 16px;
}

.dpc-results-table .registrar-name {
    font-weight: 600;
    color: #2c3e50;
}

.dpc-results-table .registrar-website {
    color: #3498db;
    text-decoration: none;
    font-size: 14px;
}

.dpc-results-table .registrar-website:hover {
    text-decoration: underline;
}

.dpc-results-table .domain-suffix {
    font-family: 'Courier New', monospace;
    background: #ecf0f1;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    color: #2c3e50;
}

.dpc-results-table .currency {
    font-size: 12px;
    color: #7f8c8d;
    text-transform: uppercase;
}

/* 优惠信息卡片 */
.dpc-promo-card {
    background: linear-gradient(135deg, #e8f5e8, #d4edda);
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    position: relative;
    overflow: hidden;
}

.dpc-promo-card::before {
    content: "🎉";
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
}

.dpc-promo-title {
    color: #155724;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 10px;
}

.dpc-promo-code {
    font-family: 'Courier New', monospace;
    background: #fff;
    padding: 8px 12px;
    border: 2px dashed #28a745;
    border-radius: 6px;
    font-weight: bold;
    color: #155724;
    display: inline-block;
    margin: 10px 0;
    font-size: 16px;
}

.dpc-promo-price {
    color: #28a745;
    font-weight: bold;
    font-size: 20px;
    margin: 10px 0;
}

.dpc-promo-instruction {
    color: #155724;
    font-size: 14px;
    margin-top: 10px;
    line-height: 1.5;
}

.dpc-promo-endtime {
    color: #856404;
    font-size: 12px;
    font-style: italic;
    margin-top: 10px;
}

/* 错误和成功消息 */
.dpc-message {
    padding: 15px 20px;
    border-radius: 6px;
    margin: 15px 0;
    font-weight: 500;
}

.dpc-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.dpc-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.dpc-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .dpc-shortcode-container {
        margin: 10px;
        padding: 15px;
    }
    
    .dpc-form-section h3 {
        font-size: 20px;
    }
    
    .dpc-results-table {
        font-size: 14px;
    }
    
    .dpc-results-table th,
    .dpc-results-table td {
        padding: 10px 12px;
    }
    
    .dpc-submit-btn {
        width: 100%;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .dpc-results-table {
        font-size: 12px;
    }
    
    .dpc-results-table th,
    .dpc-results-table td {
        padding: 8px 10px;
    }
    
    .dpc-promo-card {
        padding: 15px;
    }
}

