/* Nayin Wuxing Calculator Styles */
.nayin-calculator-wrapper {
    max-width: 600px;
    margin: 20px auto;
    padding: 25px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.nayin-calculator-wrapper h3 {
    color: #2c3e50;
    margin-bottom: 12px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
}

.nayin-calculator-wrapper p {
    color: #7f8c8d;
    margin-bottom: 25px;
    text-align: center;
    line-height: 1.5;
}

.nayin-form .form-row {
    margin-bottom: 20px;
}

.nayin-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #34495e;
    font-size: 14px;
}

.nayin-form input[type="number"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.nayin-form input[type="number"]:focus {
    outline: none;
    border-color: #3498db;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.nayin-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nayin-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

#nayin-loading {
    text-align: center;
    padding: 30px;
    color: #7f8c8d;
    font-size: 16px;
}

/* Result Display Styles */
.nayin-result {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #ecf0f1;
}

.nayin-result h3 {
    color: #27ae60;
    margin-bottom: 12px;
    font-size: 20px;
    text-align: center;
}

.nayin-result h4 {
    color: #2c3e50;
    margin: 25px 0 18px 0;
    font-size: 18px;
    text-align: center;
    position: relative;
}

.nayin-result h4:after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 10px auto;
    border-radius: 2px;
}

.nayin-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.nayin-product {
    border: 1px solid #e1e8ed;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nayin-product:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #3498db;
}

.nayin-product a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.nayin-product img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.nayin-product:hover img {
    transform: scale(1.05);
}

.nayin-product-title {
    padding: 15px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    line-height: 1.4;
    min-height: 40px;
}

.nayin-product-price {
    padding: 0 15px 15px;
    color: #e74c3c;
    font-weight: bold;
    font-size: 16px;
}

.nayin-error {
    background: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
    margin-bottom: 20px;
}

.nayin-success {
    background: #e8f5e8;
    color: #2e7d32;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #4caf50;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nayin-calculator-wrapper {
        margin: 10px;
        padding: 20px;
    }
    
    .nayin-products {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }
    
    .nayin-product img {
        height: 140px;
    }
}